@@ -6,18 +6,18 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
66// +genclient:nonNamespaced
77// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
88
9- // Features holds cluster-wide information about feature gates. The canonical name is `cluster`
10- type Features struct {
9+ // Feature holds cluster-wide information about feature gates. The canonical name is `cluster`
10+ type FeatureGate struct {
1111 metav1.TypeMeta `json:",inline"`
1212 // Standard object's metadata.
1313 metav1.ObjectMeta `json:"metadata,omitempty"`
1414
1515 // spec holds user settable values for configuration
1616 // +required
17- Spec FeaturesSpec `json:"spec"`
17+ Spec FeatureGateSpec `json:"spec"`
1818 // status holds observed values from the cluster. They may not be overridden.
1919 // +optional
20- Status FeaturesStatus `json:"status"`
20+ Status FeatureGateStatus `json:"status"`
2121}
2222
2323type FeatureSet string
@@ -31,42 +31,42 @@ var (
3131 TechPreviewNoUpgrade FeatureSet = "TechPreviewNoUpgrade"
3232)
3333
34- type FeaturesSpec struct {
34+ type FeatureGateSpec struct {
3535 // featureSet changes the list of features in the cluster. The default is empty. Be very careful adjusting this setting.
3636 // Turning on or off features may cause irreversible changes in your cluster which cannot be undone.
3737 FeatureSet FeatureSet `json:"featureSet,omitempty"`
3838}
3939
40- type FeaturesStatus struct {
40+ type FeatureGateStatus struct {
4141}
4242
4343// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
4444
45- type FeaturesList struct {
45+ type FeatureGateList struct {
4646 metav1.TypeMeta `json:",inline"`
4747 // Standard object's metadata.
4848 metav1.ListMeta `json:"metadata"`
49- Items []Features `json:"items"`
49+ Items []FeatureGate `json:"items"`
5050}
5151
52- type FeatureEnabledDisabled struct {
52+ type FeatureGateEnabledDisabled struct {
5353 Enabled []string
5454 Disabled []string
5555}
5656
57- // FeatureSets Contains a map of Feature names to Enabled/Disabled Features .
57+ // FeatureSets Contains a map of Feature names to Enabled/Disabled Feature .
5858//
5959// NOTE: The caller needs to make sure to check for the existence of the value
6060// using golang's existence field. A possible scenario is an upgrade where new
6161// FeatureSets are added and a controller has not been upgraded with a newer
6262// version of this file. In this upgrade scenario the map could return nil.
6363//
6464// example:
65- // if featureSet, ok := FeaturesSets ["SomeNewFeature"]; ok { }
65+ // if featureSet, ok := FeatureSets ["SomeNewFeature"]; ok { }
6666//
6767// If you put an item in either of these lists, put your area and name on it so we can find owners.
68- var FeatureSets = map [FeatureSet ]* FeatureEnabledDisabled {
69- Default : & FeatureEnabledDisabled {
68+ var FeatureSets = map [FeatureSet ]* FeatureGateEnabledDisabled {
69+ Default : & FeatureGateEnabledDisabled {
7070 Enabled : []string {
7171 "ExperimentalCriticalPodAnnotation" , // sig-pod, sjenning
7272 "RotateKubeletServerCertificate" , // sig-pod, sjenning
@@ -76,7 +76,7 @@ var FeatureSets = map[FeatureSet]*FeatureEnabledDisabled{
7676 "PersistentLocalVolumes" , // sig-storage, hekumar@redhat.com
7777 },
7878 },
79- TechPreviewNoUpgrade : & FeatureEnabledDisabled {
79+ TechPreviewNoUpgrade : & FeatureGateEnabledDisabled {
8080 Enabled : []string {
8181 "ExperimentalCriticalPodAnnotation" , // sig-pod, sjenning
8282 "RotateKubeletServerCertificate" , // sig-pod, sjenning
0 commit comments