Skip to content

Commit

Permalink
Merge pull request #114 from stbenjam/feature-gates
Browse files Browse the repository at this point in the history
TRT-1582: Make feature gates a capability
  • Loading branch information
openshift-merge-bot[bot] authored Apr 9, 2024
2 parents 517c28c + f3aa1a0 commit 94f2dfc
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 @@ -120094,7 +120094,7 @@
"StaffApprovedObsolete": false,
"Component": "kube-apiserver",
"Capabilities": [
"Other"
"FeatureGate:ValidatingAdmissionPolicy"
],
"JIRAComponent": "kube-apiserver",
"JIRAComponentID": 12367637
Expand All @@ -120110,7 +120110,7 @@
"StaffApprovedObsolete": false,
"Component": "kube-apiserver",
"Capabilities": [
"Other"
"FeatureGate:ValidatingAdmissionPolicy"
],
"JIRAComponent": "kube-apiserver",
"JIRAComponentID": 12367637
Expand All @@ -120126,7 +120126,7 @@
"StaffApprovedObsolete": false,
"Component": "kube-apiserver",
"Capabilities": [
"Other"
"FeatureGate:ValidatingAdmissionPolicy"
],
"JIRAComponent": "kube-apiserver",
"JIRAComponentID": 12367637
Expand All @@ -120142,7 +120142,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 94f2dfc

Please sign in to comment.