add comments

This commit is contained in:
jingfangliu 2019-06-11 09:11:10 -07:00
parent a9fab7c07d
commit fdb11170a0
1 changed files with 19 additions and 0 deletions

View File

@ -18,6 +18,25 @@ package constants
const (
Presence = "kubectl.kubernetes.io/presence"
// Any resource with the annotation
// kubectl.kubernetes.io/presence: EnsureExist
// will not be pruned or deleted.
//
// It following effect in each command
// - no effect in apply
// - prune skips this resource
// - delete skips this resource
EnsureExist = "EnsureExist"
// Any resource with the annotation
// kubectl.kubernetes.io/presence: EnsureDoesNotExist
// Will be deleted or skipped in apply.
//
// It has following effect in each command
// - the resource is skipped in apply
// - the resource is deleted in prune
// - the resource is deleted in delete
EnsureNoExist = "EnsureDoesNotExist"
)