Skip to content

Commit 2f726b4

Browse files
committed
Support startupProbe in pod policy
1 parent dee7ffa commit 2f726b4

18 files changed

Lines changed: 1835 additions & 103 deletions

api/compute/v1alpha1/common.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ type PodPolicy struct {
228228

229229
Liveness *Liveness `json:"liveness,omitempty"`
230230

231+
// StartupProbe specifies the startup probe for the main function container.
232+
// More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
233+
StartupProbe *corev1.Probe `json:"startupProbe,omitempty"`
234+
231235
DisableDefaultAffinity bool `json:"disableDefaultAffinity,omitempty"`
232236
}
233237

api/compute/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/function-mesh-operator/charts/admission-webhook/templates/crd-compute.functionmesh.io-backendconfigs.yaml

Lines changed: 81 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
{{- if eq .Values.admissionWebhook.certificate.provider "cert-manager" }}
77
{{- include "function-mesh-operator.certManager.annotation" . | nindent 4 -}}
88
{{- end }}
9-
controller-gen.kubebuilder.io/version: v0.16.5
9+
controller-gen.kubebuilder.io/version: v0.15.0
1010
name: backendconfigs.compute.functionmesh.io
1111
spec:
1212
conversion:
@@ -1159,7 +1159,6 @@ spec:
11591159
format: int32
11601160
type: integer
11611161
service:
1162-
default: ""
11631162
type: string
11641163
required:
11651164
- port
@@ -1266,7 +1265,6 @@ spec:
12661265
format: int32
12671266
type: integer
12681267
service:
1269-
default: ""
12701268
type: string
12711269
required:
12721270
- port
@@ -1465,7 +1463,6 @@ spec:
14651463
format: int32
14661464
type: integer
14671465
service:
1468-
default: ""
14691466
type: string
14701467
required:
14711468
- port
@@ -1937,7 +1934,6 @@ spec:
19371934
format: int32
19381935
type: integer
19391936
service:
1940-
default: ""
19411937
type: string
19421938
required:
19431939
- port
@@ -2044,7 +2040,6 @@ spec:
20442040
format: int32
20452041
type: integer
20462042
service:
2047-
default: ""
20482043
type: string
20492044
required:
20502045
- port
@@ -2243,7 +2238,6 @@ spec:
22432238
format: int32
22442239
type: integer
22452240
service:
2246-
default: ""
22472241
type: string
22482242
required:
22492243
- port
@@ -2361,6 +2355,86 @@ spec:
23612355
- name
23622356
type: object
23632357
type: array
2358+
startupProbe:
2359+
properties:
2360+
exec:
2361+
properties:
2362+
command:
2363+
items:
2364+
type: string
2365+
type: array
2366+
x-kubernetes-list-type: atomic
2367+
type: object
2368+
failureThreshold:
2369+
format: int32
2370+
type: integer
2371+
grpc:
2372+
properties:
2373+
port:
2374+
format: int32
2375+
type: integer
2376+
service:
2377+
type: string
2378+
required:
2379+
- port
2380+
type: object
2381+
httpGet:
2382+
properties:
2383+
host:
2384+
type: string
2385+
httpHeaders:
2386+
items:
2387+
properties:
2388+
name:
2389+
type: string
2390+
value:
2391+
type: string
2392+
required:
2393+
- name
2394+
- value
2395+
type: object
2396+
type: array
2397+
x-kubernetes-list-type: atomic
2398+
path:
2399+
type: string
2400+
port:
2401+
anyOf:
2402+
- type: integer
2403+
- type: string
2404+
x-kubernetes-int-or-string: true
2405+
scheme:
2406+
type: string
2407+
required:
2408+
- port
2409+
type: object
2410+
initialDelaySeconds:
2411+
format: int32
2412+
type: integer
2413+
periodSeconds:
2414+
format: int32
2415+
type: integer
2416+
successThreshold:
2417+
format: int32
2418+
type: integer
2419+
tcpSocket:
2420+
properties:
2421+
host:
2422+
type: string
2423+
port:
2424+
anyOf:
2425+
- type: integer
2426+
- type: string
2427+
x-kubernetes-int-or-string: true
2428+
required:
2429+
- port
2430+
type: object
2431+
terminationGracePeriodSeconds:
2432+
format: int64
2433+
type: integer
2434+
timeoutSeconds:
2435+
format: int32
2436+
type: integer
2437+
type: object
23642438
terminationGracePeriodSeconds:
23652439
format: int64
23662440
type: integer

0 commit comments

Comments
 (0)