From caf9faac1cef2166d9059f7e8c6532d500359190 Mon Sep 17 00:00:00 2001 From: ekgns33 Date: Thu, 23 May 2024 22:53:42 +0900 Subject: [PATCH] feat : add optional constraint for lifecycle --- api/v1alpha1/application_types.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/v1alpha1/application_types.go b/api/v1alpha1/application_types.go index acb1e3a..a4f4ef5 100644 --- a/api/v1alpha1/application_types.go +++ b/api/v1alpha1/application_types.go @@ -31,7 +31,8 @@ type AppSpec struct { AppType string `json:"appType,omitempty"` // back, front-spa, front-srr Annotations map[string]string `json:"annotations,omitempty"` ContainerName string `json:"containerName"` - LifeCycle *v1.Lifecycle `json:"lifeCycle"` + // +optional + LifeCycle *v1.Lifecycle `json:"lifeCycle,omitempty"` } type PodDisruptionBudgetSpec struct {