X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-infra%2F30-Kong%2Fhelm%2Fkong%2Fcharts%2Fkong%2Ftemplates%2Fcrd-kongingress.yaml;fp=ric-infra%2F30-Kong%2Fhelm%2Fkong%2Fcharts%2Fkong%2Ftemplates%2Fcrd-kongingress.yaml;h=17d4ce73d81309714b441ed658f4fd450743bbb1;hb=adbdd09e7300845d14107f67034d817286519a40;hp=0000000000000000000000000000000000000000;hpb=67e464c5c70457e37681d96baa79c36b4b26eb3d;p=it%2Fdep.git diff --git a/ric-infra/30-Kong/helm/kong/charts/kong/templates/crd-kongingress.yaml b/ric-infra/30-Kong/helm/kong/charts/kong/templates/crd-kongingress.yaml new file mode 100755 index 00000000..17d4ce73 --- /dev/null +++ b/ric-infra/30-Kong/helm/kong/charts/kong/templates/crd-kongingress.yaml @@ -0,0 +1,137 @@ +{{- if and .Values.ingressController.enabled .Values.ingressController.installCRDs -}} +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 }}" +spec: + group: configuration.konghq.com + version: v1 + scope: Namespaced + names: + kind: KongIngress + plural: kongingresses + shortNames: + - ki + validation: + openAPIV3Schema: + properties: + upstream: + type: object + route: + properties: + methods: + type: array + items: + type: string + regex_priority: + type: integer + strip_path: + type: boolean + preserve_host: + type: boolean + protocols: + type: array + items: + type: string + enum: + - http + - https + proxy: + type: object + properties: + protocol: + type: string + enum: + - http + - https + path: + type: string + pattern: ^/.*$ + retries: + type: integer + minimum: 0 + connect_timeout: + type: integer + minimum: 0 + read_timeout: + type: integer + minimum: 0 + write_timeout: + type: integer + minimum: 0 + upstream: + type: object + properties: + hash_on: + type: string + hash_on_cookie: + type: string + hash_on_cookie_path: + type: string + hash_on_header: + type: string + hash_fallback_header: + type: string + hash_fallback: + type: string + slots: + type: integer + minimum: 10 + healthchecks: + type: object + properties: + active: + type: object + properties: + concurrency: + type: integer + minimum: 1 + timeout: + type: integer + minimum: 0 + http_path: + type: string + pattern: ^/.*$ + healthy: &healthy + type: object + properties: + http_statuses: + type: array + items: + type: integer + interval: + type: integer + minimum: 0 + successes: + type: integer + minimum: 0 + unhealthy: &unhealthy + type: object + properties: + http_failures: + type: integer + minimum: 0 + http_statuses: + type: array + items: + type: integer + interval: + type: integer + minimum: 0 + tcp_failures: + type: integer + minimum: 0 + timeout: + type: integer + minimum: 0 + passive: + type: object + properties: + healthy: *healthy + unhealthy: *unhealthy +{{- end -}}