Documentation ¶
Index ¶
- func NewDefaultConfigString() string
- type APIVersionKindMatcher
- type AllResourceMatcher
- type Conf
- func (c Conf) AdditionalLabels() map[string]string
- func (c Conf) DiffAgainstLastAppliedFieldExclusionMods() []ctlres.FieldRemoveMod
- func (c Conf) LabelScopingMods() func(kvs map[string]string) []ctlres.StringMapAppendMod
- func (c Conf) OwnershipLabelMods() func(kvs map[string]string) []ctlres.StringMapAppendMod
- func (c Conf) RebaseMods() []ctlres.ResourceModWithMultiple
- func (c Conf) TemplateRules() []TemplateRule
- type Config
- type DiffAgainstLastAppliedFieldExclusionRule
- 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) AdditionalLabels ¶ added in v0.6.0
func (Conf) DiffAgainstLastAppliedFieldExclusionMods ¶ added in v0.14.0
func (c Conf) DiffAgainstLastAppliedFieldExclusionMods() []ctlres.FieldRemoveMod
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.ResourceModWithMultiple
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 AdditionalLabels map[string]string DiffAgainstLastAppliedFieldExclusionRules []DiffAgainstLastAppliedFieldExclusionRule }
type DiffAgainstLastAppliedFieldExclusionRule ¶ added in v0.14.0
type DiffAgainstLastAppliedFieldExclusionRule struct { ResourceMatchers []ResourceMatcher Path ctlres.Path }
func (DiffAgainstLastAppliedFieldExclusionRule) AsMods ¶ added in v0.14.0
func (r DiffAgainstLastAppliedFieldExclusionRule) AsMods() []ctlres.FieldRemoveMod
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 Type string Sources []ctlres.FieldCopyModSource }
func (RebaseRule) AsMods ¶
func (r RebaseRule) AsMods() []ctlres.ResourceModWithMultiple
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 NameKey string `json:"nameKey"` }
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.