add the forked kong subcharts to avoid helm update
[it/dep.git] / ric-platform / 50-RIC-Platform / helm / kong / charts / kong / templates / crd-kongcredential.yaml
diff --git a/ric-platform/50-RIC-Platform/helm/kong/charts/kong/templates/crd-kongcredential.yaml b/ric-platform/50-RIC-Platform/helm/kong/charts/kong/templates/crd-kongcredential.yaml
new file mode 100755 (executable)
index 0000000..d442157
--- /dev/null
@@ -0,0 +1,41 @@
+{{- if and .Values.ingressController.enabled .Values.ingressController.installCRDs -}}
+apiVersion: apiextensions.k8s.io/v1beta1
+kind: CustomResourceDefinition
+metadata:
+  name: kongcredentials.configuration.konghq.com
+  labels:
+    app: {{ template "kong.name" . }}
+    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+    release: "{{ .Release.Name }}"
+    heritage: "{{ .Release.Service }}"
+spec:
+  group: configuration.konghq.com
+  version: v1
+  scope: Namespaced
+  names:
+    kind: KongCredential
+    plural: kongcredentials
+  additionalPrinterColumns:
+  - name: Credential-type
+    type: string
+    description: Type of credential
+    JSONPath: .type
+  - name: Age
+    type: date
+    description: Age
+    JSONPath: .metadata.creationTimestamp
+  - name: Consumer-Ref
+    type: string
+    description: Owner of the credential
+    JSONPath: .consumerRef
+  validation:
+    openAPIV3Schema:
+      required:
+      - consumerRef
+      - type
+      properties:
+        consumerRef:
+          type: string
+        type:
+          type: string
+{{- end -}}