Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeployConfig ¶
type DeployConfig struct { KubeClient *kubernetes.Clientset // This is not used yet, however the plan is to use it instead of calling kubectl via cmd CmdPath string Context string Namespace string Manifests []string Log log.Logger }
DeployConfig holds the necessary information for kubectl deployment
func New ¶
func New(kubectl *kubernetes.Clientset, deployConfig *v1.DeploymentConfig, log log.Logger) (*DeployConfig, error)
New creates a new deploy config for kubectl
func (*DeployConfig) Delete ¶
func (d *DeployConfig) Delete() error
Delete deletes all matched manifests from kubernetes
func (*DeployConfig) Deploy ¶
func (d *DeployConfig) Deploy(generatedConfig *generated.Config, forceDeploy bool) error
Deploy deploys all specified manifests via kubectl apply and adds to the specified image names the corresponding tags
func (*DeployConfig) Status ¶
func (d *DeployConfig) Status() ([][]string, error)
Status prints the status of all matched manifests from kubernetes
Click to show internal directories.
Click to hide internal directories.