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
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: shell-cluster-admin | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: shell-cluster-admin |
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
Building function image | |
Pulling image gcr.io/paketo-buildpacks/builder:base | |
29dc7596322b: Already exists | |
ed10c4dc1cb9: Already exists | |
baabd6616689: Already exists | |
70e0bea64ce8: Already exists | |
5128128e1ba9: Already exists | |
5e995c53af94: Already exists | |
c971d13c0b7c: Already exists | |
d9853c09e885: Already exists |
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
#!/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 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 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 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 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 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 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 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 |