components

package
v0.0.0-...-16cafa9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 17 Imported by: 27

Documentation

Index

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

func (c *ConfigMap) AddBinaryData(new map[string][]byte)

AddBinaryData adds key value pairs to the config map

func (*ConfigMap) AddData

func (c *ConfigMap) AddData(new map[string]string)

AddData 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

func (c *ConfigMap) RemoveBinaryData(remove map[string][]byte)

RemoveBinaryData removes the provided keys from the config map

func (*ConfigMap) RemoveData

func (c *ConfigMap) RemoveData(remove []string)

RemoveData removes the provided keys from the config map

func (*ConfigMap) Undeploy

func (c *ConfigMap) Undeploy(res api.DeployerResources) error

Undeploy will remove the config map from the cluster

type Container

type Container struct {
	*v1.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

func (c *Container) AddAddCapabilities(add []string)

AddAddCapabilities will add POSIX capabilities that will be added to the container

func (*Container) AddDeleteCapabilities

func (c *Container) AddDeleteCapabilities(add []string)

AddDeleteCapabilities will add POSIX capabilities that will be removed from the container

func (*Container) AddEnv

func (c *Container) AddEnv(config api.EnvConfig)

AddEnv adds an environment configuration to 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

func (c *Container) RemoveAddCapability(remove string)

RemoveAddCapability will remove a POSIX capabiltiy that would be added to the container

func (*Container) RemoveDeleteCapability

func (c *Container) RemoveDeleteCapability(remove string)

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

func (c *Container) RemovePort(name string) error

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

func (c *Container) RemoveVolumeDevice(name string) error

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

Deploy will deploy the custom resource definition to the cluster

func (*CustomResourceDefinition) Undeploy

Undeploy will remove the custom resource definition from the cluster

type DaemonSet

DaemonSet defines the daemon set component

func NewDaemonSet

func NewDaemonSet(config api.DaemonSetConfig) *DaemonSet

NewDaemonSet creates a DaemonSet object

func (*DaemonSet) Deploy

func (ds *DaemonSet) Deploy(res api.DeployerResources) error

Deploy will deploy the daemon set to the cluster

func (*DaemonSet) Undeploy

func (ds *DaemonSet) Undeploy(res api.DeployerResources) error

Undeploy will remove the daemon set from the cluster

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

Deploy will deploy the horizontal pod autoscaler to the cluster

func (*HorizontalPodAutoscaler) Undeploy

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

func (*Ingress) Undeploy

func (i *Ingress) Undeploy(res api.DeployerResources) error

Undeploy will remove the ingress from the cluster

type Job

Job defines the job component

func NewJob

func NewJob(config api.JobConfig) *Job

NewJob creates a Job object

func (*Job) Deploy

func (j *Job) Deploy(res api.DeployerResources) error

Deploy will deploy the job to the cluster

func (*Job) Undeploy

func (j *Job) Undeploy(res api.DeployerResources) error

Undeploy will remove the job from the cluster

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

func (*Namespace) Deploy

func (n *Namespace) Deploy(res api.DeployerResources) error

Deploy will deploy the namespace to the cluster

func (*Namespace) Undeploy

func (n *Namespace) Undeploy(res api.DeployerResources) error

Undeploy will remove the namespace from the cluster

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

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

Undeploy will remove the persistent volume claim from the cluster

type Pod

type Pod struct {
	*v1.Pod
	MetadataFuncs
}

Pod defines the pod component

func NewPod

func NewPod(config api.PodConfig) *Pod

NewPod create a Pod object

func (*Pod) AddContainer

func (p *Pod) AddContainer(obj *Container) error

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

func (p *Pod) AddImagePullSecrets(new []string)

AddImagePullSecrets will add image pull secrets to the pod

func (*Pod) AddInitContainer

func (p *Pod) AddInitContainer(obj *Container) error

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

func (p *Pod) AddNodeSelectors(selectors map[string]string)

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

func (p *Pod) AddSupplementalGIDs(new []int64)

AddSupplementalGIDs will add supplemental GIDs to the pod

func (*Pod) AddSysctls

func (p *Pod) AddSysctls(sysctls map[string]string)

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) AddVolume

func (p *Pod) AddVolume(obj *Volume) error

AddVolume adds a volume 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

func (p *Pod) RemoveContainer(name string) error

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

func (p *Pod) RemoveImagePullSecret(remove string)

RemoveImagePullSecret will remove an image pull secret from the pod

func (*Pod) RemoveInitContainer

func (p *Pod) RemoveInitContainer(name string) error

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

func (p *Pod) RemoveNodeSelectors(selectors []string)

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

func (p *Pod) RemoveSupplementalGID(remove int64)

RemoveSupplementalGID will remove the provided GID from the list of supplemental GIDs on the pod

func (*Pod) RemoveSysctls

func (p *Pod) RemoveSysctls(sysctls []string)

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

func (p *Pod) RemoveVolume(name string)

RemoveVolume removes a volume from the pod

func (*Pod) Undeploy

func (p *Pod) Undeploy(res api.DeployerResources) error

Undeploy will remove the pod from the cluster

type PodFuncs

type PodFuncs struct {
	// contains filtered or unexported fields
}

PodFuncs defines common functions for managing pods contained in other components

func (*PodFuncs) AddPod

func (pf *PodFuncs) AddPod(pod *Pod)

AddPod adds a pod to the object

func (*PodFuncs) RemovePod

func (pf *PodFuncs) RemovePod(name string) error

RemovePod removes a pod from the object

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

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

Undeploy will remove the replication controller from the cluster

type Role

type Role struct {
	*v1.Role
	MetadataFuncs
}

Role defines the cluster role component

func NewRole

func NewRole(config api.RoleConfig) *Role

NewRole creates a Role object

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

func (*Role) Undeploy

func (r *Role) Undeploy(res api.DeployerResources) error

Undeploy will remove the cluster role from the cluster

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 NewSecret

func NewSecret(config api.SecretConfig) *Secret

NewSecret creates a Secret object

func (*Secret) AddData

func (s *Secret) AddData(new map[string][]byte)

AddData adds data to the secret

func (*Secret) AddStringData

func (s *Secret) AddStringData(new map[string]string)

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

func (s *Secret) RemoveData(remove []string)

RemoveData removes data from the secret

func (*Secret) RemoveStringData

func (s *Secret) RemoveStringData(remove []string)

RemoveStringData removes string data from the secret

func (*Secret) Undeploy

func (s *Secret) Undeploy(res api.DeployerResources) error

Undeploy will remove the secret from the cluster

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

func (s *Service) AddExternalIPs(ips []string)

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

func (s *Service) AddSelectors(new map[string]string)

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

func (s *Service) RemoveExternalIP(ip string)

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

func (s *Service) RemovePort(port int32) error

RemovePort will remove a port from the service

func (*Service) RemoveSelectors

func (s *Service) RemoveSelectors(remove []string)

RemoveSelectors removes selectors from the service

func (*Service) Undeploy

func (s *Service) Undeploy(res api.DeployerResources) error

Undeploy will remove the service from the cluster

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

type Volume struct {
	*v1.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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL