Documentation
¶
Index ¶
- type APIServerValues
- type AdmissionValues
- type BaseHelm
- type CommonValues
- type ControlPlaneCommonValues
- type ControllerValues
- type CoreDNSPluginValues
- type CoreDNSServiceValues
- type CoreDNSValues
- type DNSMappings
- type EnabledSwitch
- type EtcdValues
- type FilterSpec
- type IngressValues
- type InitHelmCharts
- type InitValues
- type IsolationLimitRangeDefaultValues
- type IsolationLimitRangeValues
- type IsolationValues
- type K0s
- type K3SEtcdValues
- type K3s
- type K3sEmbeddedEtcdValues
- type K8s
- type K8sSyncerValues
- type MapServices
- type MetricsProxyServerConfig
- type MonitoringValues
- type NetworkPolicyValues
- type NoopSyncerValues
- type PDBValues
- type ProxyValues
- type RBACValues
- type Record
- type RecordType
- type SchedulerValues
- type ServiceMapping
- type ServiceMonitor
- type ServiceValues
- type StorageValues
- type SyncConfigMaps
- type SyncGeneric
- type SyncNodes
- type SyncPods
- type SyncSecrets
- type SyncValues
- type SyncerExORCommonValues
- type SyncerValues
- type Target
- type TargetMode
- type TelemetryValues
- type VClusterValues
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 AdmissionValues ¶ added in v0.18.0
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"`
Monitoring MonitoringValues `json:"monitoring,omitempty"`
Admission AdmissionValues `json:"admission,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 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 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 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 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 MonitoringValues ¶ added in v0.17.1
type MonitoringValues struct {
ServiceMonitor ServiceMonitor `json:"serviceMonitor,omitempty"`
}
type NetworkPolicyValues ¶
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"`
}
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 SchedulerValues ¶
type SchedulerValues struct {
CommonValues
SyncerExORCommonValues
ControlPlaneCommonValues
}
type ServiceMapping ¶
type ServiceMonitor ¶ added in v0.17.1
type ServiceMonitor struct {
Enabled bool `json:"enabled,omitempty"`
}
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 SyncConfigMaps ¶
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 SyncSecrets ¶
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 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"`
}
Click to show internal directories.
Click to hide internal directories.