Skip to content

Commit 2aa53c7

Browse files
weltekialexellis
authored andcommitted
Update chart CRD templates
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
1 parent c811bb0 commit 2aa53c7

File tree

2 files changed

+58
-3
lines changed

2 files changed

+58
-3
lines changed

chart/openfaas/templates/openfaas.com_functions-crd.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,18 @@ spec:
2222
- jsonPath: .spec.image
2323
name: Image
2424
type: string
25-
- jsonPath: .status.conditions[?(@.type == "Ready")].status
25+
- description: The function's desired state has been applied by the controller
26+
jsonPath: .status.conditions[?(@.type == "Ready")].status
2627
name: Ready
2728
priority: 1
2829
type: string
29-
- jsonPath: .status.conditions[?(@.type == "Healthy")].status
30+
- description: All replicas of the function's desired state are available to serve
31+
traffic
32+
jsonPath: .status.conditions[?(@.type == "Healthy")].status
3033
name: Healthy
3134
type: string
32-
- jsonPath: .status.replicas
35+
- description: The desired number of replicas
36+
jsonPath: .status.replicas
3337
name: Replicas
3438
type: integer
3539
- jsonPath: .status.availableReplicas

chart/openfaas/templates/openfaas.com_profiles-crd.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,57 @@ spec:
12501250
copied to the Pod RunTimeClass, this will replace any existing value or previously
12511251
applied Profile.
12521252
type: string
1253+
strategy:
1254+
description: Strategy allows customizing the deployment strategy for
1255+
function deployments.
1256+
properties:
1257+
rollingUpdate:
1258+
description: |-
1259+
Rolling update config params. Present only if DeploymentStrategyType =
1260+
RollingUpdate.
1261+
---
1262+
TODO: Update this to follow our convention for oneOf, whatever we decide it
1263+
to be.
1264+
properties:
1265+
maxSurge:
1266+
anyOf:
1267+
- type: integer
1268+
- type: string
1269+
description: |-
1270+
The maximum number of pods that can be scheduled above the desired number of
1271+
pods.
1272+
Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
1273+
This can not be 0 if MaxUnavailable is 0.
1274+
Absolute number is calculated from percentage by rounding up.
1275+
Defaults to 25%.
1276+
Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
1277+
the rolling update starts, such that the total number of old and new pods do not exceed
1278+
130% of desired pods. Once old pods have been killed,
1279+
new ReplicaSet can be scaled up further, ensuring that total number of pods running
1280+
at any time during the update is at most 130% of desired pods.
1281+
x-kubernetes-int-or-string: true
1282+
maxUnavailable:
1283+
anyOf:
1284+
- type: integer
1285+
- type: string
1286+
description: |-
1287+
The maximum number of pods that can be unavailable during the update.
1288+
Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
1289+
Absolute number is calculated from percentage by rounding down.
1290+
This can not be 0 if MaxSurge is 0.
1291+
Defaults to 25%.
1292+
Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
1293+
immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
1294+
can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
1295+
that the total number of pods available at all times during the update is at
1296+
least 70% of desired pods.
1297+
x-kubernetes-int-or-string: true
1298+
type: object
1299+
type:
1300+
description: Type of deployment. Can be "Recreate" or "RollingUpdate".
1301+
Default is RollingUpdate.
1302+
type: string
1303+
type: object
12531304
tolerations:
12541305
description: |-
12551306
If specified, the function's pod tolerations.

0 commit comments

Comments
 (0)