Skip to content

Commit

Permalink
Tailoredprofile auto migration
Browse files Browse the repository at this point in the history
This commit adds the ability to auto migrate tailoredprofile, it will remove all deprecated rules/variables also remove migrated rules from certain profiles, we will issue anywarning when it happens.
  • Loading branch information
Vincent056 committed Sep 12, 2023
1 parent dcd2c5d commit 66a2bc6
Show file tree
Hide file tree
Showing 5 changed files with 517 additions and 28 deletions.
6 changes: 6 additions & 0 deletions pkg/apis/compliance/v1alpha1/tailoredprofile_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ const OutdatedReferenceValidationDisable = "compliance.openshift.io/outdated-ref
// RuleLastCheckTypeChangedAnnotationKey is the annotation key used to indicate that the rule check type has changed, store its previous check type
const RuleLastCheckTypeChangedAnnotationKey = "compliance.openshift.io/rule-last-check-type"

// VariableDeprecatedAnnotationKey is the annotation key used to indicate that the variable is deprecated
const VariableDeprecatedAnnotationKey = "compliance.openshift.io/variable-deprecated"

// RulesDeprecatedAnnotationKey is the annotation key used to indicate that the rule is deprecated
const RulesDeprecatedAnnotationKey = "compliance.openshift.io/rule-deprecated"

// RuleReferenceSpec specifies a rule to be selected/deselected, as well as the reason why
type RuleReferenceSpec struct {
// Name of the rule that's being referenced
Expand Down
Loading

0 comments on commit 66a2bc6

Please sign in to comment.