Documentation
¶
Index ¶
- func GetConfigNamesFromSpec(spec corev1.PodSpec) (map[string]struct{}, map[string]struct{})
- type Owner
- func (r Owner) ListConfigs(ctx context.Context, namespace string, spec corev1.PodSpec) ([]apis.Object, error)
- func (r Owner) ListConfigsOwnedBy(ctx context.Context, owner apis.Object) ([]apis.Object, error)
- func (r Owner) RemoveOwnerReferences(ctx context.Context, owner apis.Object, children []apis.Object) error
- func (r Owner) Update(ctx context.Context, owner apis.Object, existing, current []apis.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigNamesFromSpec ¶
GetConfigNamesFromSpec parses the owner object and returns two sets, the first containing the names of all referenced ConfigMaps, the second containing the names of all referenced Secrets
Types ¶
type Owner ¶
type Owner struct {
// contains filtered or unexported fields
}
Owner helps managing ownership of configMaps and secrets, which are referenced in a pod spec
func NewOwner ¶
NewOwner returns a newly initialized owner
func (Owner) ListConfigs ¶
func (r Owner) ListConfigs(ctx context.Context, namespace string, spec corev1.PodSpec) ([]apis.Object, error)
ListConfigs returns a list of all Secrets and ConfigMaps that are referenced in the pod's spec
func (Owner) ListConfigsOwnedBy ¶
ListConfigsOwnedBy returns a list of all ConfigMaps and Secrets that are owned by the instance
Source Files
¶
- owner.go
Click to show internal directories.
Click to hide internal directories.