|
1 |
| -{{- $functionNs := default .Release.Namespace .Values.functionNamespace }} |
2 |
| -{{- if .Values.operator.create }} |
3 |
| -{{- if .Values.operator.createCRD }} |
4 |
| - |
5 |
| -apiVersion: apiextensions.k8s.io/v1beta1 |
6 |
| -kind: CustomResourceDefinition |
7 |
| -metadata: |
8 |
| - annotations: |
9 |
| - controller-gen.kubebuilder.io/version: v0.3.0 |
10 |
| - creationTimestamp: null |
11 |
| - name: functions.openfaas.com |
12 |
| -spec: |
13 |
| - group: openfaas.com |
14 |
| - names: |
15 |
| - kind: Function |
16 |
| - listKind: FunctionList |
17 |
| - plural: functions |
18 |
| - singular: function |
19 |
| - scope: Namespaced |
20 |
| - validation: |
21 |
| - openAPIV3Schema: |
22 |
| - description: Function describes an OpenFaaS function |
23 |
| - type: object |
24 |
| - required: |
25 |
| - - spec |
26 |
| - properties: |
27 |
| - apiVersion: |
28 |
| - description: 'APIVersion defines the versioned schema of this representation |
29 |
| - of an object. Servers should convert recognized schemas to the latest |
30 |
| - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
31 |
| - type: string |
32 |
| - kind: |
33 |
| - description: 'Kind is a string value representing the REST resource this |
34 |
| - object represents. Servers may infer this from the endpoint the client |
35 |
| - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
36 |
| - type: string |
37 |
| - metadata: |
38 |
| - type: object |
39 |
| - spec: |
40 |
| - description: FunctionSpec is the spec for a Function resource |
41 |
| - type: object |
42 |
| - required: |
43 |
| - - image |
44 |
| - - name |
45 |
| - properties: |
46 |
| - annotations: |
47 |
| - type: object |
48 |
| - additionalProperties: |
49 |
| - type: string |
50 |
| - constraints: |
51 |
| - type: array |
52 |
| - items: |
53 |
| - type: string |
54 |
| - environment: |
55 |
| - type: object |
56 |
| - additionalProperties: |
57 |
| - type: string |
58 |
| - handler: |
59 |
| - type: string |
60 |
| - image: |
61 |
| - type: string |
62 |
| - labels: |
63 |
| - type: object |
64 |
| - additionalProperties: |
65 |
| - type: string |
66 |
| - limits: |
67 |
| - description: FunctionResources is used to set CPU and memory limits |
68 |
| - and requests |
69 |
| - type: object |
70 |
| - properties: |
71 |
| - cpu: |
72 |
| - type: string |
73 |
| - memory: |
74 |
| - type: string |
75 |
| - name: |
76 |
| - type: string |
77 |
| - readOnlyRootFilesystem: |
78 |
| - type: boolean |
79 |
| - requests: |
80 |
| - description: FunctionResources is used to set CPU and memory limits |
81 |
| - and requests |
82 |
| - type: object |
83 |
| - properties: |
84 |
| - cpu: |
85 |
| - type: string |
86 |
| - memory: |
87 |
| - type: string |
88 |
| - secrets: |
89 |
| - type: array |
90 |
| - items: |
91 |
| - type: string |
92 |
| - version: v1 |
93 |
| - versions: |
94 |
| - - name: v1 |
95 |
| - served: true |
96 |
| - storage: true |
97 |
| -status: |
98 |
| - acceptedNames: |
99 |
| - kind: "" |
100 |
| - plural: "" |
101 |
| - conditions: [] |
102 |
| - storedVersions: [] |
103 |
| - |
104 |
| - |
105 |
| ---- |
106 |
| -{{- end }} |
107 |
| -{{- end }} |
| 1 | +{{- if .Values.createCRDs }} |
108 | 2 |
|
109 | 3 | apiVersion: apiextensions.k8s.io/v1beta1
|
110 | 4 | kind: CustomResourceDefinition
|
@@ -912,4 +806,6 @@ status:
|
912 | 806 | conditions: []
|
913 | 807 | storedVersions: []
|
914 | 808 |
|
| 809 | +--- |
915 | 810 |
|
| 811 | +{{- end }} |
0 commit comments