Skip to content

Commit

Permalink
Updating TAS policy CRD to build with APIExtensions v1
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
madalazar authored and togashidm committed Nov 18, 2021
1 parent c757c09 commit a76fc35
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions telemetry-aware-scheduling/deploy/tas-policy-crd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: taspolicies.telemetry.intel.com
Expand All @@ -10,59 +10,59 @@ spec:
plural: taspolicies
singular: taspolicy
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
type: string'
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client'
type: string
metadata:
type: object
spec:
properties:
strategies:
additionalProperties:
properties:
policyName:
type: string
rules:
items:
properties:
metricname:
type: string
operator:
type: string
target:
format: int64
type: integer
required:
- metricname
- operator
type: object
type: array
required:
- rules
type: object
type: object
required:
- strategies
type: object
status:
properties:
compliance:
type: string
message:
type: string
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client'
type: string
metadata:
type: object
spec:
properties:
strategies:
additionalProperties:
properties:
policyName:
type: string
rules:
items:
properties:
metricname:
type: string
operator:
type: string
target:
format: int64
type: integer
required:
- metricname
- operator
type: object
type: array
required:
- rules
type: object
type: object
required:
- strategies
type: object
status:
properties:
compliance:
type: string
message:
type: string
type: object
subresources:
status: {}

0 comments on commit a76fc35

Please sign in to comment.