Skip to content

Commit

Permalink
[kong] update CRDs for Ingress Controller 0.8 release
Browse files Browse the repository at this point in the history
Kong Ingress Controller 0.8 add two new CRDs: TCPIngress and
KongClusterPlugin.
`tcp` and `tls` are now supported protocols and they are added in here
as well.
  • Loading branch information
hbagdi authored and rainest committed Mar 25, 2020
1 parent 53dacd9 commit aa8d19e
Showing 1 changed file with 137 additions and 0 deletions.
137 changes: 137 additions & 0 deletions charts/kong/crds/custom-resource-definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,67 @@ spec:
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: kongclusterplugins.configuration.konghq.com
spec:
group: configuration.konghq.com
version: v1
scope: Cluster
names:
kind: KongClusterPlugin
plural: kongclusterplugins
shortNames:
- kcp
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
- grpc
- grpcs
- tcp
- tls
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: kongingresses.configuration.konghq.com
spec:
Expand Down Expand Up @@ -171,6 +232,8 @@ spec:
- https
- grpc
- grpcs
- tcp
- tls
https_redirect_status_code:
type: integer
proxy:
Expand All @@ -183,6 +246,8 @@ spec:
- https
- grpc
- grpcs
- tcp
- tls
path:
type: string
pattern: ^/.*$
Expand Down Expand Up @@ -276,3 +341,75 @@ spec:
properties:
healthy: *healthy
unhealthy: *unhealthy
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: tcpingresses.configuration.konghq.com
spec:
group: configuration.konghq.com
version: v1beta1
scope: Namespaced
names:
kind: TCPIngress
plural: tcpingresses
additionalPrinterColumns:
- name: Address
type: string
description: Address of the load balancer
JSONPath: .status.loadBalancer.ingress[*].ip
- name: Age
type: date
description: Age
JSONPath: .metadata.creationTimestamp
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
type: object
properties:
tls:
type: array
items:
type: object
properties:
hosts:
type: array
items:
type: string
secretName:
type: string
rules:
type: array
items:
type: object
properties:
host:
type: string
port:
type: integer
format: int32
backend:
type: object
properties:
serviceName:
type: string
servicePort:
format: int32
type: integer
status:
type: object
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

0 comments on commit aa8d19e

Please sign in to comment.