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
piVersion: packaging.carvel.dev/v1alpha1 | |
kind: PackageRepository | |
metadata: | |
name: tanzu-standard-repo-tmc | |
namespace: tap-install | |
spec: | |
fetch: | |
imgpkgBundle: | |
image: extensions.aws-usw2.tmc.cloud.vmware.com/packages/standard/repo:v2024.4.19 |
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") | |
#@ def deploy_template(): | |
kind: ClusterDeploymentTemplate | |
metadata: | |
name: app-deploy | |
#@ end | |
#@overlay/match by=overlay.subset(deploy_template()) | |
--- |
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 | |
--- | |
workload: | |
metadata: | |
name: test | |
labels: | |
test: test | |
spec: | |
params: | |
ports: 8080 |
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: v1 | |
kind: Secret | |
metadata: | |
name: tap-gui-timeout-overlay | |
namespace: tap-install | |
stringData: | |
tap-gui-timeout-overlay.yaml: | | |
#@ load("@ytt:overlay", "overlay") | |
#@overlay/match by=overlay.subset({"kind": "HTTPProxy", "metadata": {"name": "tap-gui"}}) | |
--- |
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") | |
#@overlay/match by=overlay.subset({"kind":"Deployment","metadata":{"name":"server"}}), expects="1+" | |
--- | |
spec: | |
#@overlay/replace via=lambda left, _: left | |
replicas: | |
--- | |
apiVersion: policy/v1 | |
kind: PodDisruptionBudget |
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") | |
#@ load("@ytt:yaml", "yaml") | |
#@ def convention_template(): | |
kind: ClusterConfigTemplate | |
metadata: | |
name: convention-template | |
#@ 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
#@data/values | |
--- | |
workload_name: jeremy | |
hpa: | |
enabled: true | |
minReplicas: 5 | |
maxReplicas: 10 | |
metrics: | |
- type: Resource | |
resource: |
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
# This should be installed on your build cluster | |
apiVersion: carto.run/v1alpha1 | |
kind: ClusterConfigTemplate | |
metadata: | |
name: server-with-sso-template | |
annotations: | |
doc: | | |
This template consumes an input named config which contains a | |
PodTemplateSpec and returns a ConfigMap which contains a | |
"delivery.yml" which contains a manifests for a Kubernetes |
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 | |
# Function to find the index of the secret to be removed | |
find_secret_index() { | |
local secret_name=$1 | |
local sa_secrets=("${@:2}") | |
local index=0 | |
for secret in "${sa_secrets[@]}"; do | |
if [[ "$secret" == *"$secret_name"* ]]; then |
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") | |
#@overlay/match by=overlay.subset({"kind": "HorizontalPodAutoscaler", "metadata": {"name": "tekton-pipelines-webhook"}}), expects="1+" | |
--- | |
spec: | |
#@overlay/match missing_ok=True | |
maxReplicas: 20 | |
minReplicas: 10 | |
#@overlay/remove | |
metrics: |
NewerOlder