Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

add capability test to apiVersion apiextensions.k8s.io/v1 on CRD #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions charts/k8s-cloudwatch-adapter-crd/templates/crd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{{- if .Capabilities.APIVersions.Has "apiextensions.k8s.io/v1" }}
apiVersion: apiextensions.k8s.io/v1
{{- else }}
apiVersion: apiextensions.k8s.io/v1beta1
{{- end }}

kind: CustomResourceDefinition
metadata:
name: externalmetrics.metrics.aws
Expand Down