Skip to content

Instantly share code, notes, and snippets.

View lazypower's full-sized avatar
💭
Bring back independent blogs, rss feeds, and the small web.

Charles "Chuck" Butler lazypower

💭
Bring back independent blogs, rss feeds, and the small web.
View GitHub Profile
apiVersion: v1
kind: Namespace
metadata:
name: development
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
namespace: development
name: developers
#/etc/udev/rules.d/98-monitor-hotplug.rule
KERNEL=="card0", SUBSYSTEM=="drm", ACTION=="change",
ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/charles/.Xauthority",
RUN+="/bin/bash /home/charles/monitor-hotplug.sh"
# This role binding allows "kube-system:default" admin privleged access
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: add-on-cluster-admin
namespace: kube-system
subjects:
- kind: ServiceAccount
name: default
namespace: kube-system
#!/bin/bash
if [ ! -z $1 ]; then
CHANNEL=$1
else
CHANNEL='1.6/stable'
fi
if [ -z $SNAP_RESOURCE_PATH ]; then
echo "Unable to continue. Missing SNAP_RESOURCE_PATH env var".
#!/bin/bash
if [ ! -z $1 ]; then
CHANNEL=$1
else
CHANNEL='1.6/stable'
fi
if [ -z $SNAP_RESOURCE_PATH ]; then
echo "Unable to continue. Missing SNAP_RESOURCE_PATH env var".
ubuntu@charmbox:~/charms/layers/basic$ diff Makefile ../../builds/kubernetes-master/Makefile
18c18
< @PATH=.tox/py34/bin:.tox/py35/bin flake8 $(wildcard hooks reactive lib unit_tests tests)
---
> @tox -e lint
#!/usr/bin/env bash
# Runs the charm build for the Canonical Kubernetes charms.
set -o errexit # Exit when an individual command fails.
#set -o nounset # Exit when undeclaried variables are used.
set -o pipefail # The exit status of the last command is returned.
set -o xtrace # Print the commands that are executed.
# banana
WORKSPACE=$PWD
#!/usr/bin/python3
import amulet
import os
import unittest
import yaml
from amulet_utils import check_systemd_service
from amulet_utils import kubectl
from amulet_utils import run
#!/bin/bash
echo "Non empty responses will equate to true"
echo "This script allows failure and will re-execute in whole-sale on re-exec"
echo " "
echo " "
echo "Atomically nuke and re-download snaps?"
read DOWNLOAD_SNAPS
#!/bin/bash
if [ -z $1 ]; then
echo "No model specified using `juju switch`"
else
juju add-model $1
fi
juju model-defaults enable-os-refresh-update=false
juju model-defaults enable-os-upgrade=false