This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: development | |
--- | |
kind: Role | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
namespace: development | |
name: developers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |