Skip to content

Instantly share code, notes, and snippets.

@voor
Created October 21, 2021 01:03
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/e0935b66c179e04bebaac4be35ca985b to your computer and use it in GitHub Desktop.
Save voor/e0935b66c179e04bebaac4be35ca985b to your computer and use it in GitHub Desktop.
Overlaying to a Package
apiVersion: data.packaging.carvel.dev/v1alpha1
kind: Package
metadata:
name: scp-toolkit.tanzu.vmware.com.0.3.0
namespace: scp-toolkit
spec:
refName: scp-toolkit.tanzu.vmware.com
version: 0.3.0
releaseNotes: |
* Updated support for authentication to private registries to use new method introduced by kapp-controller v0.24.0 and secretgen-controller v0.5.0, see [Authenticating to Private Registries](https://carvel.dev/kapp-controller/docs/latest/private-registry-auth/).
* Increased the resource requirements and limits for Deployments, see [Resource Requirements](/reference/resource_requirements.md) for details.
* Fixed an issue that did not allow the kubectl-scp plugin to federate multiple APIs from the same group.
* Fixed replicated Secret not being cleaned up from workload clusters on deletion of original Secret.
* Fixed incorrect RoleBinding roleRef created by `SecretExport` in Resource Replication.
* Removed creation of redundant Role and RoleBinding resources by kubectl-scp plugin for Resource Replication.
* Switched controller base images to use [paketobuildpacks/run:tiny](https://github.com/paketo-buildpacks/stacks#tiny).
* Added support for [service-bindings v0.5.0](https://github.com/vmware-labs/service-bindings/releases/tag/v0.5.0) to kubectl-scp.
releasedAt: "2021-09-17T13:53:29Z"
valuesSchema:
openAPIv3:
properties: {}
template:
spec:
deploy:
- kapp: {}
fetch:
- imgpkgBundle:
image: registry.tanzu.vmware.com/scp-toolkit/scp-toolkit-package-bundle@sha256:afbe2a83df495a66b139feec5f9c8a99c267c2df3d009d68a14d4d0f2cb31e91
template:
- kbld:
paths:
- .imgpkg/images.yml
- '-'
- ytt:
ignoreUnknownComments: true
#@ load("@ytt:overlay", "overlay")
#@ load("@ytt:data", "data")
#@ def toolkit_overlay():
kind: Package
metadata:
name: scp-toolkit.tanzu.vmware.com.0.3.0
#@ end
#@overlay/match by=overlay.subset(toolkit_overlay())
---
spec:
template:
spec:
template:
#@overlay/match by=lambda _,l,r: "ytt" in l, missing_ok=True
- ytt:
ignoreUnknownComments: true
#@overlay/replace
#@overlay/match by=lambda _,l,r: "kbld" in l
- kbld:
#@overlay/replace
paths:
- .imgpkg/images.yml
- '-'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment