Skip to content

Instantly share code, notes, and snippets.

🍺
⌨️ 🏃 🎧 📚 ☕️ 🔁

Bartosz Majsak bartoszmajsak

🍺
⌨️ 🏃 🎧 📚 ☕️ 🔁
Block or report user

Report or block bartoszmajsak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:757bebd7c17a5421293686f800e00fcc
╭─ bartek@hydrobook  …/github.com/maistra/istio-workspace  85266b5e  maistra_update ✚ ● ↑2 ⍟12  go1.12.7   ✔  18:36:09
╰─ oc get deployments
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
details-v1 1 1 1 1 1h
productpage-v1 1 1 1 1 1h
ratings-v1 1 1 1 1 1h
reviews-v1 1 1 1 1 1h
reviews-v2 1 1 1 1 1h
reviews-v3 1 1 1 1 1h
╭─ bartek@hydrobook  …/github.com/maistra/istio-workspace  85266b5e  maistra_update ✚ ● ↑2 ⍟12  go1.12.7   ✔  18:36:14
View start-istio.sh
#!/usr/bin/env bash
PATCH=$(cat <<EOF
admissionConfig:
pluginConfig:
MutatingAdmissionWebhook:
configuration:
apiVersion: apiserver.config.k8s.io/v1alpha1
kubeConfigFile: /dev/null
kind: WebhookAdmission
@bartoszmajsak
bartoszmajsak / start-istio.sh
Last active Jul 29, 2019
Maistra 0.12 on local OKD 3.11
View start-istio.sh
#!/usr/bin/env bash
CLUSTER_DIR="${HOME}/openshift.local.cluster"
if [ -z "$1" ]; then
echo "-- Starts cluster in the default location ${CLUSTER_DIR}. You can override it by passing it as a first argument."
[ -d "${CLUSTER_DIR}" ] || mkdir -p "${CLUSTER_DIR}"
else
CLUSTER_DIR=$1
fi
@bartoszmajsak
bartoszmajsak / resource.adoc
Last active Jun 26, 2019
Devoxx PL 2019 - Let's test on Prod! Wait! Whaaaaat?!
View gist:455d30e1a3ee46fb2a058b25d67cf23b
kind: Template                                                                                                                                
apiVersion: v1                                                                                                                                
parameters:                                                                                                                                   
  - name: IKE_DOCKER_REGISTRY                                                                                                                 
    required: true                                                                                                                            
    value: docker.io                                                                                                                          
  - name: IKE_DOCKER_REPOSITORY                                                                                                               
    required: true 
View gist:442b8fb45855a927be57d57c1f42c6df
kind: Template
apiVersion: v1
parameters:
- name: IKE_DOCKER_REGISTRY
required: true
value: docker.io
- name: IKE_DOCKER_REPOSITORY
required: true
View gist:83b3c23d05142e2f8644cf8e9a8f1dca
Fetching dependencies
dep ensure -v
Formatting code
goimports -l -w ./pkg/ ./cmd/ ./version/ ./test/ ./e2e/
Running a whole bunch of static analysis tools
View gist:bcb4d084c7e3e43bb6160e147b4c05e7
executing mvnw instead of mvn
[INFO] Scanning for projects...
[INFO]
[INFO] ----< org.jboss.arquillian.extension:arquillian-extension-byteman >-----
[INFO] Building Arquillian Extension Byteman 1.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ arquillian-extension-byteman ---
[INFO] Deleting /home/bartek/code/redhat/arquillian/extensions/arquillian-extension-byteman/target
[INFO]
View maven_build
$ mvn version
executing mvnw instead of mvn
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T20:33:14+02:00)
Maven home: /home/bartek/.m2/wrapper/dists/apache-maven-3.5.4-bin/4lcg54ki11c6mp435njk296gm5/apache-maven-3.5.4
Java version: 9, vendor: Oracle Corporation, runtime: /usr/java/jdk1.9.0-181
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.0.9-200.fc29.x86_64", arch: "amd64", family: "unix"
$ mvn clean install -P use-toolsjar-jigsaw
executing mvnw instead of mvn
View gist:3095835dbc444b8bf1e8e9cce31376e7
Generates operator-sdk code
/home/bartek/code/golang/src/github.com/aslakknutsen/istio-workspace/bin/operator-sdk generate k8s
Running end-to-end tests
ginkgo e2e/ -v -p
Running Suite: End To End Test Suite
====================================
You can’t perform that action at this time.