Skip to content

Commit

Permalink
allow any namespace to be used when using override
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Dec 19, 2018
1 parent 1351831 commit 65cd419
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/kubernetes/app/models/kubernetes/template_filler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ def prefix_service_cluster_ip
end

def set_namespace
system_namespaces = ["default", "kube-system"]
return if system_namespaces.include?(template.dig(:metadata, :namespace)) &&
template.dig(:metadata, :labels, :'kubernetes.io/cluster-service') == 'true'
return if template.dig(:metadata, :labels, :'kubernetes.io/cluster-service') == 'true'
template[:metadata][:namespace] = @doc.deploy_group.kubernetes_namespace
end

Expand Down

0 comments on commit 65cd419

Please sign in to comment.