Documentation
¶
Index ¶
- type ClusterRole
- func (cr *ClusterRole) AddAggregationRule(rule api.SelectorConfig)
- func (cr *ClusterRole) AddPolicyRule(config api.PolicyRuleConfig)
- func (cr *ClusterRole) Deploy(res api.DeployerResources) error
- func (cr *ClusterRole) RemoveAggregationRule(rule api.SelectorConfig)
- func (cr *ClusterRole) RemovePolicyRule(config api.PolicyRuleConfig)
- func (cr *ClusterRole) Undeploy(res api.DeployerResources) error
- type ClusterRoleBinding
- func (crb *ClusterRoleBinding) AddRoleRef(config api.RoleRefConfig)
- func (crb *ClusterRoleBinding) AddSubject(config api.SubjectConfig)
- func (crb *ClusterRoleBinding) Deploy(res api.DeployerResources) error
- func (crb *ClusterRoleBinding) RemoveSubject(config api.SubjectConfig)
- func (crb *ClusterRoleBinding) Undeploy(res api.DeployerResources) error
- type ConfigMap
- func (c *ConfigMap) AddBinaryData(new map[string][]byte)
- func (c *ConfigMap) AddData(new map[string]string)
- func (c *ConfigMap) Deploy(res api.DeployerResources) error
- func (c *ConfigMap) RemoveBinaryData(remove map[string][]byte)
- func (c *ConfigMap) RemoveData(remove []string)
- func (c *ConfigMap) Undeploy(res api.DeployerResources) error
- type Container
- func (c *Container) AddAddCapabilities(add []string)
- func (c *Container) AddDeleteCapabilities(add []string)
- func (c *Container) AddEnv(config api.EnvConfig)
- func (c *Container) AddLivenessProbe(config api.ProbeConfig)
- func (c *Container) AddPort(config api.PortConfig)
- func (c *Container) AddPostStartAction(config api.ActionConfig)
- func (c *Container) AddPreStopAction(config api.ActionConfig)
- func (c *Container) AddReadinessProbe(config api.ProbeConfig)
- func (c *Container) AddSELinux(config api.SELinuxType)
- func (c *Container) AddVolumeDevice(config api.VolumeDeviceConfig) error
- func (c *Container) AddVolumeMount(config api.VolumeMountConfig) error
- func (c *Container) RemoveAddCapability(remove string)
- func (c *Container) RemoveDeleteCapability(remove string)
- func (c *Container) RemoveLivenessProbe()
- func (c *Container) RemovePort(name string) error
- func (c *Container) RemovePostStartAction()
- func (c *Container) RemovePreStopAction()
- func (c *Container) RemoveReadinessProbe()
- func (c *Container) RemoveSELinux()
- func (c *Container) RemoveVolumeDevice(name string) error
- func (c *Container) RemoveVolumeMount(config api.VolumeMountConfig) error
- type CustomResourceDefinition
- type DaemonSet
- type Deployment
- type HorizontalPodAutoscaler
- type Ingress
- func (i *Ingress) AddHostRule(config api.IngressHostRuleConfig)
- func (i *Ingress) AddTLS(TLSConfig api.IngressTLSConfig)
- func (i *Ingress) Deploy(res api.DeployerResources) error
- func (i *Ingress) RemoveHostRule(config api.IngressHostRuleConfig)
- func (i *Ingress) RemoveTLS(TLSConfig api.IngressTLSConfig)
- func (i *Ingress) Undeploy(res api.DeployerResources) error
- type Job
- type LabelSelectorFuncs
- func (l *LabelSelectorFuncs) AddMatchExpressionsSelector(add api.ExpressionRequirementConfig)
- func (l *LabelSelectorFuncs) AddMatchLabelsSelectors(new map[string]string)
- func (l *LabelSelectorFuncs) RemoveMatchExpressionsSelector(remove api.ExpressionRequirementConfig)
- func (l *LabelSelectorFuncs) RemoveMatchLabelsSelectors(remove []string)
- type MetadataFuncs
- func (m *MetadataFuncs) AddAnnotations(new map[string]string)
- func (m *MetadataFuncs) AddFinalizers(new []string)
- func (m *MetadataFuncs) AddLabels(new map[string]string)
- func (m *MetadataFuncs) RemoveAnnotations(remove []string)
- func (m *MetadataFuncs) RemoveFinalizer(remove string)
- func (m *MetadataFuncs) RemoveLabels(remove []string)
- type Namespace
- type PersistentVolumeClaim
- type Pod
- func (p *Pod) AddContainer(obj *Container) error
- func (p *Pod) AddDNSConfig(dns api.PodDNSConfig)
- func (p *Pod) AddHostAliases(new []api.HostAliasConfig)
- func (p *Pod) AddHostMode(mode api.HostModeType)
- func (p *Pod) AddImagePullSecrets(new []string)
- func (p *Pod) AddInitContainer(obj *Container) error
- func (p *Pod) AddNodeAffinity(affinityType api.AffinityType, config api.NodeAffinityConfig) error
- func (p *Pod) AddNodeSelectors(selectors map[string]string)
- func (p *Pod) AddPodAffinity(affinityType api.AffinityType, config api.PodAffinityConfig)
- func (p *Pod) AddPodAntiAffinity(affinityType api.AffinityType, config api.PodAffinityConfig)
- func (p *Pod) AddSupplementalGIDs(new []int64)
- func (p *Pod) AddSysctls(sysctls map[string]string)
- func (p *Pod) AddTolerations(config []api.TolerationConfig)
- func (p *Pod) AddVolume(obj *Volume) error
- func (p *Pod) Deploy(res api.DeployerResources) error
- func (p *Pod) RemoveContainer(name string) error
- func (p *Pod) RemoveDNSConfig()
- func (p *Pod) RemoveHostAlias(remove api.HostAliasConfig)
- func (p *Pod) RemoveHostMode(mode api.HostModeType)
- func (p *Pod) RemoveImagePullSecret(remove string)
- func (p *Pod) RemoveInitContainer(name string) error
- func (p *Pod) RemoveNodeAffinity(affinityType api.AffinityType, config api.NodeAffinityConfig) error
- func (p *Pod) RemoveNodeSelectors(selectors []string)
- func (p *Pod) RemovePodAffinity(affinityType api.AffinityType, config api.PodAffinityConfig)
- func (p *Pod) RemovePodAntiAffinity(affinityType api.AffinityType, config api.PodAffinityConfig)
- func (p *Pod) RemoveSupplementalGID(remove int64)
- func (p *Pod) RemoveSysctls(sysctls []string)
- func (p *Pod) RemoveToleration(remove api.TolerationConfig)
- func (p *Pod) RemoveVolume(name string)
- func (p *Pod) Undeploy(res api.DeployerResources) error
- type PodFuncs
- type ReplicationController
- type Role
- type RoleBinding
- func (rb *RoleBinding) AddRoleRef(config api.RoleRefConfig)
- func (rb *RoleBinding) AddSubject(config api.SubjectConfig)
- func (rb *RoleBinding) Deploy(res api.DeployerResources) error
- func (rb *RoleBinding) RemoveSubject(config api.SubjectConfig)
- func (rb *RoleBinding) Undeploy(res api.DeployerResources) error
- type Secret
- func (s *Secret) AddData(new map[string][]byte)
- func (s *Secret) AddStringData(new map[string]string)
- func (s *Secret) Deploy(res api.DeployerResources) error
- func (s *Secret) RemoveData(remove []string)
- func (s *Secret) RemoveStringData(remove []string)
- func (s *Secret) Undeploy(res api.DeployerResources) error
- type Service
- func (s *Service) AddExternalIPs(ips []string)
- func (s *Service) AddLoadBalancer(config api.LoadBalancerConfig) error
- func (s *Service) AddPort(config api.ServicePortConfig) error
- func (s *Service) AddSelectors(new map[string]string)
- func (s *Service) Deploy(res api.DeployerResources) error
- func (s *Service) RemoveExternalIP(ip string)
- func (s *Service) RemoveLoadBalancer()
- func (s *Service) RemovePort(port int32) error
- func (s *Service) RemoveSelectors(remove []string)
- func (s *Service) Undeploy(res api.DeployerResources) error
- type ServiceAccount
- func (sa *ServiceAccount) AddPullSecrets(add []string)
- func (sa *ServiceAccount) AddSecret(config api.ServiceAccountSecretConfig)
- func (sa *ServiceAccount) Deploy(res api.DeployerResources) error
- func (sa *ServiceAccount) RemoveObjectReference(config api.ServiceAccountSecretConfig)
- func (sa *ServiceAccount) RemovePullSecret(remove string)
- func (sa *ServiceAccount) Undeploy(res api.DeployerResources) error
- type StatefulSet
- type Volume
- func NewConfigMapVolume(config api.ConfigMapOrSecretVolumeConfig) *Volume
- func NewEmptyDirVolume(config api.EmptyDirVolumeConfig) (*Volume, error)
- func NewGCEPersistentDiskVolume(config api.GCEPersistentDiskVolumeConfig) *Volume
- func NewHostPathVolume(config api.HostPathVolumeConfig) *Volume
- func NewPVCVolume(config api.PVCVolumeConfig) *Volume
- func NewSecretVolume(config api.ConfigMapOrSecretVolumeConfig) *Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterRole ¶
type ClusterRole struct { *v1.ClusterRole MetadataFuncs }
ClusterRole defines the cluster role component
func NewClusterRole ¶
func NewClusterRole(config api.ClusterRoleConfig) *ClusterRole
NewClusterRole creates a ClusterRole object
func (*ClusterRole) AddAggregationRule ¶
func (cr *ClusterRole) AddAggregationRule(rule api.SelectorConfig)
AddAggregationRule will add an aggregation rule to the cluster role
func (*ClusterRole) AddPolicyRule ¶
func (cr *ClusterRole) AddPolicyRule(config api.PolicyRuleConfig)
AddPolicyRule will add a policy rule to the cluster role
func (*ClusterRole) Deploy ¶
func (cr *ClusterRole) Deploy(res api.DeployerResources) error
Deploy will deploy the cluster role to the cluster
func (*ClusterRole) RemoveAggregationRule ¶
func (cr *ClusterRole) RemoveAggregationRule(rule api.SelectorConfig)
RemoveAggregationRule will remove an aggregation rule from the cluster role
func (*ClusterRole) RemovePolicyRule ¶
func (cr *ClusterRole) RemovePolicyRule(config api.PolicyRuleConfig)
RemovePolicyRule will remove a policy rule from the cluster role
func (*ClusterRole) Undeploy ¶
func (cr *ClusterRole) Undeploy(res api.DeployerResources) error
Undeploy will remove the cluster role from the cluster
type ClusterRoleBinding ¶
type ClusterRoleBinding struct { *v1.ClusterRoleBinding MetadataFuncs }
ClusterRoleBinding defines the cluster role binding component
func NewClusterRoleBinding ¶
func NewClusterRoleBinding(config api.ClusterRoleBindingConfig) *ClusterRoleBinding
NewClusterRoleBinding creates a ClusterRoleBinding object
func (*ClusterRoleBinding) AddRoleRef ¶
func (crb *ClusterRoleBinding) AddRoleRef(config api.RoleRefConfig)
AddRoleRef will add a role reference to the cluster role binding
func (*ClusterRoleBinding) AddSubject ¶
func (crb *ClusterRoleBinding) AddSubject(config api.SubjectConfig)
AddSubject will add a subject to the cluster role binding
func (*ClusterRoleBinding) Deploy ¶
func (crb *ClusterRoleBinding) Deploy(res api.DeployerResources) error
Deploy will deploy the cluster role binding to the cluster
func (*ClusterRoleBinding) RemoveSubject ¶
func (crb *ClusterRoleBinding) RemoveSubject(config api.SubjectConfig)
RemoveSubject will remove a subject from the cluster role binding
func (*ClusterRoleBinding) Undeploy ¶
func (crb *ClusterRoleBinding) Undeploy(res api.DeployerResources) error
Undeploy will remove the cluster role binding from the cluster
type ConfigMap ¶
type ConfigMap struct { *v1.ConfigMap MetadataFuncs }
ConfigMap defines the config map component
func NewConfigMap ¶
func NewConfigMap(config api.ConfigMapConfig) *ConfigMap
NewConfigMap creates a ConfigMap object
func (*ConfigMap) AddBinaryData ¶
AddBinaryData adds key value pairs to the config map
func (*ConfigMap) Deploy ¶
func (c *ConfigMap) Deploy(res api.DeployerResources) error
Deploy will deploy the config map to the cluster
func (*ConfigMap) RemoveBinaryData ¶
RemoveBinaryData removes the provided keys from the config map
func (*ConfigMap) RemoveData ¶
RemoveData removes the provided keys from the config map
type Container ¶
Container defines containers that can be added to other components
func NewContainer ¶
func NewContainer(config api.ContainerConfig) (*Container, error)
NewContainer creates a Container object
func (*Container) AddAddCapabilities ¶
AddAddCapabilities will add POSIX capabilities that will be added to the container
func (*Container) AddDeleteCapabilities ¶
AddDeleteCapabilities will add POSIX capabilities that will be removed from the container
func (*Container) AddLivenessProbe ¶
func (c *Container) AddLivenessProbe(config api.ProbeConfig)
AddLivenessProbe adds a liveness probe to the container
func (*Container) AddPort ¶
func (c *Container) AddPort(config api.PortConfig)
AddPort adds a port to expose to the container
func (*Container) AddPostStartAction ¶
func (c *Container) AddPostStartAction(config api.ActionConfig)
AddPostStartAction adds a PostStart action to the container
func (*Container) AddPreStopAction ¶
func (c *Container) AddPreStopAction(config api.ActionConfig)
AddPreStopAction adds a PreStop action to the container
func (*Container) AddReadinessProbe ¶
func (c *Container) AddReadinessProbe(config api.ProbeConfig)
AddReadinessProbe adds a readiness probe to the container
func (*Container) AddSELinux ¶
func (c *Container) AddSELinux(config api.SELinuxType)
AddSELinux will add the provided SELinux configuration to the container
func (*Container) AddVolumeDevice ¶
func (c *Container) AddVolumeDevice(config api.VolumeDeviceConfig) error
AddVolumeDevice adds a volume device to the container
func (*Container) AddVolumeMount ¶
func (c *Container) AddVolumeMount(config api.VolumeMountConfig) error
AddVolumeMount adds a volume mount to the container
func (*Container) RemoveAddCapability ¶
RemoveAddCapability will remove a POSIX capabiltiy that would be added to the container
func (*Container) RemoveDeleteCapability ¶
RemoveDeleteCapability will remove a POSIX capabiltiy will be removed from the container
func (*Container) RemoveLivenessProbe ¶
func (c *Container) RemoveLivenessProbe()
RemoveLivenessProbe remove the existing liveness probe from the container if it exists
func (*Container) RemovePort ¶
RemovePort removes an exposed port from the container
func (*Container) RemovePostStartAction ¶
func (c *Container) RemovePostStartAction()
RemovePostStartAction removes the PostStart action from the container if it exists
func (*Container) RemovePreStopAction ¶
func (c *Container) RemovePreStopAction()
RemovePreStopAction removes the PreStop action from the container if it exists
func (*Container) RemoveReadinessProbe ¶
func (c *Container) RemoveReadinessProbe()
RemoveReadinessProbe remove the existing readiness probe from the container if it exists
func (*Container) RemoveSELinux ¶
func (c *Container) RemoveSELinux()
RemoveSELinux will remove the SELinux configuration from the container
func (*Container) RemoveVolumeDevice ¶
RemoveVolumeDevice removes a volume device from the container
func (*Container) RemoveVolumeMount ¶
func (c *Container) RemoveVolumeMount(config api.VolumeMountConfig) error
RemoveVolumeMount removes a volume mount from the container
type CustomResourceDefinition ¶
type CustomResourceDefinition struct { *v1beta1.CustomResourceDefinition MetadataFuncs }
CustomResourceDefinition defines a custom resource
func NewCustomResourceDefintion ¶
func NewCustomResourceDefintion(config api.CRDConfig) *CustomResourceDefinition
NewCustomResourceDefintion returns a CustomerResrouceDefinition object
func (*CustomResourceDefinition) Deploy ¶
func (crd *CustomResourceDefinition) Deploy(res api.DeployerResources) error
Deploy will deploy the custom resource definition to the cluster
func (*CustomResourceDefinition) Undeploy ¶
func (crd *CustomResourceDefinition) Undeploy(res api.DeployerResources) error
Undeploy will remove the custom resource definition from the cluster
type DaemonSet ¶
type DaemonSet struct { *v1.DaemonSet MetadataFuncs LabelSelectorFuncs PodFuncs }
DaemonSet defines the daemon set component
func NewDaemonSet ¶
func NewDaemonSet(config api.DaemonSetConfig) *DaemonSet
NewDaemonSet creates a DaemonSet object
type Deployment ¶
type Deployment struct { *v1.Deployment MetadataFuncs LabelSelectorFuncs PodFuncs }
Deployment defines the deployment component
func NewDeployment ¶
func NewDeployment(config api.DeploymentConfig) *Deployment
NewDeployment creates a Deployment object
func (*Deployment) Deploy ¶
func (d *Deployment) Deploy(res api.DeployerResources) error
Deploy will deploy the deployment to the cluster
func (*Deployment) Undeploy ¶
func (d *Deployment) Undeploy(res api.DeployerResources) error
Undeploy will remove the deployment from the cluster
type HorizontalPodAutoscaler ¶
type HorizontalPodAutoscaler struct { *v1.HorizontalPodAutoscaler MetadataFuncs }
HorizontalPodAutoscaler defines the HorizontalPodAutoscaler component
func NewHorizontalPodAutoscaler ¶
func NewHorizontalPodAutoscaler(config api.HPAConfig) *HorizontalPodAutoscaler
NewHorizontalPodAutoscaler creates a HorizontalPodAutoscaler object
func (*HorizontalPodAutoscaler) Deploy ¶
func (hpa *HorizontalPodAutoscaler) Deploy(res api.DeployerResources) error
Deploy will deploy the horizontal pod autoscaler to the cluster
func (*HorizontalPodAutoscaler) Undeploy ¶
func (hpa *HorizontalPodAutoscaler) Undeploy(res api.DeployerResources) error
Undeploy will remove the horizontal pod autoscaler from the cluster
type Ingress ¶
type Ingress struct { *v1beta1.Ingress MetadataFuncs }
Ingress defines the Ingress component
func NewIngress ¶
func NewIngress(config api.IngressConfig) (*Ingress, error)
NewIngress creates an Ingress object
func (*Ingress) AddHostRule ¶
func (i *Ingress) AddHostRule(config api.IngressHostRuleConfig)
AddHostRule will add a host rule to the ingress
func (*Ingress) AddTLS ¶
func (i *Ingress) AddTLS(TLSConfig api.IngressTLSConfig)
AddTLS will add TLS configuration to the ingress
func (*Ingress) Deploy ¶
func (i *Ingress) Deploy(res api.DeployerResources) error
Deploy will deploy the ingress to the cluster
func (*Ingress) RemoveHostRule ¶
func (i *Ingress) RemoveHostRule(config api.IngressHostRuleConfig)
RemoveHostRule will remove a host rule from the ingress
func (*Ingress) RemoveTLS ¶
func (i *Ingress) RemoveTLS(TLSConfig api.IngressTLSConfig)
RemoveTLS will remove a TLS configuration from the ingress
type Job ¶
type Job struct { *v1.Job MetadataFuncs LabelSelectorFuncs PodFuncs }
Job defines the job component
type LabelSelectorFuncs ¶
type LabelSelectorFuncs struct {
// contains filtered or unexported fields
}
LabelSelectorFuncs defines functions to act upon Label Selectors
func (*LabelSelectorFuncs) AddMatchExpressionsSelector ¶
func (l *LabelSelectorFuncs) AddMatchExpressionsSelector(add api.ExpressionRequirementConfig)
AddMatchExpressionsSelector will add match expressions selectors to the object
func (*LabelSelectorFuncs) AddMatchLabelsSelectors ¶
func (l *LabelSelectorFuncs) AddMatchLabelsSelectors(new map[string]string)
AddMatchLabelsSelectors adds the given match label selectors to the object
func (*LabelSelectorFuncs) RemoveMatchExpressionsSelector ¶
func (l *LabelSelectorFuncs) RemoveMatchExpressionsSelector(remove api.ExpressionRequirementConfig)
RemoveMatchExpressionsSelector removes the match expressions selector from the object
func (*LabelSelectorFuncs) RemoveMatchLabelsSelectors ¶
func (l *LabelSelectorFuncs) RemoveMatchLabelsSelectors(remove []string)
RemoveMatchLabelsSelectors removes the given match label selectors from the object
type MetadataFuncs ¶
type MetadataFuncs struct {
// contains filtered or unexported fields
}
MetadataFuncs defines some common metadata handling functions
func (*MetadataFuncs) AddAnnotations ¶
func (m *MetadataFuncs) AddAnnotations(new map[string]string)
AddAnnotations adds annotations to the object
func (*MetadataFuncs) AddFinalizers ¶
func (m *MetadataFuncs) AddFinalizers(new []string)
AddFinalizers will add finalizers to the object
func (*MetadataFuncs) AddLabels ¶
func (m *MetadataFuncs) AddLabels(new map[string]string)
AddLabels adds labels to the object
func (*MetadataFuncs) RemoveAnnotations ¶
func (m *MetadataFuncs) RemoveAnnotations(remove []string)
RemoveAnnotations removes annotations from the object
func (*MetadataFuncs) RemoveFinalizer ¶
func (m *MetadataFuncs) RemoveFinalizer(remove string)
RemoveFinalizer will remove a finalizer from the namespace
func (*MetadataFuncs) RemoveLabels ¶
func (m *MetadataFuncs) RemoveLabels(remove []string)
RemoveLabels removes labels from the object
type Namespace ¶
type Namespace struct { *v1.Namespace MetadataFuncs }
Namespace defines the namespace component
func NewNamespace ¶
func NewNamespace(config api.NamespaceConfig) *Namespace
NewNamespace creates a Namespace object
type PersistentVolumeClaim ¶
type PersistentVolumeClaim struct { *v1.PersistentVolumeClaim MetadataFuncs LabelSelectorFuncs }
PersistentVolumeClaim defines the persistent volume claim component
func NewPersistentVolumeClaim ¶
func NewPersistentVolumeClaim(config api.PVCConfig) (*PersistentVolumeClaim, error)
NewPersistentVolumeClaim creates a new PersistentVolumeClaim object
func (*PersistentVolumeClaim) AddAccessMode ¶
func (p *PersistentVolumeClaim) AddAccessMode(mode api.PVCAccessModeType)
AddAccessMode will add an access mode to the persistent volume claim if the mode doesn't already exist
func (*PersistentVolumeClaim) Deploy ¶
func (p *PersistentVolumeClaim) Deploy(res api.DeployerResources) error
Deploy will deploy the persistent volume claim to the cluster
func (*PersistentVolumeClaim) RemoveAccessMode ¶
func (p *PersistentVolumeClaim) RemoveAccessMode(mode api.PVCAccessModeType)
RemoveAccessMode will remove an access mode from the persistent volume claim
func (*PersistentVolumeClaim) Undeploy ¶
func (p *PersistentVolumeClaim) Undeploy(res api.DeployerResources) error
Undeploy will remove the persistent volume claim from the cluster
type Pod ¶
type Pod struct { *v1.Pod MetadataFuncs }
Pod defines the pod component
func (*Pod) AddContainer ¶
AddContainer adds a container to the pod
func (*Pod) AddDNSConfig ¶
func (p *Pod) AddDNSConfig(dns api.PodDNSConfig)
AddDNSConfig will add the DNS configuration to the pod
func (*Pod) AddHostAliases ¶
func (p *Pod) AddHostAliases(new []api.HostAliasConfig)
AddHostAliases will add host aliases to the pod
func (*Pod) AddHostMode ¶
func (p *Pod) AddHostMode(mode api.HostModeType)
AddHostMode will add a networking host mode to the pod
func (*Pod) AddImagePullSecrets ¶
AddImagePullSecrets will add image pull secrets to the pod
func (*Pod) AddInitContainer ¶
AddInitContainer adds an init container to the pod
func (*Pod) AddNodeAffinity ¶
func (p *Pod) AddNodeAffinity(affinityType api.AffinityType, config api.NodeAffinityConfig) error
AddNodeAffinity adds a node affinity to the pod
func (*Pod) AddNodeSelectors ¶
AddNodeSelectors will add the node selectors to the pod
func (*Pod) AddPodAffinity ¶
func (p *Pod) AddPodAffinity(affinityType api.AffinityType, config api.PodAffinityConfig)
AddPodAffinity adds a pod affinity to the pod
func (*Pod) AddPodAntiAffinity ¶
func (p *Pod) AddPodAntiAffinity(affinityType api.AffinityType, config api.PodAffinityConfig)
AddPodAntiAffinity adds a pod affinity to the pod
func (*Pod) AddSupplementalGIDs ¶
AddSupplementalGIDs will add supplemental GIDs to the pod
func (*Pod) AddSysctls ¶
AddSysctls will add the sysctl key value pairs to the pod
func (*Pod) AddTolerations ¶
func (p *Pod) AddTolerations(config []api.TolerationConfig)
AddTolerations will add tolerations to the pod
func (*Pod) Deploy ¶
func (p *Pod) Deploy(res api.DeployerResources) error
Deploy will deploy the pod to the cluster
func (*Pod) RemoveContainer ¶
RemoveContainer removes a container from the pod
func (*Pod) RemoveDNSConfig ¶
func (p *Pod) RemoveDNSConfig()
RemoveDNSConfig will remote the DNS configuration from the pod
func (*Pod) RemoveHostAlias ¶
func (p *Pod) RemoveHostAlias(remove api.HostAliasConfig)
RemoveHostAlias will remove a host alias from the pod
func (*Pod) RemoveHostMode ¶
func (p *Pod) RemoveHostMode(mode api.HostModeType)
RemoveHostMode will remove a networking host mode from the pod
func (*Pod) RemoveImagePullSecret ¶
RemoveImagePullSecret will remove an image pull secret from the pod
func (*Pod) RemoveInitContainer ¶
RemoveInitContainer removes an init container from the pod
func (*Pod) RemoveNodeAffinity ¶
func (p *Pod) RemoveNodeAffinity(affinityType api.AffinityType, config api.NodeAffinityConfig) error
RemoveNodeAffinity removes a node affinity from the pod
func (*Pod) RemoveNodeSelectors ¶
RemoveNodeSelectors will remove the node selectors from the pod
func (*Pod) RemovePodAffinity ¶
func (p *Pod) RemovePodAffinity(affinityType api.AffinityType, config api.PodAffinityConfig)
RemovePodAffinity removes a pod affinity from the pod
func (*Pod) RemovePodAntiAffinity ¶
func (p *Pod) RemovePodAntiAffinity(affinityType api.AffinityType, config api.PodAffinityConfig)
RemovePodAntiAffinity removes a pod affinity from the pod
func (*Pod) RemoveSupplementalGID ¶
RemoveSupplementalGID will remove the provided GID from the list of supplemental GIDs on the pod
func (*Pod) RemoveSysctls ¶
RemoveSysctls will remove the sysctl keys from the pod
func (*Pod) RemoveToleration ¶
func (p *Pod) RemoveToleration(remove api.TolerationConfig)
RemoveToleration will remove a toleration from the pod
func (*Pod) RemoveVolume ¶
RemoveVolume removes a volume from the pod
type PodFuncs ¶
type PodFuncs struct {
// contains filtered or unexported fields
}
PodFuncs defines common functions for managing pods contained in other components
type ReplicationController ¶
type ReplicationController struct { *v1.ReplicationController MetadataFuncs PodFuncs }
ReplicationController defines the replication controller component
func NewReplicationController ¶
func NewReplicationController(config api.ReplicationControllerConfig) *ReplicationController
NewReplicationController creates a ReplicationController object
func (*ReplicationController) AddSelectors ¶
func (rc *ReplicationController) AddSelectors(new map[string]string)
AddSelectors adds the given selectors to the replication controller
func (*ReplicationController) Deploy ¶
func (rc *ReplicationController) Deploy(res api.DeployerResources) error
Deploy will deploy the replication controller to the cluster
func (*ReplicationController) RemoveSelectors ¶
func (rc *ReplicationController) RemoveSelectors(remove []string)
RemoveSelectors removes the given selectors from the replication controller
func (*ReplicationController) Undeploy ¶
func (rc *ReplicationController) Undeploy(res api.DeployerResources) error
Undeploy will remove the replication controller from the cluster
type Role ¶
type Role struct { *v1.Role MetadataFuncs }
Role defines the cluster role component
func (*Role) AddPolicyRule ¶
func (r *Role) AddPolicyRule(config api.PolicyRuleConfig)
AddPolicyRule will add a policy rule to the cluster role
func (*Role) Deploy ¶
func (r *Role) Deploy(res api.DeployerResources) error
Deploy will deploy the cluster role to the cluster
func (*Role) RemovePolicyRule ¶
func (r *Role) RemovePolicyRule(config api.PolicyRuleConfig)
RemovePolicyRule will remove a policy rule from the cluster role
type RoleBinding ¶
type RoleBinding struct { *v1.RoleBinding MetadataFuncs }
RoleBinding defines the cluster role binding component
func NewRoleBinding ¶
func NewRoleBinding(config api.RoleBindingConfig) *RoleBinding
NewRoleBinding creates a RoleBinding object
func (*RoleBinding) AddRoleRef ¶
func (rb *RoleBinding) AddRoleRef(config api.RoleRefConfig)
AddRoleRef will add a role reference to the cluster role binding
func (*RoleBinding) AddSubject ¶
func (rb *RoleBinding) AddSubject(config api.SubjectConfig)
AddSubject will add a subject to the cluster role binding
func (*RoleBinding) Deploy ¶
func (rb *RoleBinding) Deploy(res api.DeployerResources) error
Deploy will deploy the cluster role binding to the cluster
func (*RoleBinding) RemoveSubject ¶
func (rb *RoleBinding) RemoveSubject(config api.SubjectConfig)
RemoveSubject will remove a subject from the cluster role binding
func (*RoleBinding) Undeploy ¶
func (rb *RoleBinding) Undeploy(res api.DeployerResources) error
Undeploy will remove the cluster role binding from the cluster
type Secret ¶
type Secret struct { *v1.Secret MetadataFuncs }
Secret defines the secret component
func (*Secret) AddStringData ¶
AddStringData adds string data to the secret
func (*Secret) Deploy ¶
func (s *Secret) Deploy(res api.DeployerResources) error
Deploy will deploy the secret to the cluster
func (*Secret) RemoveData ¶
RemoveData removes data from the secret
func (*Secret) RemoveStringData ¶
RemoveStringData removes string data from the secret
type Service ¶
type Service struct { *v1.Service MetadataFuncs }
Service defines the service component
func NewService ¶
func NewService(config api.ServiceConfig) *Service
NewService creates a Service object
func (*Service) AddExternalIPs ¶
AddExternalIPs will add the provided external ip address to the service
func (*Service) AddLoadBalancer ¶
func (s *Service) AddLoadBalancer(config api.LoadBalancerConfig) error
AddLoadBalancer will add the provided load balancer to the service
func (*Service) AddPort ¶
func (s *Service) AddPort(config api.ServicePortConfig) error
AddPort adds a port to the service. There can only be 1 non-named port on the service. If there are more than 1 port then they must all be named. If an unnamed port is already added to the service and another port is attmepted to be added, this function will return an error
func (*Service) AddSelectors ¶
AddSelectors adds selectors to the service
func (*Service) Deploy ¶
func (s *Service) Deploy(res api.DeployerResources) error
Deploy will deploy the service to the cluster
func (*Service) RemoveExternalIP ¶
RemoveExternalIP will remove the provided external ip address from the service
func (*Service) RemoveLoadBalancer ¶
func (s *Service) RemoveLoadBalancer()
RemoveLoadBalancer will remove the load balancer from the service
func (*Service) RemovePort ¶
RemovePort will remove a port from the service
func (*Service) RemoveSelectors ¶
RemoveSelectors removes selectors from the service
type ServiceAccount ¶
type ServiceAccount struct { *v1.ServiceAccount MetadataFuncs }
ServiceAccount defines the service account component
func NewServiceAccount ¶
func NewServiceAccount(config api.ServiceAccountConfig) *ServiceAccount
NewServiceAccount creates a ServiceAccount object
func (*ServiceAccount) AddPullSecrets ¶
func (sa *ServiceAccount) AddPullSecrets(add []string)
AddPullSecrets adds pull secrets to the service account
func (*ServiceAccount) AddSecret ¶
func (sa *ServiceAccount) AddSecret(config api.ServiceAccountSecretConfig)
AddSecret adds a usable secret to the service account
func (*ServiceAccount) Deploy ¶
func (sa *ServiceAccount) Deploy(res api.DeployerResources) error
Deploy will deploy the service account to the cluster
func (*ServiceAccount) RemoveObjectReference ¶
func (sa *ServiceAccount) RemoveObjectReference(config api.ServiceAccountSecretConfig)
RemoveObjectReference will remove a usable secret from a service account
func (*ServiceAccount) RemovePullSecret ¶
func (sa *ServiceAccount) RemovePullSecret(remove string)
RemovePullSecret removes a pull secret from the service account
func (*ServiceAccount) Undeploy ¶
func (sa *ServiceAccount) Undeploy(res api.DeployerResources) error
Undeploy will remove the service account from the cluster
type StatefulSet ¶
type StatefulSet struct { *v1.StatefulSet MetadataFuncs LabelSelectorFuncs PodFuncs }
StatefulSet defines the stateful set component
func NewStatefulSet ¶
func NewStatefulSet(config api.StatefulSetConfig) *StatefulSet
NewStatefulSet creates a StatefulSet object
func (*StatefulSet) AddVolumeClaimTemplate ¶
func (s *StatefulSet) AddVolumeClaimTemplate(claim PersistentVolumeClaim)
AddVolumeClaimTemplate adds a volume claim template to the stateful set
func (*StatefulSet) Deploy ¶
func (s *StatefulSet) Deploy(res api.DeployerResources) error
Deploy will deploy the stateful set to the cluster
func (*StatefulSet) RemoveVolumeClaimTemplate ¶
func (s *StatefulSet) RemoveVolumeClaimTemplate(claim PersistentVolumeClaim)
RemoveVolumeClaimTemplate removes a volume claim template from the stateful set
func (*StatefulSet) Undeploy ¶
func (s *StatefulSet) Undeploy(res api.DeployerResources) error
Undeploy will remove the stateful set from the cluster
type Volume ¶
Volume defines the volume component
func NewConfigMapVolume ¶
func NewConfigMapVolume(config api.ConfigMapOrSecretVolumeConfig) *Volume
NewConfigMapVolume creates a ConfigMap volume object
func NewEmptyDirVolume ¶
func NewEmptyDirVolume(config api.EmptyDirVolumeConfig) (*Volume, error)
NewEmptyDirVolume creates an EmptyDir volume object
func NewGCEPersistentDiskVolume ¶
func NewGCEPersistentDiskVolume(config api.GCEPersistentDiskVolumeConfig) *Volume
NewGCEPersistentDiskVolume creates a new GCE Persistent Disk volume object
func NewHostPathVolume ¶
func NewHostPathVolume(config api.HostPathVolumeConfig) *Volume
NewHostPathVolume create a HostPath volume object
func NewPVCVolume ¶
func NewPVCVolume(config api.PVCVolumeConfig) *Volume
NewPVCVolume creates a new Persistent Volume Claim volume object
func NewSecretVolume ¶
func NewSecretVolume(config api.ConfigMapOrSecretVolumeConfig) *Volume
NewSecretVolume creates a Secret volume object
Source Files
¶
- affinity.go
- cluster_role.go
- cluster_role_binding.go
- config_map.go
- container.go
- custom_resource_definition.go
- daemon_set.go
- deployment.go
- horizontal_pod_autoscaler.go
- ingress.go
- job.go
- metadata.go
- namespace.go
- persistent_volume_claim.go
- pod.go
- podfuncs.go
- replication_controller.go
- role.go
- role_binding.go
- secret.go
- selectors.go
- service.go
- service_account.go
- stateful_set.go
- utils.go
- volume.go