Skip to content

Commit

Permalink
Update chart CRD templates
Browse files Browse the repository at this point in the history
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
welteki authored and alexellis committed Jun 11, 2024
1 parent c811bb0 commit 2aa53c7
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 3 deletions.
10 changes: 7 additions & 3 deletions chart/openfaas/templates/openfaas.com_functions-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ spec:
- jsonPath: .spec.image
name: Image
type: string
- jsonPath: .status.conditions[?(@.type == "Ready")].status
- description: The function's desired state has been applied by the controller
jsonPath: .status.conditions[?(@.type == "Ready")].status
name: Ready
priority: 1
type: string
- jsonPath: .status.conditions[?(@.type == "Healthy")].status
- description: All replicas of the function's desired state are available to serve
traffic
jsonPath: .status.conditions[?(@.type == "Healthy")].status
name: Healthy
type: string
- jsonPath: .status.replicas
- description: The desired number of replicas
jsonPath: .status.replicas
name: Replicas
type: integer
- jsonPath: .status.availableReplicas
Expand Down
51 changes: 51 additions & 0 deletions chart/openfaas/templates/openfaas.com_profiles-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1250,6 +1250,57 @@ spec:
copied to the Pod RunTimeClass, this will replace any existing value or previously
applied Profile.
type: string
strategy:
description: Strategy allows customizing the deployment strategy for
function deployments.
properties:
rollingUpdate:
description: |-
Rolling update config params. Present only if DeploymentStrategyType =
RollingUpdate.
---
TODO: Update this to follow our convention for oneOf, whatever we decide it
to be.
properties:
maxSurge:
anyOf:
- type: integer
- type: string
description: |-
The maximum number of pods that can be scheduled above the desired number of
pods.
Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
This can not be 0 if MaxUnavailable is 0.
Absolute number is calculated from percentage by rounding up.
Defaults to 25%.
Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
the rolling update starts, such that the total number of old and new pods do not exceed
130% of desired pods. Once old pods have been killed,
new ReplicaSet can be scaled up further, ensuring that total number of pods running
at any time during the update is at most 130% of desired pods.
x-kubernetes-int-or-string: true
maxUnavailable:
anyOf:
- type: integer
- type: string
description: |-
The maximum number of pods that can be unavailable during the update.
Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
Absolute number is calculated from percentage by rounding down.
This can not be 0 if MaxSurge is 0.
Defaults to 25%.
Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
that the total number of pods available at all times during the update is at
least 70% of desired pods.
x-kubernetes-int-or-string: true
type: object
type:
description: Type of deployment. Can be "Recreate" or "RollingUpdate".
Default is RollingUpdate.
type: string
type: object
tolerations:
description: |-
If specified, the function's pod tolerations.
Expand Down

0 comments on commit 2aa53c7

Please sign in to comment.