-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduces a toggle for creating the Profiles CRD. This is to help users overcome #686 Makes a breaking change where "createCRDs" controls whether any CRDs are created. This is on by default. Existing users must take note when upgrading. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
- Loading branch information
Showing
23 changed files
with
2,722 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{{- $functionNs := default .Release.Namespace .Values.functionNamespace }} | ||
{{- if .Values.operator.create }} | ||
{{- if .Values.createCRDs }} | ||
|
||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.3.0 | ||
creationTimestamp: null | ||
name: functions.openfaas.com | ||
spec: | ||
group: openfaas.com | ||
names: | ||
kind: Function | ||
listKind: FunctionList | ||
plural: functions | ||
singular: function | ||
scope: Namespaced | ||
validation: | ||
openAPIV3Schema: | ||
description: Function describes an OpenFaaS function | ||
type: object | ||
required: | ||
- spec | ||
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: | ||
description: FunctionSpec is the spec for a Function resource | ||
type: object | ||
required: | ||
- image | ||
- name | ||
properties: | ||
annotations: | ||
type: object | ||
additionalProperties: | ||
type: string | ||
constraints: | ||
type: array | ||
items: | ||
type: string | ||
environment: | ||
type: object | ||
additionalProperties: | ||
type: string | ||
handler: | ||
type: string | ||
image: | ||
type: string | ||
labels: | ||
type: object | ||
additionalProperties: | ||
type: string | ||
limits: | ||
description: FunctionResources is used to set CPU and memory limits | ||
and requests | ||
type: object | ||
properties: | ||
cpu: | ||
type: string | ||
memory: | ||
type: string | ||
name: | ||
type: string | ||
readOnlyRootFilesystem: | ||
type: boolean | ||
requests: | ||
description: FunctionResources is used to set CPU and memory limits | ||
and requests | ||
type: object | ||
properties: | ||
cpu: | ||
type: string | ||
memory: | ||
type: string | ||
secrets: | ||
type: array | ||
items: | ||
type: string | ||
version: v1 | ||
versions: | ||
- name: v1 | ||
served: true | ||
storage: true | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] | ||
|
||
|
||
--- | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
basic_auth: true | ||
|
||
clusterRole: false | ||
createCRDs: true | ||
|
||
nodeSelector: | ||
beta.kubernetes.io/arch: arm64 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
basic_auth: false | ||
|
||
clusterRole: false | ||
createCRDs: true | ||
|
||
nodeSelector: | ||
beta.kubernetes.io/arch: arm | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.