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 | |
set -Eeuo pipefail | |
function error_handler() { | |
local code="${1:-${?}}" | |
abort "🚨 Error (code: ${code}) occurred at ${BASH_SOURCE[1]}:${BASH_LINENO[0]}, with command: ${BASH_COMMAND}" | |
} | |
function abort() { |
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
kubectl apply -f https://raw.githubusercontent.com/cardil/openshift-serverless-pres-notes/master/serverless-subscription.yaml | |
while ! kubectl get csv -n openshift-serverless -l operators.coreos.com/serverless-operator.openshift-serverless= 1>/dev/null 2>&1; do sleep 1; done | |
kubectl wait --for=jsonpath='{.status.phase}'=Succeeded \ | |
--timeout=5m csv -n openshift-serverless \ | |
-l operators.coreos.com/serverless-operator.openshift-serverless= | |
kubectl apply -f https://raw.githubusercontent.com/cardil/openshift-serverless-pres-notes/master/serverless-bundle.yaml | |
while ! kubectl get knativeserving knative-serving -n knative-serving 1>/dev/null 2>&1; do sleep 1; done | |
kubectl wait --for=condition=Ready --timeout=5m \ | |
knativeserving knative-serving -n knative-serving |
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
OpenSSH_8.6p1, OpenSSL 1.1.1l FIPS 24 Aug 2021 | |
debug1: Reading configuration data /home/ksuszyns/.ssh/config | |
debug1: Reading configuration data /etc/ssh/ssh_config | |
debug3: /etc/ssh/ssh_config line 55: Including file /etc/ssh/ssh_config.d/50-redhat.conf depth 0 | |
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf | |
debug2: checking match for 'final all' host github.com originally github.com | |
debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 3: not matched 'final' | |
debug2: match not found | |
debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1 (parse only) | |
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config |
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: messaging.knative.dev/v1beta1 | |
kind: KafkaChannel | |
metadata: | |
name: kafka-channel-6 | |
labels: | |
app: kafka-channel-6 | |
app.kubernetes.io/component: kafka-channel-6 | |
app.kubernetes.io/instance: kafka-channel-6 | |
app.kubernetes.io/name: kafka-channel-6 | |
spec: |
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 | |
set -Eeuo pipefail | |
version="${1:?Pass a kernel version as arg[1]}" | |
build="${2:?Pass a kernel build as arg[2]}" | |
repo="${KOJI_REPO:-https://kojipkgs.fedoraproject.org//packages/kernel}" | |
arch="$(uname --hardware-platform)" | |
source /etc/os-release | |
rel="${VERSION_ID}" |
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 | |
set -Eexuo pipefail | |
if ! [ -d serverless-operator ]; then | |
git clone https://github.com/cardil/serverless-operator.git --branch srvke-927 | |
fi | |
cd serverless-operator | |
env SYSTEM_NAMESPACE=knative-serving \ |
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: batch/v1 | |
kind: CronJob | |
metadata: | |
name: heartbeat-cron | |
spec: | |
# Run every minute | |
schedule: "*/1 * * * *" | |
jobTemplate: | |
metadata: | |
labels: |
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
func waitForUser() pkgupgrade.BackgroundOperation { | |
file, err := homedir.Expand( | |
fmt.Sprintf("~/.cache/waitForUser-%s.sock", uuid.NewString()), | |
) | |
ensure.NoError(err) | |
var mod time.Time | |
check := func() (bool, error) { | |
res, err := os.Stat(file) | |
if err != nil { | |
return false, err |
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
package main | |
import ( | |
"fmt" | |
"html" | |
"log" | |
"net/http" | |
"time" | |
) |
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 | |
set -Eeuo pipefail | |
function testing.of() { | |
local what | |
what="${1:?Pass what as arg[1]}" | |
echo "Testing of ${what}..." | |
eval "non-existing-showcase-command ${what}" |