Documentation ¶
Index ¶
- type CronJobController
- type DaemonSetController
- type DeploymentController
- type GenericController
- type Interface
- func LoadControllersByType(controllerType config.SupportedController, ...) ([]Interface, error)
- func NewCronJobController(originalDeploymentResource kubeAPIBatchV1beta1.CronJob) Interface
- func NewDaemonSetController(originalResource kubeAPIAppsV1.DaemonSet) Interface
- func NewDeploymentController(originalDeploymentResource kubeAPIAppsV1.Deployment) Interface
- func NewJobController(originalResource kubeAPIBatchV1.Job) Interface
- func NewReplicationControllerController(originalResource kubeAPICoreV1.ReplicationController) Interface
- func NewStatefulSetController(originalResource kubeAPIAppsV1.StatefulSet) Interface
- type JobController
- type ReplicationControllerController
- type StatefulSetController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronJobController ¶
type CronJobController struct { GenericController K8SResource kubeAPIBatchV1beta1.CronJob }
CronJobController is an implementation of controller for deployments
func (CronJobController) GetPodSpec ¶
func (c CronJobController) GetPodSpec() *kubeAPICoreV1.PodSpec
GetPodSpec returns the original kubernetes template pod spec
func (CronJobController) GetPodTemplate ¶
func (c CronJobController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
GetPodTemplate returns the original template spec
func (CronJobController) GetType ¶
func (c CronJobController) GetType() config.SupportedController
GetType returns the supportedcontroller enum type
type DaemonSetController ¶
type DaemonSetController struct { GenericController K8SResource kubeAPIAppsV1.DaemonSet }
DaemonSetController is an implementation of controller for deployments
func (DaemonSetController) GetPodSpec ¶
func (d DaemonSetController) GetPodSpec() *kubeAPICoreV1.PodSpec
GetPodSpec returns the original kubernetes template pod spec
func (DaemonSetController) GetPodTemplate ¶
func (d DaemonSetController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
GetPodTemplate returns the original template spec
func (DaemonSetController) GetType ¶
func (d DaemonSetController) GetType() config.SupportedController
GetType returns the supportedcontroller enum type
type DeploymentController ¶
type DeploymentController struct { GenericController K8SResource kubeAPIAppsV1.Deployment }
DeploymentController is an implementation of controller for deployments
func (DeploymentController) GetPodSpec ¶
func (d DeploymentController) GetPodSpec() *kubeAPICoreV1.PodSpec
GetPodSpec returns the original kubernetes template pod spec
func (DeploymentController) GetPodTemplate ¶
func (d DeploymentController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
GetPodTemplate returns the original template spec
func (DeploymentController) GetType ¶
func (d DeploymentController) GetType() config.SupportedController
GetType returns the supportedcontroller enum type
type GenericController ¶
GenericController is a base implementation with some free methods for inherited structs
func (GenericController) GetName ¶
func (g GenericController) GetName() string
GetName is inherited by all controllers using generic controller to get the name of the controller
func (GenericController) GetNamespace ¶
func (g GenericController) GetNamespace() string
GetNamespace is inherited by all controllers using generic controller to get the namespace of the controller
type Interface ¶
type Interface interface { GetName() string GetNamespace() string GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec GetPodSpec() *kubeAPICoreV1.PodSpec GetType() config.SupportedController }
Interface is an interface for k8s controllers (e.g. Deployments and StatefulSets)
func LoadControllersByType ¶
func LoadControllersByType(controllerType config.SupportedController, kubeResources *kube.ResourceProvider) ([]Interface, error)
LoadControllersByType loads a list of controllers from the kubeResources by detecting their type
func NewCronJobController ¶
func NewCronJobController(originalDeploymentResource kubeAPIBatchV1beta1.CronJob) Interface
NewCronJobController builds a new controller interface for Deployments
func NewDaemonSetController ¶
func NewDaemonSetController(originalResource kubeAPIAppsV1.DaemonSet) Interface
NewDaemonSetController builds a new controller interface for Deployments
func NewDeploymentController ¶
func NewDeploymentController(originalDeploymentResource kubeAPIAppsV1.Deployment) Interface
NewDeploymentController builds a new controller interface for Deployments
func NewJobController ¶
func NewJobController(originalResource kubeAPIBatchV1.Job) Interface
NewJobController builds a new controller interface for Deployments
func NewReplicationControllerController ¶
func NewReplicationControllerController(originalResource kubeAPICoreV1.ReplicationController) Interface
NewReplicationControllerController builds a new controller interface for Deployments
func NewStatefulSetController ¶
func NewStatefulSetController(originalResource kubeAPIAppsV1.StatefulSet) Interface
NewStatefulSetController builds a statefulset controller
type JobController ¶
type JobController struct { GenericController K8SResource kubeAPIBatchV1.Job }
JobController is an implementation of controller for deployments
func (JobController) GetPodSpec ¶
func (j JobController) GetPodSpec() *kubeAPICoreV1.PodSpec
GetPodSpec returns the original kubernetes template pod spec
func (JobController) GetPodTemplate ¶
func (j JobController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
GetPodTemplate returns the original template spec
func (JobController) GetType ¶
func (j JobController) GetType() config.SupportedController
GetType returns the supportedcontroller enum type
type ReplicationControllerController ¶
type ReplicationControllerController struct { GenericController K8SResource kubeAPICoreV1.ReplicationController }
ReplicationControllerController is an implementation of controller for deployments
func (ReplicationControllerController) GetPodSpec ¶
func (r ReplicationControllerController) GetPodSpec() *kubeAPICoreV1.PodSpec
GetPodSpec returns the original kubernetes template pod spec
func (ReplicationControllerController) GetPodTemplate ¶
func (r ReplicationControllerController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
GetPodTemplate returns the original template spec
func (ReplicationControllerController) GetType ¶
func (r ReplicationControllerController) GetType() config.SupportedController
GetType returns the supportedcontroller enum type
type StatefulSetController ¶
type StatefulSetController struct { GenericController K8SResource kubeAPIAppsV1.StatefulSet }
StatefulSetController is an implementation of controller for deployments
func (StatefulSetController) GetPodSpec ¶
func (s StatefulSetController) GetPodSpec() *kubeAPICoreV1.PodSpec
GetPodSpec returns the podspec from the original kubernetes resource
func (StatefulSetController) GetPodTemplate ¶
func (s StatefulSetController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
GetPodTemplate returns the kubernetes template spec
func (StatefulSetController) GetType ¶
func (s StatefulSetController) GetType() config.SupportedController
GetType returns the supportedcontroller enum type