Skip to content

Instantly share code, notes, and snippets.

@myshkin5
myshkin5 / README.md
Created March 7, 2019 17:28
Create a mutating configmap

mutating-configmap

Steps to reproduce a changing configmap mounted as a volume to see the effects on a running pod.

Steps

  1. Create the initial config map:
    kubectl create configmap my-cm --from-file configmap.txt --dry-run --output yaml | \
       grep -v creationTimestamp | \
       kubectl apply -f -
@myshkin5
myshkin5 / main.go
Last active July 14, 2022 18:55
Best starting words for https://duotrigordle.com
package main
import (
"bufio"
"log"
"os"
"strings"
)
type letterStatus int
@myshkin5
myshkin5 / subtests_test.go
Last active September 30, 2022 21:32
Running Go sub-tests
package subtests_test
import (
"fmt"
"testing"
)
func TestSomething(t *testing.T) {
fmt.Println("Something")