Skip to content

Commit

Permalink
Update ingress operator CRD
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Fofanov <avl.fofanov@gmail.com>
  • Loading branch information
aleks-fofanov authored and alexellis committed Jun 18, 2020
1 parent b45f2fc commit 52a06b6
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 24 deletions.
2 changes: 1 addition & 1 deletion chart/openfaas/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Enable Kubernetes as a backend for OpenFaaS (Functions as a Service)
name: openfaas
version: 5.8.6
version: 5.8.7
sources:
- https://github.com/openfaas/faas
- https://github.com/openfaas/faas-netes
Expand Down
82 changes: 59 additions & 23 deletions chart/openfaas/templates/ingress-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,85 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (unknown)
name: functioningresses.openfaas.com
spec:
group: openfaas.com
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
names:
singular: functioningress
plural: functioningresses
kind: FunctionIngress
shortNames:
- fni
listKind: FunctionIngressList
plural: functioningresses
singular: functioningress
scope: Namespaced
validation:
openAPIV3Schema:
description: FunctionIngress describes an OpenFaaS function
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
required:
- domain
description: FunctionIngressSpec is the spec for a FunctionIngress resource.
It must be created in the same namespace as the gateway, i.e. openfaas.
properties:
name:
type: string
pattern: "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
bypassGateway:
description: BypassGateway, when true creates an Ingress record directly
for the Function name without using the gateway in the hot path
type: boolean
domain:
description: Domain such as "api.example.com"
type: string
function:
description: Function such as "nodeinfo"
type: string
ingressType:
description: IngressType such as "nginx"
type: string
path:
description: Path such as "/v1/profiles/view/(.*)", or leave empty for
default
type: string
tls:
type: object
description: Enable TLS via cert-manager
properties:
enabled:
type: boolean
issuerRef:
type: object
anyOf:
- type: string
- type: object
required: ['kind', 'name']
description: ObjectReference is a reference to an object with a
given name and kind.
properties:
name:
type: string
kind:
type: string
{{- end }}
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
{{- end }}

0 comments on commit 52a06b6

Please sign in to comment.