-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add generated featuregate files inertly to payloads
This will allow payload inspect tools to report which features have been created and promoted between various levels. This means we cannot remove featuregates for at least a release after their introduction.
- Loading branch information
Showing
9 changed files
with
494 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
source "$(dirname "${BASH_SOURCE}")/lib/init.sh" | ||
|
||
go run --mod=vendor -trimpath github.com/openshift/api/payload-command/cmd/write-available-featuresets --asset-output-dir=./payload-manifests/featuregates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
source "$(dirname "${BASH_SOURCE}")/lib/init.sh" | ||
|
||
VERIFY_DIR=$(mktemp -d -t featuregates-verify-XXXXXX) | ||
|
||
go run --mod=vendor -trimpath github.com/openshift/api/payload-command/cmd/write-available-featuresets --asset-output-dir="${VERIFY_DIR}" | ||
|
||
diff -r "${VERIFY_DIR}" ./payload-manifests/featuregates | ||
|
||
rm -rf "${VERIFY_DIR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
payload-manifests/featuregates/featureGate-CustomNoUpgrade.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"apiVersion": "config.openshift.io/v1", | ||
"kind": "FeatureGate", | ||
"metadata": { | ||
"creationTimestamp": null, | ||
"name": "cluster" | ||
}, | ||
"spec": { | ||
"featureSet": "CustomNoUpgrade" | ||
}, | ||
"status": { | ||
"featureGates": [ | ||
{ | ||
"disabled": null, | ||
"enabled": null, | ||
"version": "" | ||
} | ||
] | ||
} | ||
} |
143 changes: 143 additions & 0 deletions
143
payload-manifests/featuregates/featureGate-Default.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
{ | ||
"apiVersion": "config.openshift.io/v1", | ||
"kind": "FeatureGate", | ||
"metadata": { | ||
"creationTimestamp": null, | ||
"name": "cluster" | ||
}, | ||
"spec": {}, | ||
"status": { | ||
"featureGates": [ | ||
{ | ||
"disabled": [ | ||
{ | ||
"name": "AdminNetworkPolicy" | ||
}, | ||
{ | ||
"name": "AutomatedEtcdBackup" | ||
}, | ||
{ | ||
"name": "CSIDriverSharedResource" | ||
}, | ||
{ | ||
"name": "ClusterAPIInstall" | ||
}, | ||
{ | ||
"name": "DNSNameResolver" | ||
}, | ||
{ | ||
"name": "DisableKubeletCloudCredentialProviders" | ||
}, | ||
{ | ||
"name": "DynamicResourceAllocation" | ||
}, | ||
{ | ||
"name": "EventedPLEG" | ||
}, | ||
{ | ||
"name": "GCPClusterHostedDNS" | ||
}, | ||
{ | ||
"name": "GCPLabelsTags" | ||
}, | ||
{ | ||
"name": "GatewayAPI" | ||
}, | ||
{ | ||
"name": "InsightsConfigAPI" | ||
}, | ||
{ | ||
"name": "InstallAlternateInfrastructureAWS" | ||
}, | ||
{ | ||
"name": "MachineAPIOperatorDisableMachineHealthCheckController" | ||
}, | ||
{ | ||
"name": "MachineAPIProviderOpenStack" | ||
}, | ||
{ | ||
"name": "MachineConfigNodes" | ||
}, | ||
{ | ||
"name": "ManagedBootImages" | ||
}, | ||
{ | ||
"name": "MaxUnavailableStatefulSet" | ||
}, | ||
{ | ||
"name": "MetricsServer" | ||
}, | ||
{ | ||
"name": "MixedCPUsAllocation" | ||
}, | ||
{ | ||
"name": "NetworkLiveMigration" | ||
}, | ||
{ | ||
"name": "NodeSwap" | ||
}, | ||
{ | ||
"name": "OnClusterBuild" | ||
}, | ||
{ | ||
"name": "PinnedImages" | ||
}, | ||
{ | ||
"name": "RouteExternalCertificate" | ||
}, | ||
{ | ||
"name": "SignatureStores" | ||
}, | ||
{ | ||
"name": "SigstoreImageVerification" | ||
}, | ||
{ | ||
"name": "VSphereControlPlaneMachineSet" | ||
}, | ||
{ | ||
"name": "VSphereStaticIPs" | ||
}, | ||
{ | ||
"name": "ValidatingAdmissionPolicy" | ||
} | ||
], | ||
"enabled": [ | ||
{ | ||
"name": "AlibabaPlatform" | ||
}, | ||
{ | ||
"name": "AzureWorkloadIdentity" | ||
}, | ||
{ | ||
"name": "BuildCSIVolumes" | ||
}, | ||
{ | ||
"name": "CloudDualStackNodeIPs" | ||
}, | ||
{ | ||
"name": "ExternalCloudProvider" | ||
}, | ||
{ | ||
"name": "ExternalCloudProviderAzure" | ||
}, | ||
{ | ||
"name": "ExternalCloudProviderExternal" | ||
}, | ||
{ | ||
"name": "ExternalCloudProviderGCP" | ||
}, | ||
{ | ||
"name": "KMSv1" | ||
}, | ||
{ | ||
"name": "OpenShiftPodSecurityAdmission" | ||
}, | ||
{ | ||
"name": "PrivateHostedZoneAWS" | ||
} | ||
], | ||
"version": "" | ||
} | ||
] | ||
} | ||
} |
145 changes: 145 additions & 0 deletions
145
payload-manifests/featuregates/featureGate-LatencySensitive.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
{ | ||
"apiVersion": "config.openshift.io/v1", | ||
"kind": "FeatureGate", | ||
"metadata": { | ||
"creationTimestamp": null, | ||
"name": "cluster" | ||
}, | ||
"spec": { | ||
"featureSet": "LatencySensitive" | ||
}, | ||
"status": { | ||
"featureGates": [ | ||
{ | ||
"disabled": [ | ||
{ | ||
"name": "AdminNetworkPolicy" | ||
}, | ||
{ | ||
"name": "AutomatedEtcdBackup" | ||
}, | ||
{ | ||
"name": "CSIDriverSharedResource" | ||
}, | ||
{ | ||
"name": "ClusterAPIInstall" | ||
}, | ||
{ | ||
"name": "DNSNameResolver" | ||
}, | ||
{ | ||
"name": "DisableKubeletCloudCredentialProviders" | ||
}, | ||
{ | ||
"name": "DynamicResourceAllocation" | ||
}, | ||
{ | ||
"name": "EventedPLEG" | ||
}, | ||
{ | ||
"name": "GCPClusterHostedDNS" | ||
}, | ||
{ | ||
"name": "GCPLabelsTags" | ||
}, | ||
{ | ||
"name": "GatewayAPI" | ||
}, | ||
{ | ||
"name": "InsightsConfigAPI" | ||
}, | ||
{ | ||
"name": "InstallAlternateInfrastructureAWS" | ||
}, | ||
{ | ||
"name": "MachineAPIOperatorDisableMachineHealthCheckController" | ||
}, | ||
{ | ||
"name": "MachineAPIProviderOpenStack" | ||
}, | ||
{ | ||
"name": "MachineConfigNodes" | ||
}, | ||
{ | ||
"name": "ManagedBootImages" | ||
}, | ||
{ | ||
"name": "MaxUnavailableStatefulSet" | ||
}, | ||
{ | ||
"name": "MetricsServer" | ||
}, | ||
{ | ||
"name": "MixedCPUsAllocation" | ||
}, | ||
{ | ||
"name": "NetworkLiveMigration" | ||
}, | ||
{ | ||
"name": "NodeSwap" | ||
}, | ||
{ | ||
"name": "OnClusterBuild" | ||
}, | ||
{ | ||
"name": "PinnedImages" | ||
}, | ||
{ | ||
"name": "RouteExternalCertificate" | ||
}, | ||
{ | ||
"name": "SignatureStores" | ||
}, | ||
{ | ||
"name": "SigstoreImageVerification" | ||
}, | ||
{ | ||
"name": "VSphereControlPlaneMachineSet" | ||
}, | ||
{ | ||
"name": "VSphereStaticIPs" | ||
}, | ||
{ | ||
"name": "ValidatingAdmissionPolicy" | ||
} | ||
], | ||
"enabled": [ | ||
{ | ||
"name": "AlibabaPlatform" | ||
}, | ||
{ | ||
"name": "AzureWorkloadIdentity" | ||
}, | ||
{ | ||
"name": "BuildCSIVolumes" | ||
}, | ||
{ | ||
"name": "CloudDualStackNodeIPs" | ||
}, | ||
{ | ||
"name": "ExternalCloudProvider" | ||
}, | ||
{ | ||
"name": "ExternalCloudProviderAzure" | ||
}, | ||
{ | ||
"name": "ExternalCloudProviderExternal" | ||
}, | ||
{ | ||
"name": "ExternalCloudProviderGCP" | ||
}, | ||
{ | ||
"name": "KMSv1" | ||
}, | ||
{ | ||
"name": "OpenShiftPodSecurityAdmission" | ||
}, | ||
{ | ||
"name": "PrivateHostedZoneAWS" | ||
} | ||
], | ||
"version": "" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.