Skip to content

Instantly share code, notes, and snippets.

@esweeney-cg
Created June 18, 2024 02:49
Show Gist options
  • Save esweeney-cg/8024c3c6e721d50fa1d0790ae0c98303 to your computer and use it in GitHub Desktop.
Save esweeney-cg/8024c3c6e721d50fa1d0790ae0c98303 to your computer and use it in GitHub Desktop.
flux v2 upgrade
find . -type f -name "*.yaml" -exec sed -i '' 's/apiVersion: kustomize.toolkit.fluxcd.io\/v1beta2/apiVersion: kustomize.toolkit.fluxcd.io\/v1/g' {} +
find . -type f -name "*.yaml" -exec sed -i '' 's/apiVersion: source.toolkit.fluxcd.io\/v1beta1/apiVersion: source.toolkit.fluxcd.io\/v1/g' {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment