Skip to content

Instantly share code, notes, and snippets.

View bartoszmajsak's full-sized avatar
🎯
🏃🏻 💻 ☕ 🔁

Bartosz Majsak bartoszmajsak

🎯
🏃🏻 💻 ☕ 🔁
View GitHub Profile
@bartoszmajsak
bartoszmajsak / gh-pr.adoc
Last active February 16, 2024 09:56
GH PR workflow

Motivation

Most of the times, when PR is not trivial in scope and size, Web UI can lead to loosing focus and context while scrolling down through the blob of changes.

It’s way more efficient to go through the code in the IDE. The GH plugins available for most of them can help with that, but they simply checkout the branch for you…​

I got tired of stashing changes, creating "wip" commits and shuffling branches.

And so this workflow was born.

@bartoszmajsak
bartoszmajsak / test.log
Created September 21, 2023 09:06
Dscinitialization Test DSCInitialization controller
GOROOT=/home/bartek/.gvm/gos/go1.19.12 #gosetup
GOPATH=/home/bartek/go #gosetup
/home/bartek/.gvm/gos/go1.19.12/bin/go test -c -o /home/bartek/.cache/JetBrains/GoLand2023.2/tmp/GoLand/___go_test_github_com_opendatahub_io_opendatahub_operator_v2_controllers_dscinitialization.test github.com/opendatahub-io/opendatahub-operator/v2/controllers/dscinitialization #gosetup
/home/bartek/.gvm/gos/go1.19.12/bin/go tool test2json -t /home/bartek/.cache/JetBrains/GoLand2023.2/tmp/GoLand/___go_test_github_com_opendatahub_io_opendatahub_operator_v2_controllers_dscinitialization.test -test.v -test.paniconexit0
=== RUN TestAPIs
Running Suite: Controller Suite - /home/bartek/code/rhods/opendatahub-operator/controllers/dscinitialization
============================================================================================================
Random Seed: 1695287000
Will run 4 of 4 specs
[89892e2cd9] Tue Aug 23 10:27:46 2022 +0200 (Jacek Ewertowski): [misc] Integration test fixes (#530)
[35c253ada5] Tue Aug 23 11:03:52 2022 +0200 (Jacek Ewertowski): [misc] Add vendor directory
[b847b42cc6] Tue Jun 14 22:53:29 2022 +0200 (Daniel Grimm): [no-cluster-rbac] Introduce xns-informer (#533)
[85ce250a2a] Mon Jun 20 21:08:38 2022 +0200 (Jacek Ewertowski): [no-cluster-rbac] MAISTRA-2051: Allow istiod to run without Node access (#255) (#545)
[5ef93a7dea] Tue Jun 21 12:28:37 2022 +0200 (Jacek Ewertowski): [no-cluster-rbac] MAISTRA-1895: Add option to enable/disable CRD scan (#260) (#546)
[ac3eb3bf6e] Tue Jun 21 16:03:38 2022 +0200 (Jacek Ewertowski): [no-cluster-rbac] MAISTRA-1897: Allow disabling IngressClass support (#263) (#547)
[69335e73c6] Fri Jun 24 13:20:30 2022 +0200 (Jacek Ewertowski): [no-cluster-rbac] OSSM-1420: Ensure istiod can run with no cluster-scoped privileges (#513) (#548)
[b3ac97666d] Thu Jun 30 19:46:37 2022 +0200 (Jacek Ewertowski): [no-cluster-rbac] OSSM-796: add SMMR integration te
[ccd1597414] Thu Apr 21 21:22:10 2022 -0400 (Greg Hanson): [release-1.14] Automated branching step 4 (#38512)
[6661edbe92] Thu Apr 21 19:24:50 2022 -0700 (Istio Automation): Automator: update istio/api@release-1.14 dependency in istio/istio@release-1.14 (#38516)
[aaf91a45d7] Thu Apr 21 19:24:57 2022 -0700 (Istio Automation): Automator: update istio/pkg@release-1.14 dependency in istio/istio@release-1.14 (#38517)
[997efb8a42] Thu Apr 21 20:05:49 2022 -0700 (Istio Automation): Automator: update common-files@release-1.14 in istio/istio@release-1.14 (#38518)
[12fb9e24cc] Thu Apr 21 21:10:49 2022 -0700 (Istio Automation): Automator: update istio/client-go@release-1.14 dependency in istio/istio@release-1.14 (#38519)
[227d81ad75] Fri Apr 22 10:51:50 2022 -0700 (Istio Automation): Automator: update common-files@release-1.14 in istio/istio@release-1.14 (#38530)
[d315965155] Fri Apr 22 11:42:50 2022 -0700 (Istio Automation): Automator: update istio/client-go@release-1.14 dependency in istio/istio@release-1.14 (#38527)
@bartoszmajsak
bartoszmajsak / align-deps.sh
Last active October 25, 2022 20:17
xns-informers deps update
#!/bin/bash
set -eo pipefail
die () {
echo >&2 "$@"
show_help
exit 1
}
@bartoszmajsak
bartoszmajsak / add-branch.sh
Created October 25, 2022 11:21
New branch - Prow jobs automation
#!/bin/bash
set -eo pipefail
die () {
echo >&2 "$@"
show_help
exit 1
}
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: "2022-07-15T11:30:12Z"
name: productpage-v1
spec:
replicas: 1
selector:
matchLabels:
app: productpage
@bartoszmajsak
bartoszmajsak / microk8s_setup.sh
Last active July 17, 2020 09:32 — forked from caglar10ur/microk8s
microk8s setup with istio
snap install microk8s --classic
sudo ufw default allow routed
sudo iptables -P FORWARD ACCEPT
## Fedora specific fix - see https://github.com/ubuntu/microk8s/issues/408#issuecomment-581100625
sudo firewall-cmd --zone=trusted --add-masquerade --permanent
sudo firewall-cmd --zone=trusted --add-interface=cni0 --permanent
sudo firewall-cmd --reload
microk8s.enable dns dashboard metrics-server