Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions api/v1/values_types_extra.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package v1

import (
appsv1 "k8s.io/api/apps/v1"
k8sv1 "k8s.io/api/core/v1"
)

Expand Down Expand Up @@ -49,6 +50,10 @@ type ZTunnelConfig struct {
// Image name to pull from. Image will be `Hub/Image:Tag-Variant`.
// If Image contains a "/", it will replace the entire `image` in the pod.
Image *string `json:"image,omitempty"`
// defines the network this cluster belong to. This name corresponds to the networks in the map of mesh networks.
Network *string `json:"network,omitempty"`
// K8s affinity to set on the ztunnel Pods. Can be used to exclude ztunnel from being scheduled on specified nodes.
Affinity *k8sv1.Affinity `json:"affinity,omitempty"`
// resourceName, if set, will override the naming of resources. If not set, will default to the release name.
// It is recommended to not set this; this is primarily for backwards compatibility.
ResourceName *string `json:"resourceName,omitempty"`
Expand All @@ -60,12 +65,20 @@ type ZTunnelConfig struct {
VolumeMounts []k8sv1.VolumeMount `json:"volumeMounts,omitempty"`
// Additional volumes to add to the ztunnel Pod.
Volumes []k8sv1.Volume `json:"volumes,omitempty"`
// Tolerations for the ztunnel pod
Tolerations []k8sv1.Toleration `json:"tolerations,omitempty"`
// Annotations added to each pod. The default annotations are required for scraping prometheus (in most environments).
PodAnnotations map[string]string `json:"podAnnotations,omitempty"`
// Additional labels to apply on the pod level.
PodLabels map[string]string `json:"podLabels,omitempty"`
// The k8s resource requests and limits for the ztunnel Pods.
Resources *k8sv1.ResourceRequirements `json:"resources,omitempty"`
// The resource quotas configuration for ztunnel
ResourceQuotas *ResourceQuotas `json:"resourceQuotas,omitempty"`
// K8s node selector settings.
//
// See https://kubernetes.io/docs/user-guide/node-selection/
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// List of secret names to add to the service account as image pull secrets
// to use for pulling any images in pods that reference this ServiceAccount.
// Must be set for any cluster configured with private docker registry.
Expand Down Expand Up @@ -102,6 +115,10 @@ type ZTunnelConfig struct {
LogLevel *string `json:"logLevel,omitempty"`
// Specifies whether istio components should output logs in json format by adding --log_as_json argument to each container.
LogAsJSON *bool `json:"logAsJson,omitempty"`
// Set seLinux options for the ztunnel pod
SeLinuxOptions *k8sv1.SELinuxOptions `json:"seLinuxOptions,omitempty"`
// Defines the update strategy to use when the version in the Ztunnel CR is updated.
UpdateStrategy *appsv1.DaemonSetUpdateStrategy `json:"updateStrategy,omitempty"`
}

// ZTunnelGlobalConfig is a subset of the Global Configuration used in the Istio ztunnel chart.
Expand Down
40 changes: 40 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading