This file contains 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
#!/usr/bin/env bash | |
set -eux -o pipefail | |
IMGPKG_REGISTRY_HOSTNAME_0="${IMGPKG_REGISTRY_HOSTNAME_0:-source.example.com}" | |
IMGPKG_REGISTRY_HOSTNAME_1="${IMGPKG_REGISTRY_HOSTNAME_1:-destination.example.com}" | |
echo "#!/usr/bin/env bash" | |
echo "# This generates a script that can be run during CI to copy all the packages over to a new location." | |
echo "set -eux -o pipefail" |
This file contains 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 | |
minimumRequiredVersion: 0.34.0 | |
# This section makes sure that kapp passes on the necessary kapp labels to derived Cluster API resources. | |
# Missing this section would mean that follow-on objects created by Cluster API would be missed in kapp inspect calls. | |
templateRules: | |
- resourceMatchers: | |
- apiVersionKindMatcher: {apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3, kind: AWSMachineTemplate} |
This file contains 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 | |
#! Note that the file coming out of imgpkg would NOT contain the data/values, you would need to access it with the following CLI command: | |
#! ytt -f package-template.yaml --data-values-file current-version.yml | |
#! The data/values is just included here so it'll work properly on ytt playground. | |
--- | |
apiVersion: imgpkg.carvel.dev/v1alpha1 | |
bundle: | |
image: harbor.example.com/imgpkg/charts/secretgen-controller@sha256:e302989e79a3c4f17eb5d101ba1c773ea717cde49b5606ffc6424429d70fb8d0 | |
tag: v0.5.0 |
This file contains 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
#!/usr/bin/env sh | |
set -eux -o pipefail | |
CHART_NAME=gitlab-runner | |
SERVICE_FOLDER=${CHART_NAME} | |
CHART_REPO_NAME=gitlab | |
CHART_REPO_URL=https://charts.gitlab.io | |
HARBOR_REPO=your.repo.example.com |
This file contains 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") | |
RUNNER_TAG_LIST: #@ ",".join([x.strip() for x in data.values.tags]) |
This file contains 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:data", "data") | |
#@ def key_overlay(): | |
metadata: | |
name: simple-app | |
#@ end | |
#@overlay/match by=overlay.subset(key_overlay()),when="1+" | |
--- |
This file contains 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:base64", "base64") | |
#@ load("@ytt:yaml", "yaml") | |
#@ def server_config(): | |
_: | | |
c.ServerApp.token = '<generated>' | |
alkdalsdkasdlaskdasldaskdsl | |
blah blah blah | |
#@ end |
This file contains 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:base64", "base64") | |
#@ load("@ytt:data", "data") | |
#@ load("@ytt:yaml", "yaml") | |
#! rego | |
#@ load("policy.rego.lib.txt", "rego_auth_policy") | |
--- | |
apiVersion: v1 | |
data: |
This file contains 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
--- | |
id: 1 | |
meta: | |
ebook: .epub |
This file contains 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
#!/bin/bash | |
set -euo pipefail | |
# Remove whitespace | |
function remWS { | |
if [ -z "${1}" ]; then | |
cat | tr -d '[:space:]' | |
else | |
echo "${1}" | tr -d '[:space:]' |