helmvalues

package
v0.17.0-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServerValues

type APIServerValues struct {
	CommonValues
	SyncerExORCommonValues
	ControlPlaneCommonValues
	SecurityContext    corev1.SecurityContext `json:"securityContext,omitempty"`
	ServiceAnnotations map[string]string      `json:"serviceAnnotations,omitempty"`
}

type BaseHelm

type BaseHelm struct {
	GlobalAnnotations    map[string]string      `json:"globalAnnotations,omitempty"`
	Pro                  bool                   `json:"pro,omitempty"`
	EnableHA             bool                   `json:"enableHA,omitempty"`
	Headless             bool                   `json:"headless,omitempty"`
	DefaultImageRegistry string                 `json:"defaultImageRegistry,omitempty"`
	Plugin               map[string]interface{} `json:"plugin,omitempty"`
	Sync                 SyncValues             `json:"sync,omitempty"`
	FallbackHostDNS      bool                   `json:"fallbackHostDns,omitempty"`
	MapServices          MapServices            `json:"mapServices,omitempty"`
	Proxy                ProxyValues            `json:"proxy,omitempty"`
	Storage              StorageValues          `json:"storage,omitempty"`
	Volumes              []corev1.Volume        `json:"volumes,omitempty"`
	ServiceAccount       struct {
		Create bool `json:"create,omitempty"`
	} `json:"serviceAccount,omitempty"`
	WorkloadServiceAccount struct {
		Annotations map[string]string `json:"annotations,omitempty"`
	} `json:"workloadServiceAccount,omitempty"`
	Rbac                RBACValues          `json:"rbac,omitempty"`
	Replicas            uint32              `json:"replicas,omitempty"`
	NodeSelector        corev1.NodeSelector `json:"nodeSelector,omitempty"`
	Affinity            corev1.Affinity     `json:"affinity,omitempty"`
	PriorityClassName   string              `json:"priorityClassName,omitempty"`
	Tolerations         []corev1.Toleration `json:"tolerations,omitempty"`
	Labels              map[string]string   `json:"labels,omitempty"`
	PodLabels           map[string]string   `json:"podLabels,omitempty"`
	Annotations         map[string]string   `json:"annotations,omitempty"`
	PodAnnotations      map[string]string   `json:"podAnnotations,omitempty"`
	PodDisruptionBudget PDBValues           `json:"podDisruptionBudget,omitempty"`
	Service             ServiceValues       `json:"service,omitempty"`
	Ingress             IngressValues       `json:"ingress,omitempty"`

	SecurityContext    corev1.SecurityContext    `json:"securityContext,omitempty"`
	PodSecurityContext corev1.PodSecurityContext `json:"podSecurityContext,omitempty"`
	Openshift          struct {
		Enable bool `json:"enable,omitempty"`
	} `json:"openshift,omitempty"`
	Coredns            CoreDNSValues    `json:"coredns,omitempty"`
	Isolation          IsolationValues  `json:"isolation,omitempty"`
	Init               InitValues       `json:"init,omitempty"`
	MultiNamespaceMode EnabledSwitch    `json:"multiNamespaceMode,omitempty"`
	Telemetry          TelemetryValues  `json:"telemetry,omitempty"`
	NoopSyncer         NoopSyncerValues `json:"noopSyncer,omitempty"`
}

type CommonValues

type CommonValues struct {
	Volumes           []corev1.Volume     `json:"volumes,omitempty"`
	PriorityClassName string              `json:"priorityClassName,omitempty"`
	NodeSelector      corev1.NodeSelector `json:"nodeSelector,omitempty"`
	Affinity          corev1.Affinity     `json:"affinity,omitempty"`
	Tolerations       []corev1.Toleration `json:"tolerations,omitempty"`
	PodAnnotations    map[string]string   `json:"podAnnotations,omitempty"`
	PodLabels         map[string]string   `json:"podLabels,omitempty"`
}

type ControlPlaneCommonValues

type ControlPlaneCommonValues struct {
	Image           string            `json:"image,omitempty"`
	ImagePullPolicy string            `json:"imagePullPolicy,omitempty"`
	Replicas        uint32            `json:"replicas,omitempty"`
	Labels          map[string]string `json:"labels,omitempty"`
	Annotations     map[string]string `json:"annotations,omitempty"`
}

type ControllerValues

type ControllerValues struct {
	CommonValues
	SyncerExORCommonValues
	ControlPlaneCommonValues
	SecurityContext corev1.SecurityContext `json:"securityContext,omitempty"`
}

type CoreDNSPluginValues

type CoreDNSPluginValues struct {
	Enabled bool          `json:"enabled,omitempty"`
	Config  []DNSMappings `json:"config,omitempty"`
}

type CoreDNSServiceValues

type CoreDNSServiceValues struct {
	Type                  corev1.ServiceType                  `json:"type,omitempty"`
	ExternalIPs           []string                            `json:"externalIPs,omitempty"`
	ExternalTrafficPolicy corev1.ServiceExternalTrafficPolicy `json:"externalTrafficPolicy,omitempty"`
	Annotations           map[string]string                   `json:"annotations,omitempty"`
}

type CoreDNSValues

type CoreDNSValues struct {
	Integrated     bool                        `json:"integrated,omitempty"`
	Plugin         CoreDNSPluginValues         `json:"plugin,omitempty"`
	Enabled        bool                        `json:"enabled,omitempty"`
	Replicas       uint32                      `json:"replicas,omitempty"`
	NodeSelector   corev1.NodeSelector         `json:"nodeSelector,omitempty"`
	Image          string                      `json:"image,omitempty"`
	Config         string                      `json:"config,omitempty"`
	Service        CoreDNSServiceValues        `json:"service,omitempty"`
	Resources      corev1.ResourceRequirements `json:"resources,omitempty"`
	Manifests      string                      `json:"manifests,omitempty"`
	PodAnnotations map[string]string           `json:"podAnnotations,omitempty"`
	PodLabels      map[string]string           `json:"podLabels,omitempty"`
}

type DNSMappings

type DNSMappings struct {
	Record    Record       `json:"record,omitempty"`
	Target    Target       `json:"target,omitempty"`
	AllowedOn []FilterSpec `json:"allowedOn,omitempty"`
	ExceptOn  []FilterSpec `json:"exceptOn,omitempty"`
}

type EnabledSwitch

type EnabledSwitch struct {
	Enabled bool `json:"enabled,omitempty"`
}

type EtcdValues

type EtcdValues struct {
	// Disabled is allowed for k8s & eks
	Disabled bool `json:"disabled,omitempty"`
	CommonValues
	SyncerExORCommonValues
	ControlPlaneCommonValues
	Storage struct {
		Persistence bool   `json:"persistence,omitempty"`
		Size        string `json:"size,omitempty"`
	} `json:"storage,omitempty"`
	SecurityContext                  corev1.SecurityContext `json:"securityContext,omitempty"`
	ServiceAnnotations               map[string]string      `json:"serviceAnnotations,omitempty"`
	AutoDeletePersistentVolumeClaims bool                   `json:"autoDeletePersistentVolumeClaims,omitempty"`
}

type FilterSpec

type FilterSpec struct {
	Name      string   `json:"name,omitempty"`
	Namespace string   `json:"namespace,omitempty"`
	Labels    []string `json:"labels,omitempty"`
}

type IngressValues

type IngressValues struct {
	Enabled          bool                      `json:"enabled,omitempty"`
	PathType         string                    `json:"pathType,omitempty"`
	IngressClassName string                    `json:"ingressClassName,omitempty"`
	Host             string                    `json:"host,omitempty"`
	Annotations      map[string]string         `json:"annotations,omitempty"`
	TLS              []networkingv1.IngressTLS `json:"tls,omitempty"`
}

type InitHelmCharts

type InitHelmCharts struct {
	Bundle string `json:"bundle,omitempty"`
	Chart  struct {
		Name     string `json:"name,omitempty"`
		Version  string `json:"version,omitempty"`
		Repo     string `json:"repo,omitempty"`
		Username string `json:"username,omitempty"`
		Password string `json:"password,omitempty"`
		Insecure bool   `json:"insecure,omitempty"`
	} `json:"chart,omitempty"`
	Release struct {
		ReleaseName      string `json:"releaseName,omitempty"`
		ReleaseNamespace string `json:"releaseNamespace,omitempty"`
		Timeout          uint32 `json:"timeout,omitempty"`
	} `json:"release,omitempty"`
	Values         string `json:"values,omitempty"`
	ValuesTemplate string `json:"valuesTemplate,omitempty"`
}

type InitValues

type InitValues struct {
	Manifests         string           `json:"manifests,omitempty"`
	ManifestsTemplate string           `json:"manifestsTemplate,omitempty"`
	Helm              []InitHelmCharts `json:"helm,omitempty"`
}

type IsolationLimitRangeDefaultValues

type IsolationLimitRangeDefaultValues struct {
	EphemeralStorage string `json:"ephemeral-storage,omitempty"`
	Memory           string `json:"memory,omitempty"`
	CPU              string `json:"cpu,omitempty"`
}

type IsolationLimitRangeValues

type IsolationLimitRangeValues struct {
	Enabled        bool                             `json:"enabled,omitempty"`
	Default        IsolationLimitRangeDefaultValues `json:"default,omitempty"`
	DefaultRequest IsolationLimitRangeDefaultValues `json:"defaultRequest,omitempty"`
}

type IsolationValues

type IsolationValues struct {
	Enabled             bool          `json:"enabled,omitempty"`
	Namespace           *string       `json:"namespace,omitempty"`
	PodSecurityStandard string        `json:"podSecurityStandard,omitempty"`
	NodeProxyPermission EnabledSwitch `json:"nodeProxyPermission,omitempty"`

	ResourceQuota struct {
		Enabled       bool                        `json:"enabled,omitempty"`
		Quota         map[string]interface{}      `json:"quota,omitempty"`
		ScopeSelector corev1.ScopeSelector        `json:"scopeSelector,omitempty"`
		Scopes        []corev1.ResourceQuotaScope `json:"scopes,omitempty"`
	} `json:"resourceQuota,omitempty"`

	LimitRange    IsolationLimitRangeValues `json:"limitRange,omitempty"`
	NetworkPolicy NetworkPolicyValues       `json:"networkPolicy,omitempty"`
}

type K0s

type K0s struct {
	BaseHelm
	AutoDeletePersistentVolumeClaims bool           `json:"autoDeletePersistentVolumeClaims,omitempty"`
	VCluster                         VClusterValues `json:"vcluster,omitempty"`
	Syncer                           SyncerValues   `json:"syncer,omitempty"`
}

type K3SEtcdValues

type K3SEtcdValues struct {
	Enabled bool `json:"enabled,omitempty"`
	Migrate bool `json:"migrate,omitempty"`

	CommonValues
	SyncerExORCommonValues
	ControlPlaneCommonValues
	Storage struct {
		Persistence bool   `json:"persistence,omitempty"`
		Size        string `json:"size,omitempty"`
	} `json:"storage,omitempty"`
	SecurityContext    corev1.SecurityContext `json:"securityContext,omitempty"`
	ServiceAnnotations map[string]string      `json:"serviceAnnotations,omitempty"`
}

type K3s

type K3s struct {
	BaseHelm
	AutoDeletePersistentVolumeClaims bool                  `json:"autoDeletePersistentVolumeClaims,omitempty"`
	K3sToken                         string                `json:"k3sToken,omitempty"`
	EmbeddedEtcd                     K3sEmbeddedEtcdValues `json:"embeddedEtcd,omitempty"`
	Etcd                             K3SEtcdValues         `json:"etcd,omitempty"`
	VCluster                         VClusterValues        `json:"vcluster,omitempty"`
	Syncer                           SyncerValues          `json:"syncer,omitempty"`
}

type K3sEmbeddedEtcdValues

type K3sEmbeddedEtcdValues struct {
	Enabled bool `json:"enabled,omitempty"`
	Migrate bool `json:"migrate,omitempty"`
}

type K8s

type K8s struct {
	BaseHelm
	Syncer     K8sSyncerValues  `json:"syncer,omitempty"`
	API        APIServerValues  `json:"api,omitempty"`
	Controller ControllerValues `json:"controller,omitempty"`
	Scheduler  SchedulerValues  `json:"scheduler,omitempty"`
	Etcd       EtcdValues       `json:"etcd,omitempty"`
}

type K8sSyncerValues

type K8sSyncerValues struct {
	SyncerValues
	CommonValues
	SecurityContext    corev1.SecurityContext    `json:"securityContext,omitempty"`
	PodSecurityContext corev1.PodSecurityContext `json:"podSecurityContext,omitempty"`
}

type MapServices

type MapServices struct {
	FromVirtual []ServiceMapping `json:"fromVirtual,omitempty"`
	FromHost    []ServiceMapping `json:"fromHost,omitempty"`
}

type MetricsProxyServerConfig

type MetricsProxyServerConfig struct {
	Nodes EnabledSwitch `json:"nodes,omitempty"`
	Pods  EnabledSwitch `json:"pods,omitempty"`
}

type NetworkPolicyValues

type NetworkPolicyValues struct {
	Enabled             bool `json:"enabled,omitempty"`
	OutgoingConnections struct {
		IPBlock struct {
			CIDR   string   `json:"cidr,omitempty"`
			Except []string `json:"except,omitempty"`
		} `json:"ipBlock,omitempty"`
	} `json:"outgoingConnections,omitempty"`
}

type NoopSyncerValues

type NoopSyncerValues struct {
	Enabled        bool `json:"enabled,omitempty"`
	Synck8sService bool `json:"synck8SService,omitempty"`
	Secret         struct {
		ServerCaCert        string `json:"serverCaCert,omitempty"`
		ServerCaKey         string `json:"serverCaKey,omitempty"`
		ClientCaCert        string `json:"clientCaCert,omitempty"`
		RequestHeaderCaCert string `json:"requestHeaderCaCert,omitempty"`
		KubeConfig          string `json:"kubeConfig,omitempty"`
	}
}

type PDBValues

type PDBValues struct {
	Enabled        bool                `json:"enabled,omitempty"`
	MinAvailable   *intstr.IntOrString `json:"minAvailable,omitempty"`
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
}

type ProxyValues

type ProxyValues struct {
	MetricsServer MetricsProxyServerConfig `json:"metricsServer,omitempty"`
}

type RBACValues

type RBACValues struct {
	ClusterRole struct {
		Create bool `json:"create,omitempty"`
	} `json:"clusterRole,omitempty"`
	Role struct {
		Create               bool     `json:"create,omitempty"`
		Extended             bool     `json:"extended,omitempty"`
		ExcludedAPIResources []string `json:"excludedAPIResources,omitempty"`
	} `json:"role,omitempty"`
}

These should be remove from the chart first as they are deprecated there

type Record

type Record struct {
	RecordType RecordType `json:"recordType,omitempty"`
	FQDN       *string    `json:"fqdn,omitempty"`
	Service    *string    `json:"service,omitempty"`
	Namespace  *string    `json:"namespace,omitempty"`
}

type RecordType

type RecordType string

type ServiceMapping

type ServiceMapping struct {
	From string `json:"from"`
	To   string `json:"to"`
}

type ServiceValues

type ServiceValues struct {
	Type                     corev1.ServiceType                  `json:"type,omitempty"`
	ExternalIPs              []string                            `json:"externalIPs,omitempty"`
	ExternalTrafficPolicy    corev1.ServiceExternalTrafficPolicy `json:"externalTrafficPolicy,omitempty"`
	LoadBalancerIP           string                              `json:"loadBalancerIP,omitempty"`
	LoadBalancerSourceRanges []string                            `json:"loadBalancerSourceRanges,omitempty"`
	LoadBalancerClass        string                              `json:"loadBalancerClass,omitempty"`
}

type StorageValues

type StorageValues struct {
	Persistence bool   `json:"persistence,omitempty"`
	Size        string `json:"size,omitempty"`
}

type SyncConfigMaps

type SyncConfigMaps struct {
	Enabled bool `json:"enabled,omitempty"`
	All     bool `json:"all,omitempty"`
}

type SyncGeneric

type SyncGeneric struct {
	Config string `json:"config,omitempty"`
}

type SyncNodes

type SyncNodes struct {
	FakeKubeletIPs  bool   `json:"fakeKubeletIPs,omitempty"`
	Enabled         bool   `json:"enabled,omitempty"`
	SyncAllNodes    bool   `json:"syncAllNodes,omitempty"`
	NodeSelector    string `json:"nodeSelector,omitempty"`
	EnableScheduler bool   `json:"enableScheduler,omitempty"`

	// Deprecated: should be removed from the chart first
	SyncNodeChanges bool `json:"syncNodeChanges,omitempty"`
}

type SyncPods

type SyncPods struct {
	Enabled             bool `json:"enabled,omitempty"`
	EphemeralContainers bool `json:"ephemeralContainers,omitempty"`
	Status              bool `json:"status,omitempty"`
}

type SyncSecrets

type SyncSecrets struct {
	Enabled bool `json:"enabled,omitempty"`
	All     bool `json:"all,omitempty"`
}

type SyncValues

type SyncValues struct {
	Services               EnabledSwitch  `json:"services,omitempty"`
	Configmaps             SyncConfigMaps `json:"configmaps,omitempty"`
	Secrets                SyncSecrets    `json:"secrets,omitempty"`
	Endpoints              EnabledSwitch  `json:"endpoints,omitempty"`
	Pods                   SyncPods       `json:"pods,omitempty"`
	Events                 EnabledSwitch  `json:"events,omitempty"`
	PersistentVolumeClaims EnabledSwitch  `json:"persistentVolumeClaims,omitempty"`
	Ingresses              EnabledSwitch  `json:"ingresses,omitempty"`
	Ingressclasses         EnabledSwitch  `json:"ingressclasses,omitempty"`
	FakeNodes              EnabledSwitch  `json:"fake-nodes,omitempty"`
	FakePersistentvolumes  EnabledSwitch  `json:"fake-persistentvolumes,omitempty"`
	Nodes                  SyncNodes      `json:"nodes,omitempty"`
	PersistentVolumes      EnabledSwitch  `json:"persistentVolumes,omitempty"`
	StorageClasses         EnabledSwitch  `json:"storageClasses,omitempty"`
	Hoststorageclasses     EnabledSwitch  `json:"hoststorageclasses,omitempty"`
	Priorityclasses        EnabledSwitch  `json:"priorityclasses,omitempty"`
	Networkpolicies        EnabledSwitch  `json:"networkpolicies,omitempty"`
	Volumesnapshots        EnabledSwitch  `json:"volumesnapshots,omitempty"`
	Poddisruptionbudgets   EnabledSwitch  `json:"poddisruptionbudgets,omitempty"`
	Serviceaccounts        EnabledSwitch  `json:"serviceaccounts,omitempty"`
	Generic                SyncGeneric    `json:"generic,omitempty"`
}

type SyncerExORCommonValues

type SyncerExORCommonValues struct {
	VolumeMounts []corev1.VolumeMount        `json:"volumeMounts,omitempty"`
	ExtraArgs    []string                    `json:"extraArgs,omitempty"`
	Resources    corev1.ResourceRequirements `json:"resources,omitempty"`
}

type SyncerValues

type SyncerValues struct {
	ControlPlaneCommonValues
	ExtraArgs             []string                    `json:"extraArgs,omitempty"`
	Env                   []corev1.EnvVar             `json:"env,omitempty"`
	LivenessProbe         EnabledSwitch               `json:"livenessProbe,omitempty"`
	ReadinessProbe        EnabledSwitch               `json:"readinessProbe,omitempty"`
	VolumeMounts          []corev1.VolumeMount        `json:"volumeMounts,omitempty"`
	ExtraVolumeMounts     []corev1.VolumeMount        `json:"extraVolumeMounts,omitempty"`
	Resources             corev1.ResourceRequirements `json:"resources,omitempty"`
	KubeConfigContextName string                      `json:"kubeConfigContextName,omitempty"`
	ServiceAnnotations    map[string]string           `json:"serviceAnnotations,omitempty"`
}

type Target

type Target struct {
	Mode      TargetMode `json:"mode,omitempty"`
	VCluster  *string    `json:"vcluster,omitempty"`
	URL       *string    `json:"url,omitempty"`
	Service   *string    `json:"service,omitempty"`
	Namespace *string    `json:"namespace,omitempty"`
}

type TargetMode

type TargetMode string

type TelemetryValues

type TelemetryValues struct {
	Disabled           bool   `json:"disabled,omitempty"`
	InstanceCreator    string `json:"instanceCreator,omitempty"`
	InstanceCreatorUID string `json:"instanceCreatorUID,omitempty"`
}

type VClusterValues

type VClusterValues struct {
	Image             string                      `json:"image,omitempty"`
	ImagePullPolicy   string                      `json:"imagePullPolicy,omitempty"`
	Command           []string                    `json:"command,omitempty"`
	BaseArgs          []string                    `json:"baseArgs,omitempty"`
	ExtraArgs         []string                    `json:"extraArgs,omitempty"`
	ExtraVolumeMounts []corev1.VolumeMount        `json:"extraVolumeMounts,omitempty"`
	VolumeMounts      []corev1.VolumeMount        `json:"volumeMounts,omitempty"`
	Env               []corev1.EnvVar             `json:"env,omitempty"`
	Resources         corev1.ResourceRequirements `json:"resources,omitempty"`

	// this is only provided in context of k0s right now
	PriorityClassName string `json:"priorityClassName,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL