Documentation ¶
Index ¶
- func ToV1ConfigSpec(spec *appsv1alpha1.ComponentConfigSpec) *appsv1.ComponentConfigSpec
- func ToV1alpha1ConfigSpec(spec *appsv1.ComponentConfigSpec) *appsv1alpha1.ComponentConfigSpec
- func WithMap(keysAndValues ...string) map[string]string
- type BackupBuilder
- type BaseBuilder
- func (builder *BaseBuilder[T, PT, B]) AddAnnotations(keysAndValues ...string) *B
- func (builder *BaseBuilder[T, PT, B]) AddAnnotationsInMap(annotations map[string]string) *B
- func (builder *BaseBuilder[T, PT, B]) AddControllerRevisionHashLabel(value string) *B
- func (builder *BaseBuilder[T, PT, B]) AddFinalizers(finalizers []string) *B
- func (builder *BaseBuilder[T, PT, B]) AddLabels(keysAndValues ...string) *B
- func (builder *BaseBuilder[T, PT, B]) AddLabelsInMap(labels map[string]string) *B
- func (builder *BaseBuilder[T, PT, B]) GetObject() PT
- func (builder *BaseBuilder[T, PT, B]) SetName(name string) *B
- func (builder *BaseBuilder[T, PT, B]) SetOwnerReferences(ownerAPIVersion string, ownerKind string, owner client.Object) *B
- func (builder *BaseBuilder[T, PT, B]) SetUID(uid types.UID) *B
- type ClusterBuilder
- type ComponentBuilder
- func (builder *ComponentBuilder) SetAnnotations(annotations map[string]string) *ComponentBuilder
- func (builder *ComponentBuilder) SetConfigs(configs []appsv1.ClusterComponentConfig) *ComponentBuilder
- func (builder *ComponentBuilder) SetDisableExporter(disableExporter *bool) *ComponentBuilder
- func (builder *ComponentBuilder) SetEnv(env []corev1.EnvVar) *ComponentBuilder
- func (builder *ComponentBuilder) SetInstances(instances []appsv1.InstanceTemplate) *ComponentBuilder
- func (builder *ComponentBuilder) SetLabels(labels map[string]string) *ComponentBuilder
- func (builder *ComponentBuilder) SetOfflineInstances(offlineInstances []string) *ComponentBuilder
- func (builder *ComponentBuilder) SetParallelPodManagementConcurrency(parallelPodManagementConcurrency *intstr.IntOrString) *ComponentBuilder
- func (builder *ComponentBuilder) SetPodUpdatePolicy(policy *appsv1.PodUpdatePolicyType) *ComponentBuilder
- func (builder *ComponentBuilder) SetReplicas(replicas int32) *ComponentBuilder
- func (builder *ComponentBuilder) SetResources(resources corev1.ResourceRequirements) *ComponentBuilder
- func (builder *ComponentBuilder) SetRuntimeClassName(runtimeClassName *string) *ComponentBuilder
- func (builder *ComponentBuilder) SetSchedulingPolicy(schedulingPolicy *appsv1.SchedulingPolicy) *ComponentBuilder
- func (builder *ComponentBuilder) SetServiceAccountName(serviceAccountName string) *ComponentBuilder
- func (builder *ComponentBuilder) SetServiceRefs(serviceRefs []appsv1.ServiceRef) *ComponentBuilder
- func (builder *ComponentBuilder) SetServiceVersion(serviceVersion string) *ComponentBuilder
- func (builder *ComponentBuilder) SetServices(services []appsv1.ClusterComponentService) *ComponentBuilder
- func (builder *ComponentBuilder) SetSidecars(sidecars []appsv1.Sidecar) *ComponentBuilder
- func (builder *ComponentBuilder) SetStop(stop *bool) *ComponentBuilder
- func (builder *ComponentBuilder) SetSystemAccounts(systemAccounts []appsv1.ComponentSystemAccount) *ComponentBuilder
- func (builder *ComponentBuilder) SetTLSConfig(enable bool, issuer *appsv1.Issuer) *ComponentBuilder
- func (builder *ComponentBuilder) SetVolumeClaimTemplates(volumeClaimTemplates []appsv1.ClusterComponentVolumeClaimTemplate) *ComponentBuilder
- func (builder *ComponentBuilder) SetVolumes(volumes []corev1.Volume) *ComponentBuilder
- type ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) AddConfigTemplate(name, configTemplateRef, configConstraintRef, namespace, volumeName string, ...) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) AddEnv(containerName string, envVar corev1.EnvVar) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) AddLogConfig(name, filePathPattern string) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) AddRole(name string, serviceable, writable bool) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) AddScriptTemplate(name, configTemplateRef, namespace, volumeName string, mode *int32) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) AddService(name, serviceName string, port int32, roleSelector string) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) AddServiceExt(name, serviceName string, serviceSpec corev1.ServiceSpec, roleSelector string) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) AddSystemAccount(accountName string, initAccount bool, statement string) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) AddVar(v appsv1.EnvVar) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) AddVolume(name string, snapshot bool, watermark int) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) AddVolumeMounts(containerName string, volumeMounts []corev1.VolumeMount) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) SetLabels(labels map[string]string) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) SetLifecycleAction(name string, val interface{}) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) SetPolicyRules(rules []rbacv1.PolicyRule) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) SetReplicasLimit(minReplicas, maxReplicas int32) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) SetRuntime(container *corev1.Container) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) SetUpdateStrategy(strategy *appsv1.UpdateStrategy) *ComponentDefinitionBuilder
- type ConfigMapBuilder
- func (builder *ConfigMapBuilder) PutBinaryData(key string, value []byte) *ConfigMapBuilder
- func (builder *ConfigMapBuilder) PutData(key, value string) *ConfigMapBuilder
- func (builder *ConfigMapBuilder) SetBinaryData(binaryData map[string][]byte) *ConfigMapBuilder
- func (builder *ConfigMapBuilder) SetData(data map[string]string) *ConfigMapBuilder
- func (builder *ConfigMapBuilder) SetImmutable(immutable bool) *ConfigMapBuilder
- type ConfigurationBuilder
- type ContainerBuilder
- func (builder *ContainerBuilder) AddArgs(args ...string) *ContainerBuilder
- func (builder *ContainerBuilder) AddCommands(commands ...string) *ContainerBuilder
- func (builder *ContainerBuilder) AddEnv(env ...corev1.EnvVar) *ContainerBuilder
- func (builder *ContainerBuilder) AddPorts(ports ...corev1.ContainerPort) *ContainerBuilder
- func (builder *ContainerBuilder) AddVolumeMounts(mounts ...corev1.VolumeMount) *ContainerBuilder
- func (builder *ContainerBuilder) GetObject() *corev1.Container
- func (builder *ContainerBuilder) SetImage(image string) *ContainerBuilder
- func (builder *ContainerBuilder) SetImagePullPolicy(policy corev1.PullPolicy) *ContainerBuilder
- func (builder *ContainerBuilder) SetLivenessProbe(probe corev1.Probe) *ContainerBuilder
- func (builder *ContainerBuilder) SetReadinessProbe(probe corev1.Probe) *ContainerBuilder
- func (builder *ContainerBuilder) SetResources(resources corev1.ResourceRequirements) *ContainerBuilder
- func (builder *ContainerBuilder) SetSecurityContext(ctx corev1.SecurityContext) *ContainerBuilder
- func (builder *ContainerBuilder) SetStartupProbe(probe corev1.Probe) *ContainerBuilder
- type EventBuilder
- func (builder *EventBuilder) SetAction(action string) *EventBuilder
- func (builder *EventBuilder) SetEventTime(eventTime metav1.MicroTime) *EventBuilder
- func (builder *EventBuilder) SetFirstTimestamp(firstTimestamp metav1.Time) *EventBuilder
- func (builder *EventBuilder) SetInvolvedObject(objectRef corev1.ObjectReference) *EventBuilder
- func (builder *EventBuilder) SetLastTimestamp(lastTimestamp metav1.Time) *EventBuilder
- func (builder *EventBuilder) SetMessage(message string) *EventBuilder
- func (builder *EventBuilder) SetReason(reason string) *EventBuilder
- func (builder *EventBuilder) SetReportingController(reportingController string) *EventBuilder
- func (builder *EventBuilder) SetReportingInstance(reportingInstance string) *EventBuilder
- func (builder *EventBuilder) SetType(tp string) *EventBuilder
- type InstanceSetBuilder
- func (builder *InstanceSetBuilder) AddCustomHandler(handler workloads.Action) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) AddMatchLabel(key, value string) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) AddMatchLabels(keyValues ...string) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) AddMatchLabelsInMap(labels map[string]string) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) AddVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetCredential(credential workloads.Credential) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetCustomHandler(handler []workloads.Action) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetInstances(instances []workloads.InstanceTemplate) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetMemberUpdateStrategy(strategy *workloads.MemberUpdateStrategy) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetMembershipReconfiguration(reconfiguration *workloads.MembershipReconfiguration) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetMinReadySeconds(minReadySeconds int32) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetParallelPodManagementConcurrency(parallelPodManagementConcurrency *intstr.IntOrString) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetPaused(paused bool) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetPodManagementPolicy(policy apps.PodManagementPolicyType) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetPodUpdatePolicy(policy workloads.PodUpdatePolicyType) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetReplicas(replicas int32) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetRoleProbe(roleProbe *workloads.RoleProbe) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetRoles(roles []workloads.ReplicaRole) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetTemplate(template corev1.PodTemplateSpec) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetUpdateStrategy(strategy apps.StatefulSetUpdateStrategy) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetUpdateStrategyType(strategyType apps.StatefulSetUpdateStrategyType) *InstanceSetBuilder
- func (builder *InstanceSetBuilder) SetVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *InstanceSetBuilder
- type JobBuilder
- func (builder *JobBuilder) AddSelector(key, value string) *JobBuilder
- func (builder *JobBuilder) SetBackoffLimit(limit int32) *JobBuilder
- func (builder *JobBuilder) SetPodTemplateSpec(template corev1.PodTemplateSpec) *JobBuilder
- func (builder *JobBuilder) SetSuspend(suspend bool) *JobBuilder
- func (builder *JobBuilder) SetTTLSecondsAfterFinished(ttl int32) *JobBuilder
- type NodeCountScalerBuilder
- type PVCBuilder
- func (builder *PVCBuilder) SetAccessModes(accessModes []corev1.PersistentVolumeAccessMode) *PVCBuilder
- func (builder *PVCBuilder) SetDataSource(dataSource corev1.TypedLocalObjectReference) *PVCBuilder
- func (builder *PVCBuilder) SetResources(resources corev1.VolumeResourceRequirements) *PVCBuilder
- func (builder *PVCBuilder) SetSpec(spec corev1.PersistentVolumeClaimSpec) *PVCBuilder
- func (builder *PVCBuilder) SetStorageClass(sc string) *PVCBuilder
- type PodBuilder
- func (builder *PodBuilder) AddContainer(container corev1.Container) *PodBuilder
- func (builder *PodBuilder) AddInitContainer(container corev1.Container) *PodBuilder
- func (builder *PodBuilder) AddServiceAccount(serviceAccount string) *PodBuilder
- func (builder *PodBuilder) AddTolerations(tolerations ...corev1.Toleration) *PodBuilder
- func (builder *PodBuilder) AddVolumes(volumes ...corev1.Volume) *PodBuilder
- func (builder *PodBuilder) SetActiveDeadlineSeconds(activeDeadline *int64) *PodBuilder
- func (builder *PodBuilder) SetAffinity(affinity *corev1.Affinity) *PodBuilder
- func (builder *PodBuilder) SetContainers(containers []corev1.Container) *PodBuilder
- func (builder *PodBuilder) SetFinalizers() *PodBuilder
- func (builder *PodBuilder) SetImagePullSecrets(secrets []corev1.LocalObjectReference) *PodBuilder
- func (builder *PodBuilder) SetInitContainers(initContainers []corev1.Container) *PodBuilder
- func (builder *PodBuilder) SetNodeName(nodeName types.NodeName) *PodBuilder
- func (builder *PodBuilder) SetNodeSelector(nodeSelector map[string]string) *PodBuilder
- func (builder *PodBuilder) SetPodSpec(podSpec corev1.PodSpec) *PodBuilder
- func (builder *PodBuilder) SetRestartPolicy(policy corev1.RestartPolicy) *PodBuilder
- func (builder *PodBuilder) SetSecurityContext(ctx corev1.PodSecurityContext) *PodBuilder
- func (builder *PodBuilder) SetTopologySpreadConstraints(topologySpreadConstraints []corev1.TopologySpreadConstraint) *PodBuilder
- type RoleBindingBuilder
- type SecretBuilder
- func (builder *SecretBuilder) PutData(key string, value []byte) *SecretBuilder
- func (builder *SecretBuilder) PutStringData(key, value string) *SecretBuilder
- func (builder *SecretBuilder) SetData(binaryData map[string][]byte) *SecretBuilder
- func (builder *SecretBuilder) SetImmutable(immutable bool) *SecretBuilder
- func (builder *SecretBuilder) SetSecretType(secretType corev1.SecretType) *SecretBuilder
- func (builder *SecretBuilder) SetStringData(data map[string]string) *SecretBuilder
- type ServiceAccountBuilder
- type ServiceBuilder
- func (builder *ServiceBuilder) AddContainerPorts(ports ...corev1.ContainerPort) *ServiceBuilder
- func (builder *ServiceBuilder) AddPorts(ports ...corev1.ServicePort) *ServiceBuilder
- func (builder *ServiceBuilder) AddSelector(key, value string) *ServiceBuilder
- func (builder *ServiceBuilder) AddSelectors(keyValues ...string) *ServiceBuilder
- func (builder *ServiceBuilder) AddSelectorsInMap(keyValues map[string]string) *ServiceBuilder
- func (builder *ServiceBuilder) Optimize4ExternalTraffic() *ServiceBuilder
- func (builder *ServiceBuilder) SetPublishNotReadyAddresses(enabled bool) *ServiceBuilder
- func (builder *ServiceBuilder) SetSpec(spec *corev1.ServiceSpec) *ServiceBuilder
- func (builder *ServiceBuilder) SetType(serviceType corev1.ServiceType) *ServiceBuilder
- type ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetAuth(auth appsv1.ConnectionCredentialAuth) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetAuthPassword(password appsv1.CredentialVar) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetAuthUsername(username appsv1.CredentialVar) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetEndpoint(endpoint appsv1.CredentialVar) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetHost(host appsv1.CredentialVar) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetPodFQDNs(podFQDNs appsv1.CredentialVar) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetPort(port appsv1.CredentialVar) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetServiceKind(serviceKind string) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetServiceVersion(serviceVersion string) *ServiceDescriptorBuilder
- type VolumeBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToV1ConfigSpec ¶
func ToV1ConfigSpec(spec *appsv1alpha1.ComponentConfigSpec) *appsv1.ComponentConfigSpec
func ToV1alpha1ConfigSpec ¶
func ToV1alpha1ConfigSpec(spec *appsv1.ComponentConfigSpec) *appsv1alpha1.ComponentConfigSpec
Types ¶
type BackupBuilder ¶
type BackupBuilder struct { BaseBuilder[dataprotection.Backup, *dataprotection.Backup, BackupBuilder] }
func NewBackupBuilder ¶
func NewBackupBuilder(namespace, name string) *BackupBuilder
func (*BackupBuilder) SetBackupMethod ¶
func (builder *BackupBuilder) SetBackupMethod(method string) *BackupBuilder
func (*BackupBuilder) SetBackupPolicyName ¶
func (builder *BackupBuilder) SetBackupPolicyName(policyName string) *BackupBuilder
func (*BackupBuilder) SetParentBackupName ¶
func (builder *BackupBuilder) SetParentBackupName(parent string) *BackupBuilder
type BaseBuilder ¶
type BaseBuilder[T intctrlutil.Object, PT intctrlutil.PObject[T], B any] struct { // contains filtered or unexported fields }
func (*BaseBuilder[T, PT, B]) AddAnnotations ¶
func (builder *BaseBuilder[T, PT, B]) AddAnnotations(keysAndValues ...string) *B
func (*BaseBuilder[T, PT, B]) AddAnnotationsInMap ¶
func (builder *BaseBuilder[T, PT, B]) AddAnnotationsInMap(annotations map[string]string) *B
func (*BaseBuilder[T, PT, B]) AddControllerRevisionHashLabel ¶
func (builder *BaseBuilder[T, PT, B]) AddControllerRevisionHashLabel(value string) *B
func (*BaseBuilder[T, PT, B]) AddFinalizers ¶
func (builder *BaseBuilder[T, PT, B]) AddFinalizers(finalizers []string) *B
func (*BaseBuilder[T, PT, B]) AddLabels ¶
func (builder *BaseBuilder[T, PT, B]) AddLabels(keysAndValues ...string) *B
func (*BaseBuilder[T, PT, B]) AddLabelsInMap ¶
func (builder *BaseBuilder[T, PT, B]) AddLabelsInMap(labels map[string]string) *B
func (*BaseBuilder[T, PT, B]) GetObject ¶
func (builder *BaseBuilder[T, PT, B]) GetObject() PT
func (*BaseBuilder[T, PT, B]) SetName ¶
func (builder *BaseBuilder[T, PT, B]) SetName(name string) *B
func (*BaseBuilder[T, PT, B]) SetOwnerReferences ¶
func (builder *BaseBuilder[T, PT, B]) SetOwnerReferences(ownerAPIVersion string, ownerKind string, owner client.Object) *B
func (*BaseBuilder[T, PT, B]) SetUID ¶
func (builder *BaseBuilder[T, PT, B]) SetUID(uid types.UID) *B
type ClusterBuilder ¶ added in v0.9.0
type ClusterBuilder struct { BaseBuilder[appsv1.Cluster, *appsv1.Cluster, ClusterBuilder] }
func NewClusterBuilder ¶ added in v0.9.0
func NewClusterBuilder(namespace, name string) *ClusterBuilder
func (*ClusterBuilder) SetComponentSpecs ¶ added in v0.9.0
func (builder *ClusterBuilder) SetComponentSpecs(specs []appsv1.ClusterComponentSpec) *ClusterBuilder
func (*ClusterBuilder) SetResourceVersion ¶
func (builder *ClusterBuilder) SetResourceVersion(resourceVersion string) *ClusterBuilder
type ComponentBuilder ¶ added in v0.8.0
type ComponentBuilder struct { BaseBuilder[appsv1.Component, *appsv1.Component, ComponentBuilder] }
func NewComponentBuilder ¶ added in v0.8.0
func NewComponentBuilder(namespace, name, compDef string) *ComponentBuilder
func (*ComponentBuilder) SetAnnotations ¶ added in v0.8.4
func (builder *ComponentBuilder) SetAnnotations(annotations map[string]string) *ComponentBuilder
func (*ComponentBuilder) SetConfigs ¶
func (builder *ComponentBuilder) SetConfigs(configs []appsv1.ClusterComponentConfig) *ComponentBuilder
func (*ComponentBuilder) SetDisableExporter ¶ added in v0.9.0
func (builder *ComponentBuilder) SetDisableExporter(disableExporter *bool) *ComponentBuilder
func (*ComponentBuilder) SetEnv ¶ added in v0.8.4
func (builder *ComponentBuilder) SetEnv(env []corev1.EnvVar) *ComponentBuilder
func (*ComponentBuilder) SetInstances ¶ added in v0.8.0
func (builder *ComponentBuilder) SetInstances(instances []appsv1.InstanceTemplate) *ComponentBuilder
func (*ComponentBuilder) SetLabels ¶ added in v0.8.4
func (builder *ComponentBuilder) SetLabels(labels map[string]string) *ComponentBuilder
func (*ComponentBuilder) SetOfflineInstances ¶ added in v0.9.0
func (builder *ComponentBuilder) SetOfflineInstances(offlineInstances []string) *ComponentBuilder
func (*ComponentBuilder) SetParallelPodManagementConcurrency ¶ added in v0.9.1
func (builder *ComponentBuilder) SetParallelPodManagementConcurrency(parallelPodManagementConcurrency *intstr.IntOrString) *ComponentBuilder
func (*ComponentBuilder) SetPodUpdatePolicy ¶ added in v0.9.1
func (builder *ComponentBuilder) SetPodUpdatePolicy(policy *appsv1.PodUpdatePolicyType) *ComponentBuilder
func (*ComponentBuilder) SetReplicas ¶ added in v0.8.0
func (builder *ComponentBuilder) SetReplicas(replicas int32) *ComponentBuilder
func (*ComponentBuilder) SetResources ¶ added in v0.8.0
func (builder *ComponentBuilder) SetResources(resources corev1.ResourceRequirements) *ComponentBuilder
func (*ComponentBuilder) SetRuntimeClassName ¶ added in v0.9.0
func (builder *ComponentBuilder) SetRuntimeClassName(runtimeClassName *string) *ComponentBuilder
func (*ComponentBuilder) SetSchedulingPolicy ¶ added in v0.9.1
func (builder *ComponentBuilder) SetSchedulingPolicy(schedulingPolicy *appsv1.SchedulingPolicy) *ComponentBuilder
func (*ComponentBuilder) SetServiceAccountName ¶ added in v0.8.0
func (builder *ComponentBuilder) SetServiceAccountName(serviceAccountName string) *ComponentBuilder
func (*ComponentBuilder) SetServiceRefs ¶ added in v0.8.0
func (builder *ComponentBuilder) SetServiceRefs(serviceRefs []appsv1.ServiceRef) *ComponentBuilder
func (*ComponentBuilder) SetServiceVersion ¶ added in v0.9.0
func (builder *ComponentBuilder) SetServiceVersion(serviceVersion string) *ComponentBuilder
func (*ComponentBuilder) SetServices ¶ added in v0.9.0
func (builder *ComponentBuilder) SetServices(services []appsv1.ClusterComponentService) *ComponentBuilder
func (*ComponentBuilder) SetSidecars ¶
func (builder *ComponentBuilder) SetSidecars(sidecars []appsv1.Sidecar) *ComponentBuilder
func (*ComponentBuilder) SetStop ¶ added in v0.9.1
func (builder *ComponentBuilder) SetStop(stop *bool) *ComponentBuilder
func (*ComponentBuilder) SetSystemAccounts ¶ added in v0.9.0
func (builder *ComponentBuilder) SetSystemAccounts(systemAccounts []appsv1.ComponentSystemAccount) *ComponentBuilder
func (*ComponentBuilder) SetTLSConfig ¶ added in v0.8.0
func (builder *ComponentBuilder) SetTLSConfig(enable bool, issuer *appsv1.Issuer) *ComponentBuilder
func (*ComponentBuilder) SetVolumeClaimTemplates ¶ added in v0.8.0
func (builder *ComponentBuilder) SetVolumeClaimTemplates(volumeClaimTemplates []appsv1.ClusterComponentVolumeClaimTemplate) *ComponentBuilder
func (*ComponentBuilder) SetVolumes ¶ added in v0.8.4
func (builder *ComponentBuilder) SetVolumes(volumes []corev1.Volume) *ComponentBuilder
type ComponentDefinitionBuilder ¶ added in v0.8.0
type ComponentDefinitionBuilder struct { BaseBuilder[appsv1.ComponentDefinition, *appsv1.ComponentDefinition, ComponentDefinitionBuilder] }
func NewComponentDefinitionBuilder ¶ added in v0.8.0
func NewComponentDefinitionBuilder(name string) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) AddConfigTemplate ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) AddConfigTemplate(name, configTemplateRef, configConstraintRef, namespace, volumeName string, injectEnvTo ...string) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) AddEnv ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) AddEnv(containerName string, envVar corev1.EnvVar) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) AddLogConfig ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) AddLogConfig(name, filePathPattern string) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) AddRole ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) AddRole(name string, serviceable, writable bool) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) AddScriptTemplate ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) AddScriptTemplate(name, configTemplateRef, namespace, volumeName string, mode *int32) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) AddService ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) AddService(name, serviceName string, port int32, roleSelector string) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) AddServiceExt ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) AddServiceExt(name, serviceName string, serviceSpec corev1.ServiceSpec, roleSelector string) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) AddSystemAccount ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) AddSystemAccount(accountName string, initAccount bool, statement string) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) AddVar ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) AddVar(v appsv1.EnvVar) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) AddVolume ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) AddVolume(name string, snapshot bool, watermark int) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) AddVolumeMounts ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) AddVolumeMounts(containerName string, volumeMounts []corev1.VolumeMount) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) SetLabels ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) SetLabels(labels map[string]string) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) SetLifecycleAction ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) SetLifecycleAction(name string, val interface{}) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) SetPolicyRules ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) SetPolicyRules(rules []rbacv1.PolicyRule) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) SetReplicasLimit ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) SetReplicasLimit(minReplicas, maxReplicas int32) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) SetRuntime ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) SetRuntime(container *corev1.Container) *ComponentDefinitionBuilder
SetRuntime adds a new container to runtime, or updates it to @container if it's already existed. If @container is nil, the default MySQL container (defaultMySQLContainer) will be used.
func (*ComponentDefinitionBuilder) SetUpdateStrategy ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) SetUpdateStrategy(strategy *appsv1.UpdateStrategy) *ComponentDefinitionBuilder
type ConfigMapBuilder ¶
type ConfigMapBuilder struct { BaseBuilder[corev1.ConfigMap, *corev1.ConfigMap, ConfigMapBuilder] }
func NewConfigMapBuilder ¶
func NewConfigMapBuilder(namespace, name string) *ConfigMapBuilder
func (*ConfigMapBuilder) PutBinaryData ¶
func (builder *ConfigMapBuilder) PutBinaryData(key string, value []byte) *ConfigMapBuilder
func (*ConfigMapBuilder) PutData ¶
func (builder *ConfigMapBuilder) PutData(key, value string) *ConfigMapBuilder
func (*ConfigMapBuilder) SetBinaryData ¶
func (builder *ConfigMapBuilder) SetBinaryData(binaryData map[string][]byte) *ConfigMapBuilder
func (*ConfigMapBuilder) SetData ¶
func (builder *ConfigMapBuilder) SetData(data map[string]string) *ConfigMapBuilder
func (*ConfigMapBuilder) SetImmutable ¶
func (builder *ConfigMapBuilder) SetImmutable(immutable bool) *ConfigMapBuilder
type ConfigurationBuilder ¶
type ConfigurationBuilder struct { BaseBuilder[appsv1alpha1.Configuration, *appsv1alpha1.Configuration, ConfigurationBuilder] }
func NewConfigurationBuilder ¶
func NewConfigurationBuilder(namespace, name string) *ConfigurationBuilder
func (*ConfigurationBuilder) AddConfigurationItem ¶
func (c *ConfigurationBuilder) AddConfigurationItem(configSpec appsv1.ComponentConfigSpec) *ConfigurationBuilder
func (*ConfigurationBuilder) ClusterRef ¶
func (c *ConfigurationBuilder) ClusterRef(clusterName string) *ConfigurationBuilder
func (*ConfigurationBuilder) Component ¶
func (c *ConfigurationBuilder) Component(component string) *ConfigurationBuilder
type ContainerBuilder ¶
type ContainerBuilder struct {
// contains filtered or unexported fields
}
func NewContainerBuilder ¶
func NewContainerBuilder(name string) *ContainerBuilder
func (*ContainerBuilder) AddArgs ¶
func (builder *ContainerBuilder) AddArgs(args ...string) *ContainerBuilder
func (*ContainerBuilder) AddCommands ¶
func (builder *ContainerBuilder) AddCommands(commands ...string) *ContainerBuilder
func (*ContainerBuilder) AddEnv ¶
func (builder *ContainerBuilder) AddEnv(env ...corev1.EnvVar) *ContainerBuilder
func (*ContainerBuilder) AddPorts ¶
func (builder *ContainerBuilder) AddPorts(ports ...corev1.ContainerPort) *ContainerBuilder
func (*ContainerBuilder) AddVolumeMounts ¶
func (builder *ContainerBuilder) AddVolumeMounts(mounts ...corev1.VolumeMount) *ContainerBuilder
func (*ContainerBuilder) GetObject ¶
func (builder *ContainerBuilder) GetObject() *corev1.Container
func (*ContainerBuilder) SetImage ¶
func (builder *ContainerBuilder) SetImage(image string) *ContainerBuilder
func (*ContainerBuilder) SetImagePullPolicy ¶
func (builder *ContainerBuilder) SetImagePullPolicy(policy corev1.PullPolicy) *ContainerBuilder
func (*ContainerBuilder) SetLivenessProbe ¶ added in v0.7.1
func (builder *ContainerBuilder) SetLivenessProbe(probe corev1.Probe) *ContainerBuilder
func (*ContainerBuilder) SetReadinessProbe ¶
func (builder *ContainerBuilder) SetReadinessProbe(probe corev1.Probe) *ContainerBuilder
func (*ContainerBuilder) SetResources ¶
func (builder *ContainerBuilder) SetResources(resources corev1.ResourceRequirements) *ContainerBuilder
func (*ContainerBuilder) SetSecurityContext ¶
func (builder *ContainerBuilder) SetSecurityContext(ctx corev1.SecurityContext) *ContainerBuilder
func (*ContainerBuilder) SetStartupProbe ¶
func (builder *ContainerBuilder) SetStartupProbe(probe corev1.Probe) *ContainerBuilder
type EventBuilder ¶
type EventBuilder struct { BaseBuilder[corev1.Event, *corev1.Event, EventBuilder] }
func NewEventBuilder ¶
func NewEventBuilder(namespace, name string) *EventBuilder
func (*EventBuilder) SetAction ¶
func (builder *EventBuilder) SetAction(action string) *EventBuilder
func (*EventBuilder) SetEventTime ¶
func (builder *EventBuilder) SetEventTime(eventTime metav1.MicroTime) *EventBuilder
func (*EventBuilder) SetFirstTimestamp ¶
func (builder *EventBuilder) SetFirstTimestamp(firstTimestamp metav1.Time) *EventBuilder
func (*EventBuilder) SetInvolvedObject ¶
func (builder *EventBuilder) SetInvolvedObject(objectRef corev1.ObjectReference) *EventBuilder
func (*EventBuilder) SetLastTimestamp ¶
func (builder *EventBuilder) SetLastTimestamp(lastTimestamp metav1.Time) *EventBuilder
func (*EventBuilder) SetMessage ¶
func (builder *EventBuilder) SetMessage(message string) *EventBuilder
func (*EventBuilder) SetReason ¶
func (builder *EventBuilder) SetReason(reason string) *EventBuilder
func (*EventBuilder) SetReportingController ¶
func (builder *EventBuilder) SetReportingController(reportingController string) *EventBuilder
func (*EventBuilder) SetReportingInstance ¶
func (builder *EventBuilder) SetReportingInstance(reportingInstance string) *EventBuilder
func (*EventBuilder) SetType ¶
func (builder *EventBuilder) SetType(tp string) *EventBuilder
type InstanceSetBuilder ¶ added in v0.9.0
type InstanceSetBuilder struct { BaseBuilder[workloads.InstanceSet, *workloads.InstanceSet, InstanceSetBuilder] }
func NewInstanceSetBuilder ¶ added in v0.9.0
func NewInstanceSetBuilder(namespace, name string) *InstanceSetBuilder
func (*InstanceSetBuilder) AddCustomHandler ¶ added in v0.9.0
func (builder *InstanceSetBuilder) AddCustomHandler(handler workloads.Action) *InstanceSetBuilder
func (*InstanceSetBuilder) AddMatchLabel ¶ added in v0.9.0
func (builder *InstanceSetBuilder) AddMatchLabel(key, value string) *InstanceSetBuilder
func (*InstanceSetBuilder) AddMatchLabels ¶ added in v0.9.0
func (builder *InstanceSetBuilder) AddMatchLabels(keyValues ...string) *InstanceSetBuilder
func (*InstanceSetBuilder) AddMatchLabelsInMap ¶ added in v0.9.0
func (builder *InstanceSetBuilder) AddMatchLabelsInMap(labels map[string]string) *InstanceSetBuilder
func (*InstanceSetBuilder) AddVolumeClaimTemplates ¶ added in v0.9.0
func (builder *InstanceSetBuilder) AddVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *InstanceSetBuilder
func (*InstanceSetBuilder) SetCredential ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetCredential(credential workloads.Credential) *InstanceSetBuilder
func (*InstanceSetBuilder) SetCustomHandler ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetCustomHandler(handler []workloads.Action) *InstanceSetBuilder
func (*InstanceSetBuilder) SetInstances ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetInstances(instances []workloads.InstanceTemplate) *InstanceSetBuilder
func (*InstanceSetBuilder) SetMemberUpdateStrategy ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetMemberUpdateStrategy(strategy *workloads.MemberUpdateStrategy) *InstanceSetBuilder
func (*InstanceSetBuilder) SetMembershipReconfiguration ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetMembershipReconfiguration(reconfiguration *workloads.MembershipReconfiguration) *InstanceSetBuilder
func (*InstanceSetBuilder) SetMinReadySeconds ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetMinReadySeconds(minReadySeconds int32) *InstanceSetBuilder
func (*InstanceSetBuilder) SetParallelPodManagementConcurrency ¶ added in v0.9.1
func (builder *InstanceSetBuilder) SetParallelPodManagementConcurrency(parallelPodManagementConcurrency *intstr.IntOrString) *InstanceSetBuilder
func (*InstanceSetBuilder) SetPaused ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetPaused(paused bool) *InstanceSetBuilder
func (*InstanceSetBuilder) SetPodManagementPolicy ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetPodManagementPolicy(policy apps.PodManagementPolicyType) *InstanceSetBuilder
func (*InstanceSetBuilder) SetPodUpdatePolicy ¶ added in v0.9.1
func (builder *InstanceSetBuilder) SetPodUpdatePolicy(policy workloads.PodUpdatePolicyType) *InstanceSetBuilder
func (*InstanceSetBuilder) SetReplicas ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetReplicas(replicas int32) *InstanceSetBuilder
func (*InstanceSetBuilder) SetRoleProbe ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetRoleProbe(roleProbe *workloads.RoleProbe) *InstanceSetBuilder
func (*InstanceSetBuilder) SetRoles ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetRoles(roles []workloads.ReplicaRole) *InstanceSetBuilder
func (*InstanceSetBuilder) SetTemplate ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetTemplate(template corev1.PodTemplateSpec) *InstanceSetBuilder
func (*InstanceSetBuilder) SetUpdateStrategy ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetUpdateStrategy(strategy apps.StatefulSetUpdateStrategy) *InstanceSetBuilder
func (*InstanceSetBuilder) SetUpdateStrategyType ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetUpdateStrategyType(strategyType apps.StatefulSetUpdateStrategyType) *InstanceSetBuilder
func (*InstanceSetBuilder) SetVolumeClaimTemplates ¶ added in v0.9.0
func (builder *InstanceSetBuilder) SetVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *InstanceSetBuilder
type JobBuilder ¶
type JobBuilder struct { BaseBuilder[batchv1.Job, *batchv1.Job, JobBuilder] }
func NewJobBuilder ¶
func NewJobBuilder(namespace, name string) *JobBuilder
func (*JobBuilder) AddSelector ¶
func (builder *JobBuilder) AddSelector(key, value string) *JobBuilder
func (*JobBuilder) SetBackoffLimit ¶
func (builder *JobBuilder) SetBackoffLimit(limit int32) *JobBuilder
func (*JobBuilder) SetPodTemplateSpec ¶
func (builder *JobBuilder) SetPodTemplateSpec(template corev1.PodTemplateSpec) *JobBuilder
func (*JobBuilder) SetSuspend ¶
func (builder *JobBuilder) SetSuspend(suspend bool) *JobBuilder
func (*JobBuilder) SetTTLSecondsAfterFinished ¶
func (builder *JobBuilder) SetTTLSecondsAfterFinished(ttl int32) *JobBuilder
type NodeCountScalerBuilder ¶ added in v0.9.0
type NodeCountScalerBuilder struct { BaseBuilder[experimental.NodeCountScaler, *experimental.NodeCountScaler, NodeCountScalerBuilder] }
func NewNodeCountScalerBuilder ¶ added in v0.9.0
func NewNodeCountScalerBuilder(namespace, name string) *NodeCountScalerBuilder
func (*NodeCountScalerBuilder) SetTargetClusterName ¶ added in v0.9.0
func (builder *NodeCountScalerBuilder) SetTargetClusterName(clusterName string) *NodeCountScalerBuilder
func (*NodeCountScalerBuilder) SetTargetComponentNames ¶ added in v0.9.0
func (builder *NodeCountScalerBuilder) SetTargetComponentNames(componentNames []string) *NodeCountScalerBuilder
type PVCBuilder ¶
type PVCBuilder struct { BaseBuilder[corev1.PersistentVolumeClaim, *corev1.PersistentVolumeClaim, PVCBuilder] }
func NewPVCBuilder ¶
func NewPVCBuilder(namespace, name string) *PVCBuilder
func (*PVCBuilder) SetAccessModes ¶
func (builder *PVCBuilder) SetAccessModes(accessModes []corev1.PersistentVolumeAccessMode) *PVCBuilder
func (*PVCBuilder) SetDataSource ¶
func (builder *PVCBuilder) SetDataSource(dataSource corev1.TypedLocalObjectReference) *PVCBuilder
func (*PVCBuilder) SetResources ¶
func (builder *PVCBuilder) SetResources(resources corev1.VolumeResourceRequirements) *PVCBuilder
func (*PVCBuilder) SetSpec ¶ added in v0.9.0
func (builder *PVCBuilder) SetSpec(spec corev1.PersistentVolumeClaimSpec) *PVCBuilder
func (*PVCBuilder) SetStorageClass ¶
func (builder *PVCBuilder) SetStorageClass(sc string) *PVCBuilder
type PodBuilder ¶
type PodBuilder struct { BaseBuilder[corev1.Pod, *corev1.Pod, PodBuilder] }
func NewPodBuilder ¶
func NewPodBuilder(namespace, name string) *PodBuilder
func (*PodBuilder) AddContainer ¶
func (builder *PodBuilder) AddContainer(container corev1.Container) *PodBuilder
func (*PodBuilder) AddInitContainer ¶ added in v0.9.0
func (builder *PodBuilder) AddInitContainer(container corev1.Container) *PodBuilder
func (*PodBuilder) AddServiceAccount ¶ added in v0.7.1
func (builder *PodBuilder) AddServiceAccount(serviceAccount string) *PodBuilder
func (*PodBuilder) AddTolerations ¶
func (builder *PodBuilder) AddTolerations(tolerations ...corev1.Toleration) *PodBuilder
func (*PodBuilder) AddVolumes ¶
func (builder *PodBuilder) AddVolumes(volumes ...corev1.Volume) *PodBuilder
func (*PodBuilder) SetActiveDeadlineSeconds ¶ added in v0.9.0
func (builder *PodBuilder) SetActiveDeadlineSeconds(activeDeadline *int64) *PodBuilder
func (*PodBuilder) SetAffinity ¶ added in v0.8.3
func (builder *PodBuilder) SetAffinity(affinity *corev1.Affinity) *PodBuilder
func (*PodBuilder) SetContainers ¶
func (builder *PodBuilder) SetContainers(containers []corev1.Container) *PodBuilder
func (*PodBuilder) SetFinalizers ¶ added in v0.8.0
func (builder *PodBuilder) SetFinalizers() *PodBuilder
func (*PodBuilder) SetImagePullSecrets ¶ added in v0.9.1
func (builder *PodBuilder) SetImagePullSecrets(secrets []corev1.LocalObjectReference) *PodBuilder
func (*PodBuilder) SetInitContainers ¶ added in v0.8.0
func (builder *PodBuilder) SetInitContainers(initContainers []corev1.Container) *PodBuilder
func (*PodBuilder) SetNodeName ¶ added in v0.8.0
func (builder *PodBuilder) SetNodeName(nodeName types.NodeName) *PodBuilder
func (*PodBuilder) SetNodeSelector ¶ added in v0.7.1
func (builder *PodBuilder) SetNodeSelector(nodeSelector map[string]string) *PodBuilder
func (*PodBuilder) SetPodSpec ¶ added in v0.8.0
func (builder *PodBuilder) SetPodSpec(podSpec corev1.PodSpec) *PodBuilder
func (*PodBuilder) SetRestartPolicy ¶
func (builder *PodBuilder) SetRestartPolicy(policy corev1.RestartPolicy) *PodBuilder
func (*PodBuilder) SetSecurityContext ¶
func (builder *PodBuilder) SetSecurityContext(ctx corev1.PodSecurityContext) *PodBuilder
func (*PodBuilder) SetTopologySpreadConstraints ¶ added in v0.8.3
func (builder *PodBuilder) SetTopologySpreadConstraints(topologySpreadConstraints []corev1.TopologySpreadConstraint) *PodBuilder
type RoleBindingBuilder ¶
type RoleBindingBuilder struct { BaseBuilder[rbacv1.RoleBinding, *rbacv1.RoleBinding, RoleBindingBuilder] }
func NewRoleBindingBuilder ¶
func NewRoleBindingBuilder(namespace, name string) *RoleBindingBuilder
func (*RoleBindingBuilder) AddSubjects ¶
func (builder *RoleBindingBuilder) AddSubjects(subjects ...rbacv1.Subject) *RoleBindingBuilder
func (*RoleBindingBuilder) SetRoleRef ¶
func (builder *RoleBindingBuilder) SetRoleRef(roleRef rbacv1.RoleRef) *RoleBindingBuilder
type SecretBuilder ¶
type SecretBuilder struct { BaseBuilder[corev1.Secret, *corev1.Secret, SecretBuilder] }
func NewSecretBuilder ¶
func NewSecretBuilder(namespace, name string) *SecretBuilder
func (*SecretBuilder) PutData ¶
func (builder *SecretBuilder) PutData(key string, value []byte) *SecretBuilder
func (*SecretBuilder) PutStringData ¶
func (builder *SecretBuilder) PutStringData(key, value string) *SecretBuilder
func (*SecretBuilder) SetData ¶
func (builder *SecretBuilder) SetData(binaryData map[string][]byte) *SecretBuilder
func (*SecretBuilder) SetImmutable ¶
func (builder *SecretBuilder) SetImmutable(immutable bool) *SecretBuilder
func (*SecretBuilder) SetSecretType ¶
func (builder *SecretBuilder) SetSecretType(secretType corev1.SecretType) *SecretBuilder
func (*SecretBuilder) SetStringData ¶
func (builder *SecretBuilder) SetStringData(data map[string]string) *SecretBuilder
type ServiceAccountBuilder ¶
type ServiceAccountBuilder struct { BaseBuilder[corev1.ServiceAccount, *corev1.ServiceAccount, ServiceAccountBuilder] }
func NewServiceAccountBuilder ¶
func NewServiceAccountBuilder(namespace, name string) *ServiceAccountBuilder
func (*ServiceAccountBuilder) SetImagePullSecrets ¶ added in v0.9.1
func (b *ServiceAccountBuilder) SetImagePullSecrets(secrets []corev1.LocalObjectReference) *ServiceAccountBuilder
type ServiceBuilder ¶
type ServiceBuilder struct { BaseBuilder[corev1.Service, *corev1.Service, ServiceBuilder] }
func NewHeadlessServiceBuilder ¶
func NewHeadlessServiceBuilder(namespace, name string) *ServiceBuilder
func NewServiceBuilder ¶
func NewServiceBuilder(namespace, name string) *ServiceBuilder
func (*ServiceBuilder) AddContainerPorts ¶
func (builder *ServiceBuilder) AddContainerPorts(ports ...corev1.ContainerPort) *ServiceBuilder
func (*ServiceBuilder) AddPorts ¶
func (builder *ServiceBuilder) AddPorts(ports ...corev1.ServicePort) *ServiceBuilder
func (*ServiceBuilder) AddSelector ¶
func (builder *ServiceBuilder) AddSelector(key, value string) *ServiceBuilder
func (*ServiceBuilder) AddSelectors ¶
func (builder *ServiceBuilder) AddSelectors(keyValues ...string) *ServiceBuilder
func (*ServiceBuilder) AddSelectorsInMap ¶
func (builder *ServiceBuilder) AddSelectorsInMap(keyValues map[string]string) *ServiceBuilder
func (*ServiceBuilder) Optimize4ExternalTraffic ¶ added in v0.8.0
func (builder *ServiceBuilder) Optimize4ExternalTraffic() *ServiceBuilder
func (*ServiceBuilder) SetPublishNotReadyAddresses ¶ added in v0.8.2
func (builder *ServiceBuilder) SetPublishNotReadyAddresses(enabled bool) *ServiceBuilder
func (*ServiceBuilder) SetSpec ¶ added in v0.8.0
func (builder *ServiceBuilder) SetSpec(spec *corev1.ServiceSpec) *ServiceBuilder
func (*ServiceBuilder) SetType ¶
func (builder *ServiceBuilder) SetType(serviceType corev1.ServiceType) *ServiceBuilder
type ServiceDescriptorBuilder ¶
type ServiceDescriptorBuilder struct { BaseBuilder[appsv1.ServiceDescriptor, *appsv1.ServiceDescriptor, ServiceDescriptorBuilder] }
func NewServiceDescriptorBuilder ¶
func NewServiceDescriptorBuilder(namespace, name string) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetAuth ¶
func (builder *ServiceDescriptorBuilder) SetAuth(auth appsv1.ConnectionCredentialAuth) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetAuthPassword ¶ added in v0.8.0
func (builder *ServiceDescriptorBuilder) SetAuthPassword(password appsv1.CredentialVar) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetAuthUsername ¶ added in v0.8.0
func (builder *ServiceDescriptorBuilder) SetAuthUsername(username appsv1.CredentialVar) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetEndpoint ¶
func (builder *ServiceDescriptorBuilder) SetEndpoint(endpoint appsv1.CredentialVar) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetHost ¶ added in v0.9.0
func (builder *ServiceDescriptorBuilder) SetHost(host appsv1.CredentialVar) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetPodFQDNs ¶
func (builder *ServiceDescriptorBuilder) SetPodFQDNs(podFQDNs appsv1.CredentialVar) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetPort ¶
func (builder *ServiceDescriptorBuilder) SetPort(port appsv1.CredentialVar) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetServiceKind ¶
func (builder *ServiceDescriptorBuilder) SetServiceKind(serviceKind string) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetServiceVersion ¶
func (builder *ServiceDescriptorBuilder) SetServiceVersion(serviceVersion string) *ServiceDescriptorBuilder
type VolumeBuilder ¶ added in v0.9.0
type VolumeBuilder struct {
// contains filtered or unexported fields
}
func NewVolumeBuilder ¶ added in v0.9.0
func NewVolumeBuilder(name string) *VolumeBuilder
func (*VolumeBuilder) GetObject ¶ added in v0.9.0
func (builder *VolumeBuilder) GetObject() *corev1.Volume
func (*VolumeBuilder) SetVolumeSource ¶ added in v0.9.0
func (builder *VolumeBuilder) SetVolumeSource(source corev1.VolumeSource) *VolumeBuilder
Source Files ¶
- builder_backup.go
- builder_base.go
- builder_cluster.go
- builder_component.go
- builder_component_definition.go
- builder_configmap.go
- builder_configuration.go
- builder_container.go
- builder_event.go
- builder_instance_set.go
- builder_job.go
- builder_node_count_scaler.go
- builder_pod.go
- builder_pvc.go
- builder_role_binding.go
- builder_secret.go
- builder_service.go
- builder_service_account.go
- builder_service_descriptor.go
- builder_volume.go
Click to show internal directories.
Click to hide internal directories.