Documentation ¶
Index ¶
- func WithMap(keysAndValues ...string) map[string]string
- 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 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
- func (c *ConfigurationBuilder) AddConfigurationItem(name string) *ConfigurationBuilder
- func (c *ConfigurationBuilder) ClusterDefRef(clusterDef string) *ConfigurationBuilder
- func (c *ConfigurationBuilder) ClusterRef(clusterName string) *ConfigurationBuilder
- func (c *ConfigurationBuilder) ClusterVerRef(clusterVer string) *ConfigurationBuilder
- func (c *ConfigurationBuilder) Component(component string) *ConfigurationBuilder
- 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
- type PVCBuilder
- type PodBuilder
- type 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) AddProbeAction(action workloads.Action) *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) SetMemberUpdateStrategy(strategy *workloads.MemberUpdateStrategy) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetMembershipReconfiguration(reconfiguration *workloads.MembershipReconfiguration) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetPodManagementPolicy(policy apps.PodManagementPolicyType) *ReplicatedStateMachineBuilder
- func (builder *ReplicatedStateMachineBuilder) SetProbeActions(actions []workloads.Action) *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 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 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) SetType(serviceType corev1.ServiceType) *ServiceBuilder
- type ServiceDescriptorBuilder
- func (builder *ServiceDescriptorBuilder) SetAuth(auth appsv1alpha1.ConnectionCredentialAuth) *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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseBuilder ¶ added in v0.6.0
type BaseBuilder[T intctrlutil.Object, PT intctrlutil.PObject[T], B any] struct { // contains filtered or unexported fields }
func (*BaseBuilder[T, PT, B]) AddAnnotations ¶ added in v0.6.0
func (builder *BaseBuilder[T, PT, B]) AddAnnotations(keysAndValues ...string) *B
func (*BaseBuilder[T, PT, B]) AddAnnotationsInMap ¶ added in v0.6.0
func (builder *BaseBuilder[T, PT, B]) AddAnnotationsInMap(annotations map[string]string) *B
func (*BaseBuilder[T, PT, B]) AddControllerRevisionHashLabel ¶ added in v0.6.0
func (builder *BaseBuilder[T, PT, B]) AddControllerRevisionHashLabel(value string) *B
func (*BaseBuilder[T, PT, B]) AddFinalizers ¶ added in v0.6.0
func (builder *BaseBuilder[T, PT, B]) AddFinalizers(finalizers []string) *B
func (*BaseBuilder[T, PT, B]) AddLabels ¶ added in v0.6.0
func (builder *BaseBuilder[T, PT, B]) AddLabels(keysAndValues ...string) *B
func (*BaseBuilder[T, PT, B]) AddLabelsInMap ¶ added in v0.6.0
func (builder *BaseBuilder[T, PT, B]) AddLabelsInMap(labels map[string]string) *B
func (*BaseBuilder[T, PT, B]) GetObject ¶ added in v0.6.0
func (builder *BaseBuilder[T, PT, B]) GetObject() PT
func (*BaseBuilder[T, PT, B]) SetName ¶ added in v0.6.0
func (builder *BaseBuilder[T, PT, B]) SetName(name string) *B
func (*BaseBuilder[T, PT, B]) SetOwnerReferences ¶ added in v0.6.0
func (builder *BaseBuilder[T, PT, B]) SetOwnerReferences(ownerAPIVersion string, ownerKind string, owner client.Object) *B
func (*BaseBuilder[T, PT, B]) SetUID ¶ added in v0.6.0
func (builder *BaseBuilder[T, PT, B]) SetUID(uid types.UID) *B
type ConfigMapBuilder ¶ added in v0.6.0
type ConfigMapBuilder struct { BaseBuilder[corev1.ConfigMap, *corev1.ConfigMap, ConfigMapBuilder] }
func NewConfigMapBuilder ¶ added in v0.6.0
func NewConfigMapBuilder(namespace, name string) *ConfigMapBuilder
func (*ConfigMapBuilder) PutBinaryData ¶ added in v0.6.0
func (builder *ConfigMapBuilder) PutBinaryData(key string, value []byte) *ConfigMapBuilder
func (*ConfigMapBuilder) PutData ¶ added in v0.6.0
func (builder *ConfigMapBuilder) PutData(key, value string) *ConfigMapBuilder
func (*ConfigMapBuilder) SetBinaryData ¶ added in v0.6.0
func (builder *ConfigMapBuilder) SetBinaryData(binaryData map[string][]byte) *ConfigMapBuilder
func (*ConfigMapBuilder) SetData ¶ added in v0.6.0
func (builder *ConfigMapBuilder) SetData(data map[string]string) *ConfigMapBuilder
func (*ConfigMapBuilder) SetImmutable ¶ added in v0.6.0
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(name string) *ConfigurationBuilder
func (*ConfigurationBuilder) ClusterDefRef ¶
func (c *ConfigurationBuilder) ClusterDefRef(clusterDef string) *ConfigurationBuilder
func (*ConfigurationBuilder) ClusterRef ¶
func (c *ConfigurationBuilder) ClusterRef(clusterName string) *ConfigurationBuilder
func (*ConfigurationBuilder) ClusterVerRef ¶
func (c *ConfigurationBuilder) ClusterVerRef(clusterVer string) *ConfigurationBuilder
func (*ConfigurationBuilder) Component ¶
func (c *ConfigurationBuilder) Component(component string) *ConfigurationBuilder
type EventBuilder ¶ added in v0.6.0
type EventBuilder struct { BaseBuilder[corev1.Event, *corev1.Event, EventBuilder] }
func NewEventBuilder ¶ added in v0.6.0
func NewEventBuilder(namespace, name string) *EventBuilder
func (*EventBuilder) SetAction ¶ added in v0.6.5
func (builder *EventBuilder) SetAction(action string) *EventBuilder
func (*EventBuilder) SetEventTime ¶ added in v0.6.5
func (builder *EventBuilder) SetEventTime(eventTime metav1.MicroTime) *EventBuilder
func (*EventBuilder) SetFirstTimestamp ¶ added in v0.6.0
func (builder *EventBuilder) SetFirstTimestamp(firstTimestamp metav1.Time) *EventBuilder
func (*EventBuilder) SetInvolvedObject ¶ added in v0.6.0
func (builder *EventBuilder) SetInvolvedObject(objectRef corev1.ObjectReference) *EventBuilder
func (*EventBuilder) SetLastTimestamp ¶ added in v0.6.0
func (builder *EventBuilder) SetLastTimestamp(lastTimestamp metav1.Time) *EventBuilder
func (*EventBuilder) SetMessage ¶ added in v0.6.0
func (builder *EventBuilder) SetMessage(message string) *EventBuilder
func (*EventBuilder) SetReason ¶ added in v0.6.0
func (builder *EventBuilder) SetReason(reason string) *EventBuilder
func (*EventBuilder) SetReportingController ¶ added in v0.6.5
func (builder *EventBuilder) SetReportingController(reportingController string) *EventBuilder
func (*EventBuilder) SetReportingInstance ¶ added in v0.6.5
func (builder *EventBuilder) SetReportingInstance(reportingInstance string) *EventBuilder
func (*EventBuilder) SetType ¶ added in v0.6.0
func (builder *EventBuilder) SetType(tp string) *EventBuilder
type JobBuilder ¶ added in v0.6.0
type JobBuilder struct { BaseBuilder[batchv1.Job, *batchv1.Job, JobBuilder] }
func NewJobBuilder ¶ added in v0.6.0
func NewJobBuilder(namespace, name string) *JobBuilder
func (*JobBuilder) AddSelector ¶ added in v0.6.0
func (builder *JobBuilder) AddSelector(key, value string) *JobBuilder
func (*JobBuilder) SetPodTemplateSpec ¶ added in v0.6.0
func (builder *JobBuilder) SetPodTemplateSpec(template corev1.PodTemplateSpec) *JobBuilder
func (*JobBuilder) SetSuspend ¶ added in v0.6.0
func (builder *JobBuilder) SetSuspend(suspend bool) *JobBuilder
type PVCBuilder ¶ added in v0.6.0
type PVCBuilder struct { BaseBuilder[corev1.PersistentVolumeClaim, *corev1.PersistentVolumeClaim, PVCBuilder] }
func NewPVCBuilder ¶ added in v0.6.0
func NewPVCBuilder(namespace, name string) *PVCBuilder
func (*PVCBuilder) SetResources ¶ added in v0.6.0
func (builder *PVCBuilder) SetResources(resources corev1.ResourceRequirements) *PVCBuilder
type PodBuilder ¶ added in v0.6.0
type PodBuilder struct { BaseBuilder[corev1.Pod, *corev1.Pod, PodBuilder] }
func NewPodBuilder ¶ added in v0.6.0
func NewPodBuilder(namespace, name string) *PodBuilder
func (*PodBuilder) AddContainer ¶ added in v0.6.0
func (builder *PodBuilder) AddContainer(container corev1.Container) *PodBuilder
func (*PodBuilder) SetContainers ¶ added in v0.6.0
func (builder *PodBuilder) SetContainers(containers []corev1.Container) *PodBuilder
type ReplicatedStateMachineBuilder ¶ added in v0.6.0
type ReplicatedStateMachineBuilder struct { BaseBuilder[workloads.ReplicatedStateMachine, *workloads.ReplicatedStateMachine, ReplicatedStateMachineBuilder] }
func NewReplicatedStateMachineBuilder ¶ added in v0.6.0
func NewReplicatedStateMachineBuilder(namespace, name string) *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) AddProbeAction ¶
func (builder *ReplicatedStateMachineBuilder) AddProbeAction(action workloads.Action) *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 ¶ added in v0.6.0
func (builder *ReplicatedStateMachineBuilder) SetCredential(credential workloads.Credential) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetMemberUpdateStrategy ¶
func (builder *ReplicatedStateMachineBuilder) SetMemberUpdateStrategy(strategy *workloads.MemberUpdateStrategy) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetMembershipReconfiguration ¶ added in v0.6.0
func (builder *ReplicatedStateMachineBuilder) SetMembershipReconfiguration(reconfiguration *workloads.MembershipReconfiguration) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetPodManagementPolicy ¶
func (builder *ReplicatedStateMachineBuilder) SetPodManagementPolicy(policy apps.PodManagementPolicyType) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetProbeActions ¶
func (builder *ReplicatedStateMachineBuilder) SetProbeActions(actions []workloads.Action) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetReplicas ¶ added in v0.6.0
func (builder *ReplicatedStateMachineBuilder) SetReplicas(replicas int32) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetRoleProbe ¶
func (builder *ReplicatedStateMachineBuilder) SetRoleProbe(roleProbe *workloads.RoleProbe) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetRoles ¶ added in v0.6.0
func (builder *ReplicatedStateMachineBuilder) SetRoles(roles []workloads.ReplicaRole) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetService ¶ added in v0.6.0
func (builder *ReplicatedStateMachineBuilder) SetService(service *corev1.Service) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetServiceName ¶
func (builder *ReplicatedStateMachineBuilder) SetServiceName(serviceName string) *ReplicatedStateMachineBuilder
func (*ReplicatedStateMachineBuilder) SetTemplate ¶ added in v0.6.0
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 SecretBuilder ¶ added in v0.6.0
type SecretBuilder struct { BaseBuilder[corev1.Secret, *corev1.Secret, SecretBuilder] }
func NewSecretBuilder ¶ added in v0.6.0
func NewSecretBuilder(namespace, name string) *SecretBuilder
func (*SecretBuilder) PutData ¶ added in v0.6.0
func (builder *SecretBuilder) PutData(key string, value []byte) *SecretBuilder
func (*SecretBuilder) PutStringData ¶ added in v0.6.0
func (builder *SecretBuilder) PutStringData(key, value string) *SecretBuilder
func (*SecretBuilder) SetData ¶ added in v0.6.0
func (builder *SecretBuilder) SetData(binaryData map[string][]byte) *SecretBuilder
func (*SecretBuilder) SetImmutable ¶ added in v0.6.0
func (builder *SecretBuilder) SetImmutable(immutable bool) *SecretBuilder
func (*SecretBuilder) SetSecretType ¶ added in v0.6.0
func (builder *SecretBuilder) SetSecretType(secretType corev1.SecretType) *SecretBuilder
func (*SecretBuilder) SetStringData ¶ added in v0.6.0
func (builder *SecretBuilder) SetStringData(data map[string]string) *SecretBuilder
type ServiceBuilder ¶ added in v0.6.0
type ServiceBuilder struct { BaseBuilder[corev1.Service, *corev1.Service, ServiceBuilder] }
func NewHeadlessServiceBuilder ¶ added in v0.6.0
func NewHeadlessServiceBuilder(namespace, name string) *ServiceBuilder
func NewServiceBuilder ¶ added in v0.6.0
func NewServiceBuilder(namespace, name string) *ServiceBuilder
func (*ServiceBuilder) AddContainerPorts ¶ added in v0.6.0
func (builder *ServiceBuilder) AddContainerPorts(ports ...corev1.ContainerPort) *ServiceBuilder
func (*ServiceBuilder) AddPorts ¶ added in v0.6.0
func (builder *ServiceBuilder) AddPorts(ports ...corev1.ServicePort) *ServiceBuilder
func (*ServiceBuilder) AddSelector ¶ added in v0.6.0
func (builder *ServiceBuilder) AddSelector(key, value string) *ServiceBuilder
func (*ServiceBuilder) AddSelectors ¶ added in v0.6.0
func (builder *ServiceBuilder) AddSelectors(keyValues ...string) *ServiceBuilder
func (*ServiceBuilder) AddSelectorsInMap ¶ added in v0.6.0
func (builder *ServiceBuilder) AddSelectorsInMap(keyValues map[string]string) *ServiceBuilder
func (*ServiceBuilder) SetType ¶ added in v0.6.0
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) 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 ¶ added in v0.6.0
type StatefulSetBuilder struct { BaseBuilder[apps.StatefulSet, *apps.StatefulSet, StatefulSetBuilder] }
func NewStatefulSetBuilder ¶ added in v0.6.0
func NewStatefulSetBuilder(namespace, name string) *StatefulSetBuilder
func (*StatefulSetBuilder) AddMatchLabel ¶ added in v0.6.0
func (builder *StatefulSetBuilder) AddMatchLabel(key, value string) *StatefulSetBuilder
func (*StatefulSetBuilder) AddMatchLabels ¶ added in v0.6.0
func (builder *StatefulSetBuilder) AddMatchLabels(keyValues ...string) *StatefulSetBuilder
func (*StatefulSetBuilder) AddMatchLabelsInMap ¶ added in v0.6.0
func (builder *StatefulSetBuilder) AddMatchLabelsInMap(labels map[string]string) *StatefulSetBuilder
func (*StatefulSetBuilder) AddVolumeClaimTemplates ¶ added in v0.6.0
func (builder *StatefulSetBuilder) AddVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *StatefulSetBuilder
func (*StatefulSetBuilder) SetMinReadySeconds ¶ added in v0.6.0
func (builder *StatefulSetBuilder) SetMinReadySeconds(minReadySeconds int32) *StatefulSetBuilder
func (*StatefulSetBuilder) SetPodManagementPolicy ¶ added in v0.6.0
func (builder *StatefulSetBuilder) SetPodManagementPolicy(policy apps.PodManagementPolicyType) *StatefulSetBuilder
func (*StatefulSetBuilder) SetReplicas ¶ added in v0.6.0
func (builder *StatefulSetBuilder) SetReplicas(replicas int32) *StatefulSetBuilder
func (*StatefulSetBuilder) SetSelector ¶
func (builder *StatefulSetBuilder) SetSelector(selector *metav1.LabelSelector) *StatefulSetBuilder
func (*StatefulSetBuilder) SetServiceName ¶ added in v0.6.0
func (builder *StatefulSetBuilder) SetServiceName(serviceName string) *StatefulSetBuilder
func (*StatefulSetBuilder) SetTemplate ¶ added in v0.6.0
func (builder *StatefulSetBuilder) SetTemplate(template corev1.PodTemplateSpec) *StatefulSetBuilder
func (*StatefulSetBuilder) SetUpdateStrategy ¶
func (builder *StatefulSetBuilder) SetUpdateStrategy(strategy apps.StatefulSetUpdateStrategy) *StatefulSetBuilder
func (*StatefulSetBuilder) SetUpdateStrategyType ¶ added in v0.6.0
func (builder *StatefulSetBuilder) SetUpdateStrategyType(strategyType apps.StatefulSetUpdateStrategyType) *StatefulSetBuilder
func (*StatefulSetBuilder) SetVolumeClaimTemplates ¶ added in v0.6.0
func (builder *StatefulSetBuilder) SetVolumeClaimTemplates(templates ...corev1.PersistentVolumeClaim) *StatefulSetBuilder
Click to show internal directories.
Click to hide internal directories.