Skip to content

Instantly share code, notes, and snippets.

@voor
Last active October 22, 2021 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voor/0439c6d4c504959a9f0cafc08e749044 to your computer and use it in GitHub Desktop.
Save voor/0439c6d4c504959a9f0cafc08e749044 to your computer and use it in GitHub Desktop.
#@ load("@ytt:data", "data")
apiVersion: data.packaging.carvel.dev/v1alpha1
kind: Package
metadata:
name: #@ "flux-source-controller.create.army.mil.{}".format(data.values.bundle.tag)
namespace: flux-source-controller
spec:
refName: flux-source-controller.create.army.mil
#@ tag = "{}".format(data.values.bundle.tag)
version: #@ tag.lstrip("vV ")
releaseNotes: "relevant release notes..."
licenses:
- "Apache License 2.0"
template:
spec:
fetch:
- imgpkgBundle:
image: #@ data.values.bundle.image
template:
- ytt:
paths:
- config/
- kbld:
paths:
- "-"
- .imgpkg/images.yml
deploy:
- kapp: {}
#@data/values
---
apiVersion: imgpkg.carvel.dev/v1alpha1
bundle:
image: harbor.example.com/imgpkg/charts/flux-source-controller@sha256:47bfd1101930c5cf30e2f3df5166b05669eae7c013029417155d61d8cb601d70
tag: v0.15.4
kind: BundleLock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment