What to expect in this doc:
- Traefik 2.0 has traffic mirroring functionality that should work on generic Kubernetes, but there's no good how-to guides, let this be the first.
- This is a how-to guide, that's optimized for understanding
#!/bin/bash | |
# This script sets the token for all repositories within organisation. | |
set -e | |
organisationName=$1 | |
if [ -z "$organisationName" ]; then | |
echo "Please provide organisation name" | |
exit 1 |
apiVersion: jobsmanager.raczylo.com/v1beta1 | |
kind: ManagedJob | |
metadata: | |
labels: | |
name: data-import | |
spec: | |
retries: 3 | |
params: | |
env: | |
- name: "FOO" |
#!/bin/bash | |
# This script will archive all repositories on github where | |
# the last commit was more than 2 years ago. | |
# It takes one argument, the github username / organisation name. | |
organisationName=$1 | |
if [ -z "$organisationName" ]; then | |
echo "Please provide organisation name" |
// Function: | |
func ConvertReplyType[T any](desiredType T, reply *[]byte) T { | |
if reply == nil { | |
return interface{}(nil).(T) | |
} | |
// reflect type of desired type | |
desiredTypeType := reflect.TypeOf(desiredType) | |
v := reflect.New(desiredTypeType).Interface() |