Documentation ¶
Index ¶
- 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 ClusterRoleBindingBuilder
- type ComponentBuilder
- func (builder *ComponentBuilder) AddVolumeClaimTemplate(volumeName string, pvcSpec appsv1alpha1.PersistentVolumeClaimSpec) *ComponentBuilder
- func (builder *ComponentBuilder) SetAffinity(affinity *appsv1alpha1.Affinity) *ComponentBuilder
- func (builder *ComponentBuilder) SetClassRef(classRef *appsv1alpha1.ClassDefRef) *ComponentBuilder
- func (builder *ComponentBuilder) SetEnabledLogs(logNames []string) *ComponentBuilder
- func (builder *ComponentBuilder) SetMonitor(monitor bool) *ComponentBuilder
- func (builder *ComponentBuilder) SetReplicas(replicas int32) *ComponentBuilder
- func (builder *ComponentBuilder) SetResources(resources corev1.ResourceRequirements) *ComponentBuilder
- func (builder *ComponentBuilder) SetServiceAccountName(serviceAccountName string) *ComponentBuilder
- func (builder *ComponentBuilder) SetServiceRefs(serviceRefs []appsv1alpha1.ServiceRef) *ComponentBuilder
- func (builder *ComponentBuilder) SetTLSConfig(enable bool, issuer *appsv1alpha1.Issuer) *ComponentBuilder
- func (builder *ComponentBuilder) SetToleration(toleration corev1.Toleration) *ComponentBuilder
- func (builder *ComponentBuilder) SetTolerations(tolerations []corev1.Toleration) *ComponentBuilder
- func (builder *ComponentBuilder) SetUpdateStrategy(updateStrategy *appsv1alpha1.UpdateStrategy) *ComponentBuilder
- func (builder *ComponentBuilder) SetVolumeClaimTemplates(volumeClaimTemplates []appsv1alpha1.ClusterComponentVolumeClaimTemplate) *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, isSystemInitAccount bool, statement string) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) AddVar(v appsv1alpha1.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) SetMonitor(builtIn bool, scrapePort intstr.IntOrString, scrapePath string) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) SetPolicyRules(rules []rbacv1.PolicyRule) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) SetReplicasLimit(minReplicas, maxReplicas int32) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) SetRoleArbitrator(arbitrator *appsv1alpha1.RoleArbitrator) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) SetRuntime(container *corev1.Container) *ComponentDefinitionBuilder
- func (builder *ComponentDefinitionBuilder) SetUpdateStrategy(strategy *appsv1alpha1.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 DaemonSetBuilder
- func (builder *DaemonSetBuilder) AddLabelsInMap(labels map[string]string) *DaemonSetBuilder
- func (builder *DaemonSetBuilder) AddMatchLabelsInMap(labels map[string]string) *DaemonSetBuilder
- func (builder *DaemonSetBuilder) SetSelector(selector *metav1.LabelSelector) *DaemonSetBuilder
- func (builder *DaemonSetBuilder) SetTemplate(template corev1.PodTemplateSpec) *DaemonSetBuilder
- func (builder *DaemonSetBuilder) SetUpdateStrategy(strategy appsv1.DaemonSetUpdateStrategy) *DaemonSetBuilder
- type DeploymentBuilder
- func (builder *DeploymentBuilder) AddLabelsInMap(labels map[string]string) *DeploymentBuilder
- func (builder *DeploymentBuilder) AddMatchLabelsInMap(labels map[string]string) *DeploymentBuilder
- func (builder *DeploymentBuilder) SetSelector(selector *metav1.LabelSelector) *DeploymentBuilder
- func (builder *DeploymentBuilder) SetTemplate(template corev1.PodTemplateSpec) *DeploymentBuilder
- 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 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 PDBBuilder
- func (builder *PDBBuilder) AddSelector(key, value string) *PDBBuilder
- func (builder *PDBBuilder) AddSelectors(keyValues ...string) *PDBBuilder
- func (builder *PDBBuilder) AddSelectorsInMap(keyValues map[string]string) *PDBBuilder
- func (builder *PDBBuilder) SetMinAvailable(minAvailable intstr.IntOrString) *PDBBuilder
- type PVCBuilder
- func (builder *PVCBuilder) SetAccessModes(accessModes []corev1.PersistentVolumeAccessMode) *PVCBuilder
- func (builder *PVCBuilder) SetDataSource(dataSource corev1.TypedLocalObjectReference) *PVCBuilder
- func (builder *PVCBuilder) SetResources(resources corev1.ResourceRequirements) *PVCBuilder
- func (builder *PVCBuilder) SetStorageClass(sc string) *PVCBuilder
- type PodBuilder
- func (builder *PodBuilder) AddContainer(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) SetContainers(containers []corev1.Container) *PodBuilder
- func (builder *PodBuilder) SetNodeSelector(nodeSelector map[string]string) *PodBuilder
- func (builder *PodBuilder) SetRestartPolicy(policy corev1.RestartPolicy) *PodBuilder
- func (builder *PodBuilder) SetSecurityContext(ctx corev1.PodSecurityContext) *PodBuilder
- type ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) AddCustomHandler(handler workloads.Action) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) AddMatchLabel(key, value string) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) AddMatchLabels(keyValues ...string) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) AddMatchLabelsInMap(labels map[string]string) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) AddVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetAlternativeServices(services []corev1.Service) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetCredential(credential workloads.Credential) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetCustomHandler(handler []workloads.Action) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetMemberUpdateStrategy(strategy *workloads.MemberUpdateStrategy) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetMembershipReconfiguration(reconfiguration *workloads.MembershipReconfiguration) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetPaused(paused bool) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetPodManagementPolicy(policy apps.PodManagementPolicyType) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetReplicas(replicas int32) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetRoleProbe(roleProbe *workloads.RoleProbe) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetRoles(roles []workloads.ReplicaRole) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetService(service *corev1.Service) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetServiceName(serviceName string) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetTemplate(template corev1.PodTemplateSpec) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetUpdateStrategy(strategy apps.StatefulSetUpdateStrategy) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetUpdateStrategyType(strategyType apps.StatefulSetUpdateStrategyType) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *ReplicatedStateMachineBuilder
- 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) SetSpec(spec *corev1.ServiceSpec) *ServiceBuilder
- func (builder *ServiceBuilder) SetType(serviceType corev1.ServiceType) *ServiceBuilder
- type ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetAuth(auth appsv1alpha1.ConnectionCredentialAuth) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetAuthPassword(password appsv1alpha1.CredentialVar) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetAuthUsername(username appsv1alpha1.CredentialVar) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetEndpoint(endpoint appsv1alpha1.CredentialVar) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetPort(port appsv1alpha1.CredentialVar) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetServiceKind(serviceKind string) *ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetServiceVersion(serviceVersion string) *ServiceDescriptorBuilder
- type StatefulSetBuilder
- func (builder *StatefulSetBuilder) AddMatchLabel(key, value string) *StatefulSetBuilder
- func (builder *StatefulSetBuilder) AddMatchLabels(keyValues ...string) *StatefulSetBuilder
- func (builder *StatefulSetBuilder) AddMatchLabelsInMap(labels map[string]string) *StatefulSetBuilder
- func (builder *StatefulSetBuilder) AddVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *StatefulSetBuilder
- func (builder *StatefulSetBuilder) SetMinReadySeconds(minReadySeconds int32) *StatefulSetBuilder
- func (builder *StatefulSetBuilder) SetPodManagementPolicy(policy apps.PodManagementPolicyType) *StatefulSetBuilder
- func (builder *StatefulSetBuilder) SetReplicas(replicas int32) *StatefulSetBuilder
- func (builder *StatefulSetBuilder) SetSelector(selector *metav1.LabelSelector) *StatefulSetBuilder
- func (builder *StatefulSetBuilder) SetServiceName(serviceName string) *StatefulSetBuilder
- func (builder *StatefulSetBuilder) SetTemplate(template corev1.PodTemplateSpec) *StatefulSetBuilder
- func (builder *StatefulSetBuilder) SetUpdateStrategy(strategy apps.StatefulSetUpdateStrategy) *StatefulSetBuilder
- func (builder *StatefulSetBuilder) SetUpdateStrategyType(strategyType apps.StatefulSetUpdateStrategyType) *StatefulSetBuilder
- func (builder *StatefulSetBuilder) SetVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *StatefulSetBuilder
- type VolumeSnapshotClassBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ClusterRoleBindingBuilder ¶
type ClusterRoleBindingBuilder struct { BaseBuilder[rbacv1.ClusterRoleBinding, *rbacv1.ClusterRoleBinding, ClusterRoleBindingBuilder] }
func NewClusterRoleBindingBuilder ¶
func NewClusterRoleBindingBuilder(namespace, name string) *ClusterRoleBindingBuilder
func (*ClusterRoleBindingBuilder) AddSubjects ¶
func (builder *ClusterRoleBindingBuilder) AddSubjects(subjects ...rbacv1.Subject) *ClusterRoleBindingBuilder
func (*ClusterRoleBindingBuilder) SetRoleRef ¶
func (builder *ClusterRoleBindingBuilder) SetRoleRef(roleRef rbacv1.RoleRef) *ClusterRoleBindingBuilder
type ComponentBuilder ¶ added in v0.8.0
type ComponentBuilder struct { BaseBuilder[appsv1alpha1.Component, *appsv1alpha1.Component, ComponentBuilder] }
func NewComponentBuilder ¶ added in v0.8.0
func NewComponentBuilder(namespace, name, componentDefinition string) *ComponentBuilder
func (*ComponentBuilder) AddVolumeClaimTemplate ¶ added in v0.8.0
func (builder *ComponentBuilder) AddVolumeClaimTemplate(volumeName string, pvcSpec appsv1alpha1.PersistentVolumeClaimSpec) *ComponentBuilder
func (*ComponentBuilder) SetAffinity ¶ added in v0.8.0
func (builder *ComponentBuilder) SetAffinity(affinity *appsv1alpha1.Affinity) *ComponentBuilder
func (*ComponentBuilder) SetClassRef ¶ added in v0.8.0
func (builder *ComponentBuilder) SetClassRef(classRef *appsv1alpha1.ClassDefRef) *ComponentBuilder
func (*ComponentBuilder) SetEnabledLogs ¶ added in v0.8.0
func (builder *ComponentBuilder) SetEnabledLogs(logNames []string) *ComponentBuilder
func (*ComponentBuilder) SetMonitor ¶ added in v0.8.0
func (builder *ComponentBuilder) SetMonitor(monitor bool) *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) 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 []appsv1alpha1.ServiceRef) *ComponentBuilder
func (*ComponentBuilder) SetTLSConfig ¶ added in v0.8.0
func (builder *ComponentBuilder) SetTLSConfig(enable bool, issuer *appsv1alpha1.Issuer) *ComponentBuilder
func (*ComponentBuilder) SetToleration ¶ added in v0.8.0
func (builder *ComponentBuilder) SetToleration(toleration corev1.Toleration) *ComponentBuilder
func (*ComponentBuilder) SetTolerations ¶ added in v0.8.0
func (builder *ComponentBuilder) SetTolerations(tolerations []corev1.Toleration) *ComponentBuilder
func (*ComponentBuilder) SetUpdateStrategy ¶ added in v0.8.0
func (builder *ComponentBuilder) SetUpdateStrategy(updateStrategy *appsv1alpha1.UpdateStrategy) *ComponentBuilder
func (*ComponentBuilder) SetVolumeClaimTemplates ¶ added in v0.8.0
func (builder *ComponentBuilder) SetVolumeClaimTemplates(volumeClaimTemplates []appsv1alpha1.ClusterComponentVolumeClaimTemplate) *ComponentBuilder
type ComponentDefinitionBuilder ¶ added in v0.8.0
type ComponentDefinitionBuilder struct { BaseBuilder[appsv1alpha1.ComponentDefinition, *appsv1alpha1.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, asEnvFrom ...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, isSystemInitAccount bool, statement string) *ComponentDefinitionBuilder
func (*ComponentDefinitionBuilder) AddVar ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) AddVar(v appsv1alpha1.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) SetMonitor ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) SetMonitor(builtIn bool, scrapePort intstr.IntOrString, scrapePath string) *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) SetRoleArbitrator ¶ added in v0.8.0
func (builder *ComponentDefinitionBuilder) SetRoleArbitrator(arbitrator *appsv1alpha1.RoleArbitrator) *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 *appsv1alpha1.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[v1alpha1.Configuration, *v1alpha1.Configuration, ConfigurationBuilder] }
func NewConfigurationBuilder ¶
func NewConfigurationBuilder(namespace, name string) *ConfigurationBuilder
func (*ConfigurationBuilder) AddConfigurationItem ¶
func (c *ConfigurationBuilder) AddConfigurationItem(configSpec v1alpha1.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 DaemonSetBuilder ¶ added in v0.7.1
type DaemonSetBuilder struct { BaseBuilder[appsv1.DaemonSet, *appsv1.DaemonSet, DaemonSetBuilder] }
func NewDaemonSetBuilder ¶ added in v0.7.1
func NewDaemonSetBuilder(namespace, name string) *DaemonSetBuilder
func (*DaemonSetBuilder) AddLabelsInMap ¶ added in v0.7.1
func (builder *DaemonSetBuilder) AddLabelsInMap(labels map[string]string) *DaemonSetBuilder
func (*DaemonSetBuilder) AddMatchLabelsInMap ¶ added in v0.7.1
func (builder *DaemonSetBuilder) AddMatchLabelsInMap(labels map[string]string) *DaemonSetBuilder
func (*DaemonSetBuilder) SetSelector ¶ added in v0.7.1
func (builder *DaemonSetBuilder) SetSelector(selector *metav1.LabelSelector) *DaemonSetBuilder
func (*DaemonSetBuilder) SetTemplate ¶ added in v0.7.1
func (builder *DaemonSetBuilder) SetTemplate(template corev1.PodTemplateSpec) *DaemonSetBuilder
func (*DaemonSetBuilder) SetUpdateStrategy ¶ added in v0.7.1
func (builder *DaemonSetBuilder) SetUpdateStrategy(strategy appsv1.DaemonSetUpdateStrategy) *DaemonSetBuilder
type DeploymentBuilder ¶ added in v0.7.1
type DeploymentBuilder struct { BaseBuilder[appsv1.Deployment, *appsv1.Deployment, DeploymentBuilder] }
func NewDeploymentBuilder ¶ added in v0.7.1
func NewDeploymentBuilder(namespace, name string) *DeploymentBuilder
func (*DeploymentBuilder) AddLabelsInMap ¶ added in v0.7.1
func (builder *DeploymentBuilder) AddLabelsInMap(labels map[string]string) *DeploymentBuilder
func (*DeploymentBuilder) AddMatchLabelsInMap ¶ added in v0.7.1
func (builder *DeploymentBuilder) AddMatchLabelsInMap(labels map[string]string) *DeploymentBuilder
func (*DeploymentBuilder) SetSelector ¶ added in v0.7.1
func (builder *DeploymentBuilder) SetSelector(selector *metav1.LabelSelector) *DeploymentBuilder
func (*DeploymentBuilder) SetTemplate ¶ added in v0.7.1
func (builder *DeploymentBuilder) SetTemplate(template corev1.PodTemplateSpec) *DeploymentBuilder
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 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 PDBBuilder ¶
type PDBBuilder struct { BaseBuilder[policyv1.PodDisruptionBudget, *policyv1.PodDisruptionBudget, PDBBuilder] }
func NewPDBBuilder ¶
func NewPDBBuilder(namespace, name string) *PDBBuilder
func (*PDBBuilder) AddSelector ¶
func (builder *PDBBuilder) AddSelector(key, value string) *PDBBuilder
func (*PDBBuilder) AddSelectors ¶
func (builder *PDBBuilder) AddSelectors(keyValues ...string) *PDBBuilder
func (*PDBBuilder) AddSelectorsInMap ¶
func (builder *PDBBuilder) AddSelectorsInMap(keyValues map[string]string) *PDBBuilder
func (*PDBBuilder) SetMinAvailable ¶
func (builder *PDBBuilder) SetMinAvailable(minAvailable intstr.IntOrString) *PDBBuilder
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.ResourceRequirements) *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) 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) SetContainers ¶
func (builder *PodBuilder) SetContainers(containers []corev1.Container) *PodBuilder
func (*PodBuilder) SetNodeSelector ¶ added in v0.7.1
func (builder *PodBuilder) SetNodeSelector(nodeSelector map[string]string) *PodBuilder
func (*PodBuilder) SetRestartPolicy ¶
func (builder *PodBuilder) SetRestartPolicy(policy corev1.RestartPolicy) *PodBuilder
func (*PodBuilder) SetSecurityContext ¶
func (builder *PodBuilder) SetSecurityContext(ctx corev1.PodSecurityContext) *PodBuilder
type ReplicatedStateMachineBuilder ¶
type ReplicatedStateMachineBuilder struct { BaseBuilder[workloads.ReplicatedStateMachine, *workloads.ReplicatedStateMachine, ReplicatedStateMachineBuilder] }
func NewReplicatedStateMachineBuilder ¶
func NewReplicatedStateMachineBuilder(namespace, name string) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) AddCustomHandler ¶
func (builder *ReplicatedStateMachineBuilder) AddCustomHandler(handler workloads.Action) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) AddMatchLabel ¶
func (builder *ReplicatedStateMachineBuilder) AddMatchLabel(key, value string) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) AddMatchLabels ¶
func (builder *ReplicatedStateMachineBuilder) AddMatchLabels(keyValues ...string) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) AddMatchLabelsInMap ¶
func (builder *ReplicatedStateMachineBuilder) AddMatchLabelsInMap(labels map[string]string) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) AddVolumeClaimTemplates ¶
func (builder *ReplicatedStateMachineBuilder) AddVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetAlternativeServices ¶
func (builder *ReplicatedStateMachineBuilder) SetAlternativeServices(services []corev1.Service) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetCredential ¶
func (builder *ReplicatedStateMachineBuilder) SetCredential(credential workloads.Credential) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetCustomHandler ¶
func (builder *ReplicatedStateMachineBuilder) SetCustomHandler(handler []workloads.Action) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetMemberUpdateStrategy ¶
func (builder *ReplicatedStateMachineBuilder) SetMemberUpdateStrategy(strategy *workloads.MemberUpdateStrategy) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetMembershipReconfiguration ¶
func (builder *ReplicatedStateMachineBuilder) SetMembershipReconfiguration(reconfiguration *workloads.MembershipReconfiguration) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetPaused ¶
func (builder *ReplicatedStateMachineBuilder) SetPaused(paused bool) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetPodManagementPolicy ¶
func (builder *ReplicatedStateMachineBuilder) SetPodManagementPolicy(policy apps.PodManagementPolicyType) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetReplicas ¶
func (builder *ReplicatedStateMachineBuilder) SetReplicas(replicas int32) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetRoleProbe ¶
func (builder *ReplicatedStateMachineBuilder) SetRoleProbe(roleProbe *workloads.RoleProbe) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetRoles ¶
func (builder *ReplicatedStateMachineBuilder) SetRoles(roles []workloads.ReplicaRole) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetService ¶
func (builder *ReplicatedStateMachineBuilder) SetService(service *corev1.Service) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetServiceName ¶
func (builder *ReplicatedStateMachineBuilder) SetServiceName(serviceName string) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetTemplate ¶
func (builder *ReplicatedStateMachineBuilder) SetTemplate(template corev1.PodTemplateSpec) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetUpdateStrategy ¶
func (builder *ReplicatedStateMachineBuilder) SetUpdateStrategy(strategy apps.StatefulSetUpdateStrategy) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetUpdateStrategyType ¶
func (builder *ReplicatedStateMachineBuilder) SetUpdateStrategyType(strategyType apps.StatefulSetUpdateStrategyType) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetVolumeClaimTemplates ¶
func (builder *ReplicatedStateMachineBuilder) SetVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *ReplicatedStateMachineBuilder
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
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) 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[appsv1alpha1.ServiceDescriptor, *appsv1alpha1.ServiceDescriptor, ServiceDescriptorBuilder] }
func NewServiceDescriptorBuilder ¶
func NewServiceDescriptorBuilder(namespace, name string) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetAuth ¶
func (builder *ServiceDescriptorBuilder) SetAuth(auth appsv1alpha1.ConnectionCredentialAuth) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetAuthPassword ¶ added in v0.8.0
func (builder *ServiceDescriptorBuilder) SetAuthPassword(password appsv1alpha1.CredentialVar) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetAuthUsername ¶ added in v0.8.0
func (builder *ServiceDescriptorBuilder) SetAuthUsername(username appsv1alpha1.CredentialVar) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetEndpoint ¶
func (builder *ServiceDescriptorBuilder) SetEndpoint(endpoint appsv1alpha1.CredentialVar) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetPort ¶
func (builder *ServiceDescriptorBuilder) SetPort(port appsv1alpha1.CredentialVar) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetServiceKind ¶
func (builder *ServiceDescriptorBuilder) SetServiceKind(serviceKind string) *ServiceDescriptorBuilder
func (*ServiceDescriptorBuilder) SetServiceVersion ¶
func (builder *ServiceDescriptorBuilder) SetServiceVersion(serviceVersion string) *ServiceDescriptorBuilder
type StatefulSetBuilder ¶
type StatefulSetBuilder struct { BaseBuilder[apps.StatefulSet, *apps.StatefulSet, StatefulSetBuilder] }
func NewStatefulSetBuilder ¶
func NewStatefulSetBuilder(namespace, name string) *StatefulSetBuilder
func (*StatefulSetBuilder) AddMatchLabel ¶
func (builder *StatefulSetBuilder) AddMatchLabel(key, value string) *StatefulSetBuilder
func (*StatefulSetBuilder) AddMatchLabels ¶
func (builder *StatefulSetBuilder) AddMatchLabels(keyValues ...string) *StatefulSetBuilder
func (*StatefulSetBuilder) AddMatchLabelsInMap ¶
func (builder *StatefulSetBuilder) AddMatchLabelsInMap(labels map[string]string) *StatefulSetBuilder
func (*StatefulSetBuilder) AddVolumeClaimTemplates ¶
func (builder *StatefulSetBuilder) AddVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *StatefulSetBuilder
func (*StatefulSetBuilder) SetMinReadySeconds ¶
func (builder *StatefulSetBuilder) SetMinReadySeconds(minReadySeconds int32) *StatefulSetBuilder
func (*StatefulSetBuilder) SetPodManagementPolicy ¶
func (builder *StatefulSetBuilder) SetPodManagementPolicy(policy apps.PodManagementPolicyType) *StatefulSetBuilder
func (*StatefulSetBuilder) SetReplicas ¶
func (builder *StatefulSetBuilder) SetReplicas(replicas int32) *StatefulSetBuilder
func (*StatefulSetBuilder) SetSelector ¶
func (builder *StatefulSetBuilder) SetSelector(selector *metav1.LabelSelector) *StatefulSetBuilder
func (*StatefulSetBuilder) SetServiceName ¶
func (builder *StatefulSetBuilder) SetServiceName(serviceName string) *StatefulSetBuilder
func (*StatefulSetBuilder) SetTemplate ¶
func (builder *StatefulSetBuilder) SetTemplate(template corev1.PodTemplateSpec) *StatefulSetBuilder
func (*StatefulSetBuilder) SetUpdateStrategy ¶
func (builder *StatefulSetBuilder) SetUpdateStrategy(strategy apps.StatefulSetUpdateStrategy) *StatefulSetBuilder
func (*StatefulSetBuilder) SetUpdateStrategyType ¶
func (builder *StatefulSetBuilder) SetUpdateStrategyType(strategyType apps.StatefulSetUpdateStrategyType) *StatefulSetBuilder
func (*StatefulSetBuilder) SetVolumeClaimTemplates ¶
func (builder *StatefulSetBuilder) SetVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *StatefulSetBuilder
type VolumeSnapshotClassBuilder ¶
type VolumeSnapshotClassBuilder struct { BaseBuilder[snapshotv1.VolumeSnapshotClass, *snapshotv1.VolumeSnapshotClass, VolumeSnapshotClassBuilder] }
func NewVolumeSnapshotClassBuilder ¶
func NewVolumeSnapshotClassBuilder(namespace, name string) *VolumeSnapshotClassBuilder
func (*VolumeSnapshotClassBuilder) SetDeletionPolicy ¶
func (builder *VolumeSnapshotClassBuilder) SetDeletionPolicy(policy snapshotv1.DeletionPolicy) *VolumeSnapshotClassBuilder
func (*VolumeSnapshotClassBuilder) SetDriver ¶
func (builder *VolumeSnapshotClassBuilder) SetDriver(driver string) *VolumeSnapshotClassBuilder
Source Files ¶
- builder_backup.go
- builder_base.go
- builder_cluster_role_binding.go
- builder_component.go
- builder_component_definition.go
- builder_configmap.go
- builder_configuration.go
- builder_container.go
- builder_daemon_set.go
- builder_deployment.go
- builder_event.go
- builder_job.go
- builder_pdb.go
- builder_pod.go
- builder_pvc.go
- builder_replicated_state_machine.go
- builder_role_binding.go
- builder_secret.go
- builder_service.go
- builder_service_account.go
- builder_service_descriptor.go
- builder_stateful_set.go
- builder_volume_snapshot_class.go
Click to show internal directories.
Click to hide internal directories.