Skip to content

Instantly share code, notes, and snippets.

View bzub's full-sized avatar

bzub bzub

View GitHub Profile
@bzub
bzub / talos_sidero_siderolink_notes.md
Last active January 18, 2023 16:22
Talos + Sidero + SideroLink Notes
@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"
@bzub
bzub / nothing.yaml
Created March 14, 2021 01:53
nothing
# nothing
@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 / 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 / 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 / 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 / test_log.txt
Created January 14, 2019 02:09
terraform-provider-acme PR#17 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 01:48:06 [DEBUG] Migrating acme_registration state: old v0 state: &terraform.InstanceState{ID:"regurl", Attributes:map[string]string{"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", "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"}, Ephemeral:terraform.EphemeralState{ConnInfo:map[string]string(nil), Type:""}, Meta:map[string]interface {}(nil), Tainted:false, mu:sync.Mutex{
@bzub
bzub / test_log.txt
Created January 14, 2019 01:25
terraform-provider-acme PR#18 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 (cached)
=== RUN TestResourceACMERegistrationMigrateState
2019/01/14 00:21:28 [DEBUG] Migrating acme_registration state: old v0 state: &terraform.InstanceState{ID:"regurl", Attributes:map[string]string{"account_key_pem":"key", "email_address":"nobody@example.com", "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"}, Ephemeral:terraform.EphemeralState{ConnInfo:map[string]string(nil), Type:""}, Meta:map[string]interface {}(nil), Tainted:false, mu:sync.Mute