Documentation
¶
Index ¶
- func New(config *latest.Config, kubeClient kubectl.Client, ...) (deployer.Interface, error)
- type DeployConfig
- func (d *DeployConfig) Delete(cache *generated.CacheConfig) error
- func (d *DeployConfig) Deploy(cache *generated.CacheConfig, forceDeploy bool, builtImages map[string]string) (bool, error)
- func (d *DeployConfig) Render(cache *generated.CacheConfig, builtImages map[string]string, out io.Writer) error
- func (d *DeployConfig) Status() (*deployer.StatusResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeployConfig ¶
type DeployConfig struct {
KubeClient kubectl.Client // This is not used yet, however the plan is to use it instead of calling kubectl via cmd
Name string
CmdPath string
Context string
Namespace string
Manifests []string
DeploymentConfig *latest.DeploymentConfig
Log log.Logger
// contains filtered or unexported fields
}
DeployConfig holds the necessary information for kubectl deployment
func (*DeployConfig) Delete ¶
func (d *DeployConfig) Delete(cache *generated.CacheConfig) error
Delete deletes all matched manifests from kubernetes
func (*DeployConfig) Deploy ¶
func (d *DeployConfig) Deploy(cache *generated.CacheConfig, forceDeploy bool, builtImages map[string]string) (bool, error)
Deploy deploys all specified manifests via kubectl apply and adds to the specified image names the corresponding tags
func (*DeployConfig) Render ¶
func (d *DeployConfig) Render(cache *generated.CacheConfig, builtImages map[string]string, out io.Writer) error
Render writes the generated manifests to the out stream
func (*DeployConfig) Status ¶
func (d *DeployConfig) Status() (*deployer.StatusResult, error)
Status prints the status of all matched manifests from kubernetes
Click to show internal directories.
Click to hide internal directories.