Documentation ¶
Index ¶
- type KubeClient
- type MetaObject
- type Patch
- func (p *Patch) Add(set PatchSet)
- func (p *Patch) Remove(path string)
- func (p *Patch) RemoveAnnotation(key string)
- func (p *Patch) RemoveLabel(key string)
- func (p *Patch) Set(path string, value string)
- func (p *Patch) SetAnnotation(o MetaObject, key string, value string)
- func (p *Patch) SetLabel(o MetaObject, key string, value string)
- func (p *Patch) String() string
- type PatchSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeClient ¶
type KubeClient interface { GetServicesForLB(ctx context.Context) ([]*v1.Service, error) GetConfig(ctx context.Context, namespace string, name string, config string) (string, error) GetService(ctx context.Context, namespace string, name string) (*v1.Service, error) GetConfigMap(ctx context.Context, namespace string, name string) (*v1.ConfigMap, error) PatchService(ctx context.Context, namespace string, name string, patch *Patch) (metav1.Object, error) WatchService(ctx context.Context) (chan [2]metav1.Object, context.CancelFunc) }
func NewKubeClient ¶
func NewKubeClient(kubeconfig string, logger logger.Logger) (KubeClient, error)
type MetaObject ¶
type Patch ¶
type Patch struct {
// contains filtered or unexported fields
}
func (*Patch) RemoveAnnotation ¶
RemoveAnnotation adds a patch set to remove a label
func (*Patch) RemoveLabel ¶
RemoveLabel adds a patch set to remove a label
func (*Patch) SetAnnotation ¶
func (p *Patch) SetAnnotation(o MetaObject, key string, value string)
SetAnnotation adds a patch set to set an annotation
Click to show internal directories.
Click to hide internal directories.