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:
yxxhero
2025-03-30 19:24:41 -04:00
committed by GitHub
parent 7f44408541
commit e4273d050e
18 changed files with 251 additions and 80 deletions
+6
View File
@@ -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
}
+6
View File
@@ -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
}