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:overlay", "overlay") | |
#@ load("@ytt:template", "template") | |
#@ def annotation(key_value): | |
#@overlay/match-child-defaults missing_ok=True | |
annotations: | |
_: #@ template.replace(key_value) | |
#@ end | |
#@ def base(): |
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") | |
--- | |
endpoints: | |
serviceA_URL: #@ data.values.serviceA_URL | |
serviceB_URL: #@ data.values.serviceB_URL | |
serviceC_URL: #@ data.values.serviceC_URL |
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") | |
--- | |
endpoints: | |
serviceA_URL: #@ data.values.serviceA_URL | |
serviceB_URL: #@ data.values.serviceB_URL | |
serviceC_URL: #@ data.values.serviceC_URL | |
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
#@data/values | |
--- | |
#! default base of all endpoints | |
endpoints: | |
default: | |
base: https://default-server | |
serviceA: | |
base: ~ | |
path: /service/v2/A |
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: kapp.k14s.io/v1alpha1 | |
kind: Config | |
ownershipLabelRules: | |
- path: [spec, template, metadata, labels] | |
resourceMatchers: | |
- apiVersionKindMatcher: {apiVersion: bitnami.com/v1alpha1, kind: SealedSecret} |
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
def starlark_func(): | |
return ''' | |
Yesterday it worked. | |
Today it is not working. | |
That's computers. Sigh. | |
''' | |
end |
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("funcs.star", "func1") @) | |
(@= func1() @) |
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:library", "library") | |
#@ def antrea_values(): | |
#@ return data.values | |
#@ end | |
type_of_func_return: #@ type(antrea_values()) | |
type_of_dvs: #@ type(data.values) | |
type_of_none: #@ type(None) |
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
type: object | |
properties: | |
namespace: | |
type: string | |
default: fluent-bit |
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
openapi: 3.0.0 # Version of the openapi spec | |
info: | |
version: 1.0.0 # Version of this document | |
title: Openapi schema generated from ytt schema | |
components: | |
schemas: | |
type: object | |
properties: | |
namespace: | |
type: string |