Skip to content

Commit 382cf5b

Browse files
committed
upgrade feature and featuregates CRD to v1
Signed-off-by: Harish Yayi <yharish991@gmail.com>
1 parent d70073f commit 382cf5b

File tree

4 files changed

+206
-202
lines changed

4 files changed

+206
-202
lines changed

config/crd/patches/cainjection_in_featuregates.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The following patch adds a directive for certmanager to inject CA into the CRD
22
# CRD conversion requires k8s 1.13 or later.
3-
apiVersion: apiextensions.k8s.io/v1beta1
3+
apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:

config/crd/patches/webhook_in_featuregates.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The following patch enables conversion webhook for CRD
22
# CRD conversion requires k8s 1.13 or later.
3-
apiVersion: apiextensions.k8s.io/v1beta1
3+
apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
name: featuregates.config.tanzu.vmware.com
Lines changed: 76 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,96 @@
1-
apiVersion: apiextensions.k8s.io/v1beta1
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
23
kind: CustomResourceDefinition
34
metadata:
45
annotations:
5-
controller-gen.kubebuilder.io/version: v0.2.5
6+
controller-gen.kubebuilder.io/version: v0.7.0
7+
creationTimestamp: null
68
name: features.config.tanzu.vmware.com
79
spec:
8-
additionalPrinterColumns:
9-
- JSONPath: .spec.activated
10-
name: Activated
11-
type: boolean
12-
- JSONPath: .spec.description
13-
name: Description
14-
type: string
15-
- JSONPath: .spec.immutable
16-
name: Immutable
17-
type: boolean
18-
- JSONPath: .spec.maturity
19-
name: Maturity
20-
type: string
2110
group: config.tanzu.vmware.com
2211
names:
2312
kind: Feature
2413
listKind: FeatureList
2514
plural: features
2615
singular: feature
2716
scope: Cluster
28-
subresources: {}
29-
validation:
30-
openAPIV3Schema:
31-
description: Feature is the Schema for the features API
32-
properties:
33-
apiVersion:
34-
description: 'APIVersion defines the versioned schema of this representation
35-
of an object. Servers should convert recognized schemas to the latest
36-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
17+
versions:
18+
- additionalPrinterColumns:
19+
- jsonPath: .spec.activated
20+
name: Activated
21+
type: boolean
22+
- jsonPath: .spec.description
23+
name: Description
3724
type: string
38-
kind:
39-
description: 'Kind is a string value representing the REST resource this
40-
object represents. Servers may infer this from the endpoint the client
41-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
25+
- jsonPath: .spec.immutable
26+
name: Immutable
27+
type: boolean
28+
- jsonPath: .spec.maturity
29+
name: Maturity
4230
type: string
43-
metadata:
44-
type: object
45-
spec:
46-
description: FeatureSpec defines the desired state of Feature
31+
name: v1alpha1
32+
schema:
33+
openAPIV3Schema:
34+
description: Feature is the Schema for the features API
4735
properties:
48-
activated:
49-
description: Activated defines the default state of the features activation
50-
type: boolean
51-
description:
52-
description: Description of the feature.
36+
apiVersion:
37+
description: 'APIVersion defines the versioned schema of this representation
38+
of an object. Servers should convert recognized schemas to the latest
39+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
5340
type: string
54-
discoverable:
55-
description: Discoverable indicates if clients should include consider
56-
the Feature available for their use Allowing clients to control discoverability
57-
is one of the ways the API allows gradual rollout of functionality
58-
type: boolean
59-
immutable:
60-
description: Immutable indicates this feature cannot be toggled once
61-
set If set at creation time, this state will persist for the life
62-
of the cluster
63-
type: boolean
64-
maturity:
65-
description: 'Maturity indicates maturity level of this feature. Maturity
66-
levels are Dev, Alpha, Beta, GA and Deprecated. - dev: the default
67-
for new resources, represents local dev. intended to be hidden and
68-
deactivated - alpha: the first milestone meant for limited wider consumption,
69-
discoverable and defaults to deactivated - beta: greater visibility
70-
for proven designs, discoverable and defaults to activated - ga: intended
71-
to be part of the mainline codebase, non-optional - deprecated: destined
72-
for future removal'
73-
enum:
74-
- dev
75-
- alpha
76-
- beta
77-
- ga
78-
- deprecated
41+
kind:
42+
description: 'Kind is a string value representing the REST resource this
43+
object represents. Servers may infer this from the endpoint the client
44+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
7945
type: string
80-
required:
81-
- activated
82-
- discoverable
83-
- immutable
84-
- maturity
46+
metadata:
47+
type: object
48+
spec:
49+
description: FeatureSpec defines the desired state of Feature
50+
properties:
51+
activated:
52+
description: Activated defines the default state of the features activation
53+
type: boolean
54+
description:
55+
description: Description of the feature.
56+
type: string
57+
discoverable:
58+
description: Discoverable indicates if clients should include consider
59+
the Feature available for their use Allowing clients to control
60+
discoverability is one of the ways the API allows gradual rollout
61+
of functionality
62+
type: boolean
63+
immutable:
64+
description: Immutable indicates this feature cannot be toggled once
65+
set If set at creation time, this state will persist for the life
66+
of the cluster
67+
type: boolean
68+
maturity:
69+
description: 'Maturity indicates maturity level of this feature. Maturity
70+
levels are Dev, Alpha, Beta, GA and Deprecated. - dev: the default
71+
for new resources, represents local dev. intended to be hidden and
72+
deactivated - alpha: the first milestone meant for limited wider
73+
consumption, discoverable and defaults to deactivated - beta: greater
74+
visibility for proven designs, discoverable and defaults to activated
75+
- ga: intended to be part of the mainline codebase, non-optional
76+
- deprecated: destined for future removal'
77+
enum:
78+
- dev
79+
- alpha
80+
- beta
81+
- ga
82+
- deprecated
83+
type: string
84+
required:
85+
- activated
86+
- discoverable
87+
- immutable
88+
- maturity
89+
type: object
90+
status:
91+
description: FeatureStatus defines the observed state of Feature
92+
type: object
8593
type: object
86-
status:
87-
description: FeatureStatus defines the observed state of Feature
88-
type: object
89-
type: object
90-
version: v1alpha1
91-
versions:
92-
- name: v1alpha1
9394
served: true
9495
storage: true
96+
subresources: {}

0 commit comments

Comments
 (0)