mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-19 12:36:39 +00:00
feat: upstream enterprise preview --------- Signed-off-by: Oliver Baehler <oliver@sudo-i.net> Co-authored-by: CorentinPtrl <pitrel.corentin@gmail.com>
27 lines
615 B
Go
27 lines
615 B
Go
// Copyright 2020-2026 Project Capsule Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package sanitize
|
|
|
|
type SanitizeOptions struct {
|
|
StripResourceVersion bool
|
|
StripOwnerreferences bool
|
|
StripGeneration bool
|
|
StripUID bool
|
|
StripManagedFields bool
|
|
StripLastApplied bool
|
|
StripStatus bool
|
|
}
|
|
|
|
func DefaultSanitizeOptions() SanitizeOptions {
|
|
return SanitizeOptions{
|
|
StripResourceVersion: true,
|
|
StripOwnerreferences: true,
|
|
StripGeneration: true,
|
|
StripUID: true,
|
|
StripManagedFields: true,
|
|
StripLastApplied: true,
|
|
StripStatus: true,
|
|
}
|
|
}
|