Documentation ¶
Index ¶
- func NewDefaultConfigString() string
- type APIVersionKindMatcher
- type AllResourceMatcher
- type Conf
- type Config
- type KindNamespaceNameMatcher
- type LabelScopingRule
- type OwnershipLabelRule
- type RebaseRule
- type ResourceMatcher
- type ResourceMatchers
- type TemplateAffectedObjRef
- type TemplateAffectedResources
- type TemplateRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultConfigString ¶
func NewDefaultConfigString() string
Types ¶
type APIVersionKindMatcher ¶
type AllResourceMatcher ¶
type AllResourceMatcher struct{}
type Conf ¶
type Conf struct {
// contains filtered or unexported fields
}
func NewConfFromResources ¶
func (Conf) LabelScopingMods ¶
func (c Conf) LabelScopingMods() func(kvs map[string]string) []ctlres.StringMapAppendMod
func (Conf) OwnershipLabelMods ¶
func (c Conf) OwnershipLabelMods() func(kvs map[string]string) []ctlres.StringMapAppendMod
func (Conf) RebaseMods ¶
func (c Conf) RebaseMods() []ctlres.FieldCopyMod
func (Conf) TemplateRules ¶
func (c Conf) TemplateRules() []TemplateRule
type Config ¶
type Config struct { APIVersion string `json:"apiVersion"` Kind string RebaseRules []RebaseRule OwnershipLabelRules []OwnershipLabelRule LabelScopingRules []LabelScopingRule TemplateRules []TemplateRule }
type LabelScopingRule ¶
type LabelScopingRule struct { ResourceMatchers []ResourceMatcher Path ctlres.Path }
func (LabelScopingRule) AsMods ¶
func (r LabelScopingRule) AsMods(kvs map[string]string) []ctlres.StringMapAppendMod
type OwnershipLabelRule ¶
type OwnershipLabelRule struct { ResourceMatchers []ResourceMatcher Path ctlres.Path }
func (OwnershipLabelRule) AsMods ¶
func (r OwnershipLabelRule) AsMods(kvs map[string]string) []ctlres.StringMapAppendMod
type RebaseRule ¶
type RebaseRule struct { ResourceMatchers []ResourceMatcher Path ctlres.Path // TODO Strategy string Sources []ctlres.FieldCopyModSource }
func (RebaseRule) AsMods ¶
func (r RebaseRule) AsMods() []ctlres.FieldCopyMod
type ResourceMatcher ¶
type ResourceMatcher struct { AllResourceMatcher *AllResourceMatcher // default APIVersionKindMatcher *APIVersionKindMatcher `json:"apiVersionKindMatcher"` KindNamespaceNameMatcher *KindNamespaceNameMatcher }
func (ResourceMatcher) AsResourceMatcher ¶
func (m ResourceMatcher) AsResourceMatcher() ctlres.ResourceMatcher
type ResourceMatchers ¶
type ResourceMatchers []ResourceMatcher
func (ResourceMatchers) AsResourceMatchers ¶
func (ms ResourceMatchers) AsResourceMatchers() []ctlres.ResourceMatcher
type TemplateAffectedObjRef ¶
type TemplateAffectedObjRef struct { ResourceMatchers []ResourceMatcher Path ctlres.Path }
type TemplateAffectedResources ¶
type TemplateAffectedResources struct {
ObjectReferences []TemplateAffectedObjRef
}
type TemplateRule ¶
type TemplateRule struct { ResourceMatchers []ResourceMatcher AffectedResources TemplateAffectedResources }
Click to show internal directories.
Click to hide internal directories.