Don't consider a new inactive KubernetesService invalid
This commit is contained in:
parent
391710f29d
commit
3f784d8f34
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ class KubernetesService < DeploymentService
|
|||
end
|
||||
|
||||
def deprecation_validation
|
||||
return if active_changed?(from: true, to: false)
|
||||
return if active_changed?(from: true, to: false) || (new_record? && !active?)
|
||||
|
||||
if deprecated?
|
||||
errors[:base] << deprecation_message
|
||||
|
|
Loading…
Reference in a new issue