fix(kube): stackname in daemonsets and statefulsets app [EE-6670] (#11352)

pull/11355/head
Prabhat Khera 9 months ago committed by GitHub
parent f8e3d75797
commit e96d5c245d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -21,7 +21,9 @@ class KubernetesDaemonSetConverter {
const res = new KubernetesDaemonSet(); const res = new KubernetesDaemonSet();
res.Namespace = formValues.ResourcePool.Namespace.Name; res.Namespace = formValues.ResourcePool.Namespace.Name;
res.Name = formValues.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.ApplicationOwner = formValues.ApplicationOwner;
res.ApplicationName = formValues.Name; res.ApplicationName = formValues.Name;
res.ImageModel = formValues.ImageModel; res.ImageModel = formValues.ImageModel;

@ -24,7 +24,9 @@ class KubernetesStatefulSetConverter {
const res = new KubernetesStatefulSet(); const res = new KubernetesStatefulSet();
res.Namespace = formValues.ResourcePool.Namespace.Name; res.Namespace = formValues.ResourcePool.Namespace.Name;
res.Name = formValues.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.ApplicationOwner = formValues.ApplicationOwner;
res.ApplicationName = formValues.Name; res.ApplicationName = formValues.Name;
res.ReplicaCount = formValues.ReplicaCount; res.ReplicaCount = formValues.ReplicaCount;

Loading…
Cancel
Save