Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit a76fc35

Browse files
madalazartogashidm
authored andcommitted
Updating TAS policy CRD to build with APIExtensions v1
V1Beta1 of the APIExtensions has been deprecated in K8s/K8s scheduler v22. apiextensions.k8s.io/v1 API version has been available since v1.16 of Kubernetes.
1 parent c757c09 commit a76fc35

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed
Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: apiextensions.k8s.io/v1beta1
1+
apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
name: taspolicies.telemetry.intel.com
@@ -10,59 +10,59 @@ spec:
1010
plural: taspolicies
1111
singular: taspolicy
1212
scope: Namespaced
13-
subresources:
14-
status: {}
15-
validation:
16-
openAPIV3Schema:
17-
properties:
18-
apiVersion:
19-
description: 'APIVersion defines the versioned schema of this representation
20-
of an object. Servers should convert recognized schemas to the latest
21-
type: string'
22-
kind:
23-
description: 'Kind is a string value representing the REST resource this
24-
object represents. Servers may infer this from the endpoint the client'
25-
type: string
26-
metadata:
27-
type: object
28-
spec:
29-
properties:
30-
strategies:
31-
additionalProperties:
32-
properties:
33-
policyName:
34-
type: string
35-
rules:
36-
items:
37-
properties:
38-
metricname:
39-
type: string
40-
operator:
41-
type: string
42-
target:
43-
format: int64
44-
type: integer
45-
required:
46-
- metricname
47-
- operator
48-
type: object
49-
type: array
50-
required:
51-
- rules
52-
type: object
53-
type: object
54-
required:
55-
- strategies
56-
type: object
57-
status:
58-
properties:
59-
compliance:
60-
type: string
61-
message:
62-
type: string
63-
type: object
64-
version: v1alpha1
6513
versions:
6614
- name: v1alpha1
6715
served: true
68-
storage: true
16+
storage: true
17+
schema:
18+
openAPIV3Schema:
19+
type: object
20+
properties:
21+
apiVersion:
22+
description: 'APIVersion defines the versioned schema of this representation
23+
of an object. Servers should convert recognized schemas to the latest'
24+
type: string
25+
kind:
26+
description: 'Kind is a string value representing the REST resource this
27+
object represents. Servers may infer this from the endpoint the client'
28+
type: string
29+
metadata:
30+
type: object
31+
spec:
32+
properties:
33+
strategies:
34+
additionalProperties:
35+
properties:
36+
policyName:
37+
type: string
38+
rules:
39+
items:
40+
properties:
41+
metricname:
42+
type: string
43+
operator:
44+
type: string
45+
target:
46+
format: int64
47+
type: integer
48+
required:
49+
- metricname
50+
- operator
51+
type: object
52+
type: array
53+
required:
54+
- rules
55+
type: object
56+
type: object
57+
required:
58+
- strategies
59+
type: object
60+
status:
61+
properties:
62+
compliance:
63+
type: string
64+
message:
65+
type: string
66+
type: object
67+
subresources:
68+
status: {}

0 commit comments

Comments
 (0)