Skip to content

Commit 945d308

Browse files
committed
Update kubectl --dry-run flag
1 parent 004aaa1 commit 945d308

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

manager/install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function main() {
211211
function setup_configmap() {
212212
kubectl -n=default create configmap 'cluster-config' \
213213
--from-file='cluster.yaml'=$CORTEX_CLUSTER_CONFIG_FILE \
214-
-o yaml --dry-run | kubectl apply -f - >/dev/null
214+
-o yaml --dry-run=client | kubectl apply -f - >/dev/null
215215

216216
kubectl -n=default create configmap 'env-vars' \
217217
--from-literal='CORTEX_VERSION'=$CORTEX_VERSION \
@@ -221,14 +221,14 @@ function setup_configmap() {
221221
--from-literal='CORTEX_TELEMETRY_DISABLE'=$CORTEX_TELEMETRY_DISABLE \
222222
--from-literal='CORTEX_TELEMETRY_SENTRY_DSN'=$CORTEX_TELEMETRY_SENTRY_DSN \
223223
--from-literal='CORTEX_TELEMETRY_SEGMENT_WRITE_KEY'=$CORTEX_TELEMETRY_SEGMENT_WRITE_KEY \
224-
-o yaml --dry-run | kubectl apply -f - >/dev/null
224+
-o yaml --dry-run=client | kubectl apply -f - >/dev/null
225225
}
226226

227227
function setup_secrets() {
228228
kubectl -n=default create secret generic 'aws-credentials' \
229229
--from-literal='AWS_ACCESS_KEY_ID'=$CORTEX_AWS_ACCESS_KEY_ID \
230230
--from-literal='AWS_SECRET_ACCESS_KEY'=$CORTEX_AWS_SECRET_ACCESS_KEY \
231-
-o yaml --dry-run | kubectl apply -f - >/dev/null
231+
-o yaml --dry-run=client | kubectl apply -f - >/dev/null
232232
}
233233

234234
function setup_istio() {

manager/refresh.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ python refresh_cluster_config.py cluster_configmap.yaml tmp_cluster_config.yaml
3131

3232
kubectl -n=default create configmap 'cluster-config' \
3333
--from-file='cluster.yaml'=tmp_cluster_config.yaml \
34-
-o yaml --dry-run | kubectl apply -f - >/dev/null
34+
-o yaml --dry-run=client | kubectl apply -f - >/dev/null
3535

3636
cat tmp_cluster_config.yaml > $cached_cluster_config_file

0 commit comments

Comments
 (0)