Commit cde8df49 authored by Albert Salim's avatar Albert Salim

Merge branch '333931-labeling-existing-namespace-that-already-has-the-label-fails' into 'master'

review app: Pass the '--overwrite' flag to the 'kubectl label' command

See merge request gitlab-org/gitlab!64308
parents be1a0c21 99969c1c
......@@ -166,8 +166,9 @@ function label_namespace() {
local label="${2}"
echoinfo "Labeling the ${namespace} namespace with ${label}" true
echoinfo "We should pass the --overwrite option!"
kubectl label namespace "${namespace}" "${label}"
kubectl label --overwrite namespace "${namespace}" "${label}"
}
function create_application_secret() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment