Steps to test:
- Setup model-default to always include the ppa
cat << EOF > model-config.yaml #cloud-config apt: sources: lp2023211: source: 'ppa:freyes/lp2023211'
#!/bin/bash | |
kubectl apply -n zuul -f - <<EOF | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: fake-service | |
spec: | |
type: LoadBalancer | |
ports: |
#!/bin/bash | |
# source: https://stackoverflow.com/a/78983037 | |
# In an emergency that requires freeing resources in one specific node, use this: | |
export OVERLOADED_NODE=worker-09 | |
export DEPLOYMENT_TO_MOVE=myapp | |
kubectl top nodes | |
kubectl taint nodes ${OVERLOADED_NODE} tmp=tmp:NoSchedule | |
kubectl rollout restart deployment ${DEPLOYMENT_TO_MOVE} | |
kubectl rollout status deployment ${DEPLOYMENT_TO_MOVE} |
#!/bin/bash -eux | |
# | |
# Usage: | |
# ./git-cherry-pick-openstack <COMMIT> <TOPIC> <TARGET> | |
# | |
# Example: | |
# ./git-cherry-pick-openstack 83ffa9eb3a2418897bf2707d14efce725d775090 bug/2030094 ussuri | |
COMMIT_ID=${1} | |
TOPIC=${2} |
Steps to test:
cat << EOF > model-config.yaml
#cloud-config
apt:
sources:
lp2023211:
source: 'ppa:freyes/lp2023211'
#!/usr/bin/env python3 | |
# | |
# Usage example: | |
# python3 client.py "ws://127.0.0.1:6083/?token=5f7854b7-bf3a-41eb-857a-43fc33f0b1ec" | |
# | |
import sys | |
from ws4py.client.threadedclient import WebSocketClient | |
class LazyClient(WebSocketClient): |
echo "DEBOOTSTRAP_PROXY=http://localhost:3128/" >> ~/.mk-sbuild.rc |
#!/usr/bin/python3 | |
"""A script to retrieve a Launchpad token.""" | |
import argparse | |
import os | |
import sys | |
from unittest import mock | |
from launchpadlib.launchpad import Launchpad |
Switch charmcraft aliases:
Usage examples:
charmcraft-workon 1.5
charmcraft-workon 2.0
#!/bin/bash -eu | |
CHANNELS=() | |
ARCH=amd64 | |
SERIES=() | |
CONFIG= | |
DEBUG=0 | |
CHARMS=() | |
while (($# > 0)) |