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 | |
rebaseRules: | |
- path: [spec, paused] | |
type: copy | |
sources: [existing, new] | |
resourceMatchers: | |
- andMatcher: | |
matchers: |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: app1 | |
labels: | |
app: app1 | |
spec: | |
replicas: 1 | |
selector: |
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
module github.com/mamachanko/create-an-issuer | |
go 1.22.3 | |
require github.com/cert-manager/cert-manager v1.14.5 | |
require ( | |
github.com/go-logr/logr v1.4.1 // indirect | |
github.com/gogo/protobuf v1.3.2 // indirect | |
github.com/google/gofuzz v1.2.0 // indirect |
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: ServiceAccount | |
metadata: | |
name: install-sa | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: |
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") | |
#@ load("@ytt:yaml", "yaml") | |
--- | |
kind: ConfigMap | |
metadata: | |
name: controller-config | |
data: | |
config.yaml: #@ yaml.encode(data.values.controller.feature_gates) |
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 | |
# ----- | |
# | |
# 📡 Syncing resources between workspaces and physical clusters with kcp. | |
# | |
# Note: This script is not meant to be run, but serves to record the steps taken. | |
# | |
# ----- |
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
y: "" | |
Y: "" | |
yes: "" | |
Yes: "" | |
YES: "" | |
n: "" | |
N: "" | |
no: "" | |
No: "" | |
NO: "" |
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") | |
#@ load("@ytt:yaml", "yaml") | |
#@ def config(): | |
cluster: #@ data.values.cluster.config | |
#@ end | |
--- | |
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
#@ load("@ytt:data", "data") | |
apiVersion: v1 | |
data: | |
#@yaml/text-templated-strings | |
config.yaml: | | |
cluster: (@= data.values.cluster.config @) | |
kind: ConfigMap | |
metadata: | |
name: my-cm | |
namespace: default |
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") | |
load("@ytt:assert", "assert") | |
load("alertrules_prometheus.lib.yml", "alertrules_prometheus") | |
load("alertrules_host.lib.yml", alertrules_host="alertrules_host") | |
alertruless = data.values.alertrules.enabled | |
alerts = data.values.alertrules.alerts | |
def alert_all(): | |
x = [] |
NewerOlder