This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export resource_list_file=mylistofresources.txt | |
export kubernetes_resource_type=mykubernetesresourcetype # A deployment, secret, etc | |
for resource in $(cat $resource_list_file); do | |
kubectl -n qa patch $kubernetes_resource_type $resource --type=merge --patch '{"spec":{"SPEC_KEY": "SPEC_VALUE"}}' | |
done |