This file contains 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 | |
set -euo pipefail | |
# Start from a clean slate | |
kind delete cluster | |
# Start a new kind cluster | |
# kind create cluster --image kindest/node:v1.24.13 | |
kind create cluster |
This file contains 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 | |
set -euo pipefail | |
function debug() { | |
>&2 echo "DEBUG: ${1}" | |
} | |
function get_labels() { | |
skopeo inspect --no-tags --config "docker://${1}" | jq '.config.Labels' |
This file contains 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 | |
set -euo pipefail | |
APPLICATION=$1 | |
echo "Global Component List for ${APPLICATION} application" | |
components="$(oc get component -o json | \ | |
jq '.items[] | select(.spec.application == "'${APPLICATION}'") | "\(.metadata.name);\(.spec.containerImage)"' -r)" |
This file contains 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 | |
set -euo pipefail | |
# Based on https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go | |
adjectives=( | |
"admiring" | |
"adoring" | |
"affectionate" | |
"agitated" |
This file contains 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
package blobby | |
import future.keywords.contains | |
import future.keywords.if | |
import future.keywords.in | |
# METADATA | |
# title: Fetch Blob | |
# description: Just a fetch blob from the OCI registry. |
This file contains 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 | |
set -euo pipefail | |
# Start from a clean slate | |
kind delete cluster | |
# Start a new kind cluster | |
# kind create cluster --image kindest/node:v1.24.13 | |
kind create cluster |
This file contains 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 | |
# Create a new temporary kubeconfig file and display a command to | |
# configure the current shell to use the new kubeconfig file. | |
# This is helpful if you interact with multiple OpenShift clusters | |
# at the same time. | |
# | |
# Usage: | |
# $(kubectl-new-env) | |
set -euo pipefail |
This file contains 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
from terminatorlib import config, plugin | |
AVAILABLE = ['JiraIssueURLHandler'] | |
DEFAULT_JIRA_URL = 'https://jira.atlassian.com/browse' | |
DEFAULT_MATCH = '[A-Z0-9]{3,}-[0-9]{3,}' | |
class JiraIssueURLHandler(plugin.URLHandler): | |
capabilities = ['url_handler'] | |
handler_name = 'jira_issue' |
This file contains 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/env python | |
from __future__ import print_function | |
from collections import Counter | |
import os.path | |
import subprocess | |
import json | |