Skip to content

Instantly share code, notes, and snippets.

View bzub's full-sized avatar

bzub bzub

View GitHub Profile
@bzub
bzub / test_log.txt
Created January 14, 2019 04:13
terraform-provider-acme PR#14 test results
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -timeout 240m
=== RUN TestPluginVersion
--- PASS: TestPluginVersion (0.00s)
PASS
ok github.com/terraform-providers/terraform-provider-acme 0.013s
=== RUN TestResourceACMERegistrationMigrateState
2019/01/14 03:59:39 [DEBUG] Migrating acme_registration state: old v0 state: &terraform.InstanceState{ID:"regurl", Attributes:map[string]string{"registration_body":"regbody", "registration_url":"https://acme-staging.api.letsencrypt.org/acme/reg/123456789", "registration_new_authz_url":"https://acme-staging.api.letsencrypt.org/acme/new-authz", "registration_tos_url":"https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf", "server_url":"https://acme-staging.api.letsencrypt.org/directory", "account_key_pem":"key", "email_address":"nobody@example.com"}, Ephemeral:terraform.EphemeralState{ConnInfo:map[string]string(nil), Type:""}, Meta:map[string]interface {}(nil), Tainted:false, mu:sync.Mutex{
@bzub
bzub / main.go
Created January 9, 2020 16:27
kyaml: projected volume source sequence key
package main
import (
"fmt"
"os"
"sigs.k8s.io/kustomize/kyaml/yaml"
)
func main() {
@bzub
bzub / merge2_test.go
Last active January 10, 2020 21:37
use deepfield for associative key checck
{`nested associative -- add same name, different path`,
`
kind: Deployment
volumes:
- name: vol1
projected:
sources:
- secret:
name: source1
optional: false
@bzub
bzub / test.json
Created October 5, 2017 14:50
CoreOS Ignition + OEM
{
"ignition": {
"config": {},
"timeouts": {},
"version": "2.1.0"
},
"networkd": {},
"passwd": {},
"storage": {
"files": [{
@bzub
bzub / flatcar_firecracker.sh
Created March 8, 2020 17:33
Flatcar Linux via Flatcar
#!/usr/bin/env sh
set -e
command="${1}"
usage="${0} start|stop"
if [ -z "${command}" ]; then
echo "ERROR: command argument required. [start|stop]"
echo "${usage}"
exit 1
@bzub
bzub / nothing.yaml
Created March 14, 2021 01:53
nothing
# nothing
@bzub
bzub / kube-router-cfg.yaml
Last active January 19, 2022 20:52
kubeadm kube-router troubleshooting
apiVersion: v1
kind: ConfigMap
metadata:
name: kube-router-cfg
namespace: kube-system
labels:
tier: node
k8s-app: kube-router
data:
cni-conf.json: |
@bzub
bzub / build.sh
Created November 30, 2018 18:03
IWD/DBUS OCI container build script using pacstrap (Arch Linux)
#!/usr/bin/env sh
set -e
set -x
# Boilerplate setup
alias buildah="sudo buildah"
container="$(buildah from scratch)"
alias run="buildah run ${container}"
alias copy="buildah copy ${container}"
alias add="buildah add ${container}"
@bzub
bzub / sidero_hacks.md
Created September 15, 2022 12:03
Sideo Hacks

Sidero Hacks

Delete Cluster, Keep PKI

You just need to keep the CLUSTER_NAME-ca and CLUSTER_NAME-talos secrets around.

To do this you an remove the owner reference from them.

cluster_name="example-cluster"