diff --git a/app/kubernetes/converters/daemonSet.js b/app/kubernetes/converters/daemonSet.js index 93a934231..2770e7bde 100644 --- a/app/kubernetes/converters/daemonSet.js +++ b/app/kubernetes/converters/daemonSet.js @@ -21,7 +21,9 @@ class KubernetesDaemonSetConverter { const res = new KubernetesDaemonSet(); res.Namespace = formValues.ResourcePool.Namespace.Name; res.Name = formValues.Name; - res.StackName = formValues.StackName ? formValues.StackName : formValues.Name; + if (formValues.StackName) { + res.StackName = formValues.StackName; + } res.ApplicationOwner = formValues.ApplicationOwner; res.ApplicationName = formValues.Name; res.ImageModel = formValues.ImageModel; diff --git a/app/kubernetes/converters/statefulSet.js b/app/kubernetes/converters/statefulSet.js index 8b3b965bd..a7c342fd5 100644 --- a/app/kubernetes/converters/statefulSet.js +++ b/app/kubernetes/converters/statefulSet.js @@ -24,7 +24,9 @@ class KubernetesStatefulSetConverter { const res = new KubernetesStatefulSet(); res.Namespace = formValues.ResourcePool.Namespace.Name; res.Name = formValues.Name; - res.StackName = formValues.StackName ? formValues.StackName : formValues.Name; + if (formValues.StackName) { + res.StackName = formValues.StackName; + } res.ApplicationOwner = formValues.ApplicationOwner; res.ApplicationName = formValues.Name; res.ReplicaCount = formValues.ReplicaCount;