Skip to content

Commit

Permalink
update generated
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Mar 11, 2024
1 parent dc110cc commit 68c8c83
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 232 deletions.
1 change: 1 addition & 0 deletions config/v1/feature_gates.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func (b *featureGateBuilder) register() (FeatureGateName, error) {
OwningProduct: b.owningProduct,
}

// statusByClusterProfileByFeatureSet is initialized by constructor to be false for every combination
for clusterProfile, byFeatureSet := range b.statusByClusterProfileByFeatureSet {
for featureSet, enabled := range byFeatureSet {
if _, ok := allFeatureGates[clusterProfile]; !ok {
Expand Down
63 changes: 43 additions & 20 deletions openapi/generated_openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 29 additions & 14 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -10692,25 +10692,40 @@
}
}
},
"com.github.openshift.api.config.v1.featureSetBuilder": {
"com.github.openshift.api.config.v1.featureGateBuilder": {
"type": "object",
"required": [
"forceOn",
"forceOff"
"name",
"owningJiraComponent",
"responsiblePerson",
"owningProduct",
"statusByClusterProfileByFeatureSet"
],
"properties": {
"forceOff": {
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/com.github.openshift.api.config.v1.FeatureGateDescription"
}
"name": {
"type": "string",
"default": ""
},
"forceOn": {
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/com.github.openshift.api.config.v1.FeatureGateDescription"
"owningJiraComponent": {
"type": "string",
"default": ""
},
"owningProduct": {
"type": "string",
"default": ""
},
"responsiblePerson": {
"type": "string",
"default": ""
},
"statusByClusterProfileByFeatureSet": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": {
"type": "boolean",
"default": false
}
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions payload-command/render/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ func (o *RenderOpts) Run() error {
if err != nil {
return fmt.Errorf("error converting FeatureGate: %w", err)
}
if featureGates.Annotations == nil {
featureGates.Annotations = map[string]string{}
}

// if the manifest has cluster profiles specified, the manifest's list must include the configured clusterprofile.
manifestClusterProfiles := clusterProfilesFrom(featureGates.Annotations)
Expand Down
20 changes: 0 additions & 20 deletions payload-manifests/featuregates/featureGate-CustomNoUpgrade.yaml

This file was deleted.

178 changes: 0 additions & 178 deletions payload-manifests/featuregates/featureGate-LatencySensitive.yaml

This file was deleted.

0 comments on commit 68c8c83

Please sign in to comment.