Documentation ¶
Index ¶
- func CreateDeployment(client clientset.Interface, namespace string, deploymentObj *appsv1.Deployment) (*appsv1.Deployment, error)
- func NewDeployment(name string, opt ...DeploymentOption) *appsv1.Deployment
- type DeploymentOption
- func DeploymentDefaultImage() DeploymentOption
- func DeploymentDefaultTolerations() DeploymentOption
- func DeploymentImage(image string) DeploymentOption
- func DeploymentWithServiceAccountName(serviceAcountName string) DeploymentOption
- func DeploymentWithTolerations(toleration ...corev1.Toleration) DeploymentOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDeployment ¶
func CreateDeployment(client clientset.Interface, namespace string, deploymentObj *appsv1.Deployment) (*appsv1.Deployment, error)
func NewDeployment ¶
func NewDeployment(name string, opt ...DeploymentOption) *appsv1.Deployment
Types ¶
type DeploymentOption ¶
type DeploymentOption func(*appsv1.Deployment)
func DeploymentDefaultImage ¶
func DeploymentDefaultImage() DeploymentOption
func DeploymentDefaultTolerations ¶
func DeploymentDefaultTolerations() DeploymentOption
func DeploymentImage ¶
func DeploymentImage(image string) DeploymentOption
func DeploymentWithServiceAccountName ¶
func DeploymentWithServiceAccountName(serviceAcountName string) DeploymentOption
func DeploymentWithTolerations ¶
func DeploymentWithTolerations(toleration ...corev1.Toleration) DeploymentOption
Click to show internal directories.
Click to hide internal directories.