Skip to content
Snippets Groups Projects
Unverified Commit 3f784d8f authored by Douwe Maan's avatar Douwe Maan
Browse files

Don't consider a new inactive KubernetesService invalid

parent 391710f2
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment