Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

Bartosz Majsak bartoszmajsak

🌴
On vacation
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 servicemeshmemberroll.md
Error from server (Conflict): error when applying patch:
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"maistra.io/v1\",\"kind\":\"ServiceMeshMemberRoll\",\"metadata\":{\"annotations\":{},\"creationTimestamp\":\"2019-10-04T05:52:15Z\",\"finalizers\":[\"maistra.io/istio-operator\"],\"generation\":41,\"name\":\"default\",\"namespace\":\"service-mesh-1\",\"ownerReferences\":[{\"apiVersion\":\"maistra.io/v1\",\"kind\":\"ServiceMeshControlPlane\",\"name\":\"basic-install\",\"uid\":\"a1bf5df4-e66a-11e9-a484-026cf1a88166\"}],\"resourceVersion\":\"288116\",\"selfLink\":\"/apis/maistra.io/v1/namespaces/service-mesh-1/servicemeshmemberrolls/default\",\"uid\":\"1e08dbb4-e66b-11e9-97d7-0ee1719322d0\"},\"spec\":{\"members\":[\"bookinfo\",\"foo\",\"bar\",\"legacy\",\"ike-tests-rgbxbqhklxmeypsv\",\"ike-tests-rczqwrmkpskwxubo\",\"ike-tests-rppalpspmhkspdrq\",\"ike-tests-bubbyyzdedaphojz\",\"ike-tests-ukgwxtoholkuplpq\",\"ike-tests-gsbehcnivbnzdmxb\",\"aslak-devconf\",\"i
View v0.0.2.md
View gist:8c7ad6d3611b82391c43c2bc1dbf5533
You have access to the following projects and can switch between them with 'oc project <projectname>':
* default
ike-tests-bqzrqxqyzlkiriob
ike-tests-stsaiyxgijhhkfcs
ike-tests-xmzckfouxrioadjk
istio-operator
istio-workspace-operator
kiali-operator
kube-public
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
You can’t perform that action at this time.