Skip to content

Instantly share code, notes, and snippets.

@ewrenn8
Last active April 1, 2021 17:36
Show Gist options
  • Save ewrenn8/5d029c1c0c44b12e957119a10733d45f to your computer and use it in GitHub Desktop.
Save ewrenn8/5d029c1c0c44b12e957119a10733d45f to your computer and use it in GitHub Desktop.
Packaging Values
apiVersion: install.package.carvel.dev/v1alpha1
kind: InstalledPackage
metadata:
name: fluent-bit
namespace: tkg-addons
spec:
serviceAccountName: default-cluster-admin
packageRef:
publicName: fluent-bit.tkg.vmware.com
version: 1.5.3
versionSelection:
constraint: ">=1.5.3"
prereleases: {}
values:
- secretRef:
name: my-values
apiVersion: package.carvel.dev/v1alpha1
kind: Package
metadata:
name: fluent-bit.tkg.vmware.com.v1.5.3
spec:
publicName: fluent-bit.tkg.vmware.com
version: v1.5.3
displayName: "Fluent Bit"
description: "Fluent Bit is an open source and multi-platform..."
template:
spec:
fetch:
- imgpkgBundle:
image: registry.tkg.vmware.run/tkg-fluent-bit@sha256:...
template:
- ytt:
paths:
- config
- kbld:
paths:
- -
- .imgpkg/images.yml
deploy:
- kapp: {}
valuesConfig:
schema:
openAPIV3Schema:
...
includeInTemplateSteps:
- step: 0
secretRef:
name: my-values
withNamespace: true
apiVersion: kappctrl.k14s.io/v1alpha1
kind: App
metadata:
name: simple-app
namespace: default
spec:
serviceAccountName: default-ns-sa
fetch:
- imgpkgBundle:
image: registry.tkg.vmware.run/tkg-fluent-bit@sha256:...
template:
- ytt:
paths:
- config
values:
secretRef:
name: my-values
inline: |
namespace: defautl
- kbld:
paths:
- -
- .imgpkg/images.yml
deploy:
- kapp: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment