X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Finfrastructure%2Fsubcharts%2Fkong%2Ftemplates%2Fcustom-resource-definitions.yaml;fp=helm%2Finfrastructure%2Fsubcharts%2Fkong%2Ftemplates%2Fcrd-kongingress.yaml;h=5f20d41b9267a850f319c8539547a8750c6174eb;hb=7a43fbd4642448783aaf708d07ca883bf9bc5afd;hp=17d4ce73d81309714b441ed658f4fd450743bbb1;hpb=282e7af25ec053ae6d1c5a399c91c2c323f705cd;p=ric-plt%2Fric-dep.git diff --git a/helm/infrastructure/subcharts/kong/templates/crd-kongingress.yaml b/helm/infrastructure/subcharts/kong/templates/custom-resource-definitions.yaml similarity index 51% rename from helm/infrastructure/subcharts/kong/templates/crd-kongingress.yaml rename to helm/infrastructure/subcharts/kong/templates/custom-resource-definitions.yaml index 17d4ce7..5f20d41 100755 --- a/helm/infrastructure/subcharts/kong/templates/crd-kongingress.yaml +++ b/helm/infrastructure/subcharts/kong/templates/custom-resource-definitions.yaml @@ -1,13 +1,146 @@ {{- if and .Values.ingressController.enabled .Values.ingressController.installCRDs -}} apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition +metadata: + name: kongconsumers.configuration.konghq.com + labels: + {{- include "kong.metaLabels" . | nindent 4 }} +spec: + group: configuration.konghq.com + version: v1 + scope: Namespaced + names: + kind: KongConsumer + plural: kongconsumers + shortNames: + - kc + additionalPrinterColumns: + - name: Username + type: string + description: Username of a Kong Consumer + JSONPath: .username + - name: Age + type: date + description: Age + JSONPath: .metadata.creationTimestamp + validation: + openAPIV3Schema: + properties: + username: + type: string + custom_id: + type: string + credentials: + type: array + items: + type: string +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + name: kongcredentials.configuration.konghq.com + labels: + {{- include "kong.metaLabels" . | nindent 4 }} +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 +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + name: kongplugins.configuration.konghq.com + labels: + {{- include "kong.metaLabels" . | nindent 4 }} +spec: + group: configuration.konghq.com + version: v1 + scope: Namespaced + names: + kind: KongPlugin + plural: kongplugins + shortNames: + - kp + additionalPrinterColumns: + - name: Plugin-Type + type: string + description: Name of the plugin + JSONPath: .plugin + - name: Age + type: date + description: Age + JSONPath: .metadata.creationTimestamp + - name: Disabled + type: boolean + description: Indicates if the plugin is disabled + JSONPath: .disabled + priority: 1 + - name: Config + type: string + description: Configuration of the plugin + JSONPath: .config + priority: 1 + validation: + openAPIV3Schema: + required: + - plugin + properties: + plugin: + type: string + disabled: + type: boolean + config: + type: object + run_on: + type: string + enum: + - first + - second + - all + protocols: + type: array + items: + type: string + enum: + - http + - https + - tcp + - tls + - grpc + - grpcs +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition metadata: name: kongingresses.configuration.konghq.com labels: - app: {{ template "kong.name" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" + {{- include "kong.metaLabels" . | nindent 4 }} spec: group: configuration.konghq.com version: v1 @@ -20,14 +153,18 @@ spec: validation: openAPIV3Schema: properties: - upstream: - type: object route: properties: methods: type: array items: type: string + headers: + type: object + additionalProperties: + type: array + items: + type: string regex_priority: type: integer strip_path: @@ -41,6 +178,10 @@ spec: enum: - http - https + - grpc + - grpcs + https_redirect_status_code: + type: integer proxy: type: object properties: @@ -49,6 +190,8 @@ spec: enum: - http - https + - grpc + - grpcs path: type: string pattern: ^/.*$ @@ -67,6 +210,14 @@ spec: upstream: type: object properties: + algorithm: + type: string + enum: + - "round-robin" + - "consistent-hashing" + - "least-connections" + host_header: + type: string hash_on: type: string hash_on_cookie: