This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: kappctrl.k14s.io/v1alpha1 | |
kind: App | |
metadata: | |
name: cobbler | |
namespace: cobbler | |
spec: | |
serviceAccountName: cobbler | |
fetch: | |
- inline: | |
paths: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
field1: red1 | |
field2: | |
field2a: red 2.a | |
filed2b: red 2.b | |
field3: | |
- red 3.a | |
- red 3.b | |
--- | |
field1: green1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
labels: | |
label1: value1 | |
name: service1 | |
data: | |
PVC: "false" | |
ENDPOINT: http://internal-api:8080/api/v1/scan | |
PATH: /test1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("@ytt:data", "data") | |
#@ load("@ytt:overlay", "overlay") | |
#@ for app_name in dir(data.values.configmaps): | |
#! first, instantiate a ConfigMap for the app with empty data... | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("@ytt:data", "data") | |
#@ for svc in data.values.services: | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: #@ svc.name | |
labels: | |
app.kubernetes.io/version: #@ data.values.version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: scdf-server | |
annotations: | |
kapp.k14s.io/change-group: "scdf.tanzu.vmware.com/server" | |
kapp.k14s.io/change-rule.1: "upsert after upserting scdf.tanzu.vmware.com/db" | |
kapp.k14s.io/change-rule.2: "upsert after upserting scdf.tanzu.vmware.com/skipper" | |
labels: | |
app: scdf-server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: backend | |
namespace: default | |
spec: | |
selector: | |
matchLabels: | |
app: backend | |
replicas: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
kind: Deployment | |
metadata: | |
name: A | |
--- | |
kind: Deployment | |
metadata: | |
name: B | |
--- | |
kind: Deployment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("@ytt:data", "data") | |
#@ load("@ytt:yaml", "yaml") | |
#@ def config(): | |
#@yaml/text-templated-strings | |
config: | |
inputs: |- | |
(@ for app, ns in data.values.logging.apps: -@) | |
[INPUT] | |
app: (@= app @) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("@ytt:yaml", "yaml") | |
#@ load("@ytt:overlay", "overlay") | |
#@ load("@ytt:struct", "struct") | |
#@ def _doc(map): | |
--- #@ map | |
#@ end | |
--- | |
#@ def _missing_ok(map): |