diff options
author | Tiger <twatson@gitlab.com> | 2019-06-12 09:44:18 +1000 |
---|---|---|
committer | Tiger <twatson@gitlab.com> | 2019-06-18 12:43:52 +1000 |
commit | 74702f0e0e05bc346338fbd11b596fcbedfbaea6 (patch) | |
tree | e426ab17b7dc425c9d63dc9670b865fcbd17bb02 /app/models/clusters | |
parent | db9ef69272155b3c8ead5c0e7d027bda2b623d43 (diff) | |
download | gitlab-ce-74702f0e0e05bc346338fbd11b596fcbedfbaea6.tar.gz |
Enable project-level JIT resource creation60617-enable-project-cluster-jit
Previously this behaviour was only available to group
and instance-level clusters, as some project clusters
relied on Kubernetes credentials being passed through
to the runner instead of having their resources managed
by GitLab (which is not available when using JIT). These
clusters have been migrated to unmanaged, so resources
can be created on demand for the remaining managed clusters.
Diffstat (limited to 'app/models/clusters')
-rw-r--r-- | app/models/clusters/platforms/kubernetes.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/app/models/clusters/platforms/kubernetes.rb b/app/models/clusters/platforms/kubernetes.rb index 272861cacf0..55646cb924c 100644 --- a/app/models/clusters/platforms/kubernetes.rb +++ b/app/models/clusters/platforms/kubernetes.rb @@ -47,7 +47,6 @@ module Clusters validate :prevent_modification, on: :update after_save :clear_reactive_cache! - after_update :update_kubernetes_namespace alias_attribute :ca_pem, :ca_cert @@ -223,14 +222,6 @@ module Clusters true end - - def update_kubernetes_namespace - return unless saved_change_to_namespace? - - run_after_commit do - ClusterConfigureWorker.perform_async(cluster_id) - end - end end end end |