kctrl
cannot update package installations interactively. This helps. Needs gum.
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 = [] |
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:overlay", "overlay") | |
#@ missing = ["{}.{}.yaml".format(data.values.namespace, data.values.project)] | |
#@ def complete(existing, _): | |
#@ return sorted(set(list(existing) + list(missing))) | |
#@ end | |
#@overlay/match by=overlay.subset({"kind": "Kustomization"}) |
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
❯ uname -a | |
Darwin <redacted username> 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64 | |
❯ go version | |
go version go1.17.5 darwin/amd64 | |
❯ cat *go | |
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
│ File: main.go | |
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────── |
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
GET /oauth_handshake?next=%2F 302 1.527 ms - 646 | |
{ | |
options: { | |
redirect_uri: 'http://lab-k8s-fundamentals-w01-s001.demo-127-0-0-1.nip.io/oauth_callback', | |
scope: 'user:info', | |
code: 'akHssOixfNNnjm2GY1YcbIjVSIeYRg' | |
}, | |
level: 'debug', | |
message: 'token_options', | |
timestamp: '2021-07-05T08:06:04.228Z' |
NewerOlder