Skip to content

Commit

Permalink
Make feature gates a capability
Browse files Browse the repository at this point in the history
This makes OCPFeatureGate and FeatureGate a capability.
  • Loading branch information
stbenjam committed Apr 8, 2024
1 parent d26f758 commit f3aa1a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -119518,7 +119518,7 @@
"StaffApprovedObsolete": false,
"Component": "kube-apiserver",
"Capabilities": [
"Other"
"FeatureGate:ValidatingAdmissionPolicy"
],
"JIRAComponent": "kube-apiserver",
"JIRAComponentID": 12367637
Expand All @@ -119534,7 +119534,7 @@
"StaffApprovedObsolete": false,
"Component": "kube-apiserver",
"Capabilities": [
"Other"
"FeatureGate:ValidatingAdmissionPolicy"
],
"JIRAComponent": "kube-apiserver",
"JIRAComponentID": 12367637
Expand All @@ -119550,7 +119550,7 @@
"StaffApprovedObsolete": false,
"Component": "kube-apiserver",
"Capabilities": [
"Other"
"FeatureGate:ValidatingAdmissionPolicy"
],
"JIRAComponent": "kube-apiserver",
"JIRAComponentID": 12367637
Expand All @@ -119566,7 +119566,7 @@
"StaffApprovedObsolete": false,
"Component": "kube-apiserver",
"Capabilities": [
"Other"
"FeatureGate:ValidatingAdmissionPolicy"
],
"JIRAComponent": "kube-apiserver",
"JIRAComponentID": 12367637
Expand Down
8 changes: 8 additions & 0 deletions pkg/util/test_identification.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ func DefaultCapabilities(test *v1.TestInfo) []string {
// Get the Feature name from the test name as a capability
capabilities = append(capabilities, ExtractTestField(test.Name, "Feature")...)

for _, featureGate := range ExtractTestField(test.Name, "FeatureGate") {
capabilities = append(capabilities, fmt.Sprintf("FeatureGate:%s", featureGate))
}

for _, featureGate := range ExtractTestField(test.Name, "OCPFeatureGate") {
capabilities = append(capabilities, fmt.Sprintf("OCPFeatureGate:%s", featureGate))
}

if strings.Contains(test.Name, "clusteroperator/") {
capabilities = append(capabilities, "Operator")
}
Expand Down

0 comments on commit f3aa1a0

Please sign in to comment.