Skip to content

Instantly share code, notes, and snippets.

@x95castle1
Last active May 2, 2024 16:41
Show Gist options
  • Save x95castle1/2b90deabe625d614669413e111bdeae3 to your computer and use it in GitHub Desktop.
Save x95castle1/2b90deabe625d614669413e111bdeae3 to your computer and use it in GitHub Desktop.
Add Downgradable to all Packages
#@ load("@ytt:overlay", "overlay")
#@ def match_packageinstall():
kind: PackageInstall
#@ end
#@overlay/match by=overlay.subset(match_packageinstall()), expects="1+"
---
metadata:
#@overlay/match missing_ok=True
annotations:
#@overlay/match missing_ok=True
packaging.carvel.dev/downgradable: ""
apiVersion: packaging.carvel.dev/v1alpha1
kind: PackageInstall
metadata:
name: tap
namespace: tap-install
spec:
packageRef:
refName: tap.tanzu.vmware.com
versionSelection:
constraints: 1.6.8
serviceAccountName: tap-installer-sa
values:
- secretRef:
name: tap-values
- secretRef:
name: tap-sensitive-values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment