Update CRD for IngressOperator
Fixes:
@@ -5,7 +5,8 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
- controller-gen.kubebuilder.io/version: (unknown)
+ controller-gen.kubebuilder.io/version: v0.4.0
+ creationTimestamp: null
name: functioningresses.openfaas.com
spec:
group: openfaas.com
@@ -15,9 +16,14 @@ spec:
plural: functioningresses
singular: functioningress
scope: Namespaced
- validation:
+ versions:
+ - name: v1alpha2
+ schema:
openAPIV3Schema:
description: FunctionIngress describes an OpenFaaS function
+ type: object
+ required:
+ - spec
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
@@ -34,6 +40,10 @@ spec:
spec:
description: FunctionIngressSpec is the spec for a FunctionIngress resource.
It must be created in the same namespace as the gateway, i.e. openfaas.
+ type: object
+ required:
+ - domain
+ - function
properties:
bypassGateway:
description: BypassGateway, when true creates an Ingress record directly
@@ -49,42 +59,34 @@ spec:
description: IngressType such as "nginx"
type: string
path:
- description: Path such as "/v1/profiles/view/(.*)", or leave empty for
- default
+ description: Path such as "/v1/profiles/view/(.*)", or leave empty
+ for default
type: string
tls:
description: Enable TLS via cert-manager
+ type: object
properties:
enabled:
type: boolean
issuerRef:
- description: ObjectReference is a reference to an object with a
- given name and kind.
+ description: ObjectReference is a reference to an object with
+ a given name and kind.
+ type: object
+ required:
+ - name
properties:
kind:
type: string
name:
type: string
- required:
- - name
- type: object
- required:
- - enabled
- - issuerRef
- type: object
- required:
- - domain
- - function
- - path
- type: object
- required:
- - spec
- type: object
- version: v1alpha2
- versions:
- - name: v1alpha2
served: true
storage: true
+status:
+ acceptedNames:
+ kind: ""
+ plural: ""
+ conditions: []
+ storedVersions: []
---
