I have aws-eks cluster and below is my command to replace existing the configuration.
kubectl create configmap flink-config --from-file=./config -o yaml --dry-run | kubectl replace -
but when I run this command. it gives an error like
W1009 17:00:14.998329 323115 helpers.go:553] --dry-run is deprecated and can be replaced with --dry-run=client.
Will it do the same thing If I replace -dry-run to -dry-run=client?
About
dry-run=clientwe learnAnd in the kubernetes API reference we read:
Performing local tests I realized that when I try to replace an existing config object using
dry-run=server, the following error occurs. The apiserver told us that already exist a configmap with the nameflink-config.However is I try with to use
dry-run=clientthe object is not validated by the apiserver, that is, just by the client, so the yaml is printed to us:So basically, yes, the
dry-run=clientit has the same effect than the deprecateddry-run. The equivalent flag fordry-run=serverwas--server-dry-runand became deprecated in v1.18.