Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StarkBundle string = "StarkBundle"
Functions ¶
func AllStatusesDone ¶
func AllStatusesDone(deploys map[string]*DeploymentStatus) bool
func RunKubectlWith ¶
func RunKubectlWith(opts *KubectlOpts) error
Types ¶
type Bundle ¶
type Bundle struct { Kind string `yaml:"kind,omitempty"` Metadata Metadata `yaml:"metadata"` Target Target `yaml:"target,omitempty"` Labels map[string]string `yaml:"labels,omitempty"` Resources []yaml.Node `yaml:"resources,omitempty"` }
func BundlesFromYaml ¶
func (*Bundle) ResourcesTyped ¶
func (b *Bundle) ResourcesTyped() ([]ResourceBase, error)
func (*Bundle) ResourcesYaml ¶
type DeploymentStatus ¶
type DeploymentStatus struct { Kind string Name string Namespace string UpdatedPods int DesiredPods int TotalPods int ReadyPods int Err error Done bool }
func WatchDeployments ¶
func WatchDeployments( ctx context.Context, labels map[string]string, cfg KubeCfg, target Target, ) ([]DeploymentStatus, chan DeploymentStatus, error)
func (*DeploymentStatus) FullName ¶
func (ds *DeploymentStatus) FullName() string
type KubectlOpts ¶
type KubectlOpts struct { Cfg KubeCfg Command string Args []string Input string Target Target Env map[string]string }
func (*KubectlOpts) ExternalDiffCmd ¶
func (opts *KubectlOpts) ExternalDiffCmd(cmd string)
func (*KubectlOpts) PrettyDiff ¶
func (opts *KubectlOpts) PrettyDiff(args ...string)
type ResourceBase ¶
Click to show internal directories.
Click to hide internal directories.