mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 06:12:09 +02:00
feat: add labels for helm release (#1046)
feat: add labels for k8s resources Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
@@ -71,6 +71,8 @@ type ApplyOptions struct {
|
||||
|
||||
// TakeOwnership is true if the ownership should be taken
|
||||
TakeOwnership bool
|
||||
|
||||
SyncReleaseLabels bool
|
||||
}
|
||||
|
||||
// NewApply creates a new Apply
|
||||
@@ -266,3 +268,7 @@ func (a *ApplyImpl) HideNotes() bool {
|
||||
func (a *ApplyImpl) TakeOwnership() bool {
|
||||
return a.ApplyOptions.TakeOwnership
|
||||
}
|
||||
|
||||
func (a *ApplyImpl) SyncReleaseLabels() bool {
|
||||
return a.ApplyOptions.SyncReleaseLabels
|
||||
}
|
||||
|
||||
@@ -42,6 +42,8 @@ type SyncOptions struct {
|
||||
HideNotes bool
|
||||
// TakeOwnership is the take ownership flag
|
||||
TakeOwnership bool
|
||||
// SyncReleaseLabels is the sync release labels flag
|
||||
SyncReleaseLabels bool
|
||||
}
|
||||
|
||||
// NewSyncOptions creates a new Apply
|
||||
@@ -167,3 +169,7 @@ func (t *SyncImpl) HideNotes() bool {
|
||||
func (t *SyncImpl) TakeOwnership() bool {
|
||||
return t.SyncOptions.TakeOwnership
|
||||
}
|
||||
|
||||
func (t *SyncImpl) SyncReleaseLabels() bool {
|
||||
return t.SyncOptions.SyncReleaseLabels
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user