Skip to content

Instantly share code, notes, and snippets.

View jwendell's full-sized avatar

Jonh Wendell jwendell

View GitHub Profile
#!/bin/bash
oc delete ns -l istio-testing || true
oc delete ns -l gateway-conformance || true
oc delete ns istio-system || true
oc -n kube-system delete ds istio-cni-node || true
oc delete MutatingWebhookConfiguration -l release=istio || true
oc delete ClusterRoleBinding -l release=istio || true
#!/bin/bash
set -exo pipefail
REPOS="istio istio-operator envoy proxy api prometheus istio-must-gather header-append-filter ratelimit xns-informer"
#REPOS="api prometheus istio-must-gather header-append-filter ratelimit xns-informer"
VERSION="2.3.1"
BRANCH="releases/${VERSION}"
TAG="maistra-${VERSION}"
#!/bin/bash
set -exo pipefail
REPOS="istio istio-operator envoy proxy istio-must-gather prometheus ratelimit api"
#INACTIVE_REPOS="header-append-filter ratelimit xns-informer api"
BRANCH="maistra-2.3"
VERSION="2.3.2"
REMOTE_BASE="git@github.com:maistra"
@jwendell
jwendell / pr-maistra.sh
Created November 18, 2021 16:31
List open PR's in maistra org
#!/bin/bash
for repo in $(gh repo list --no-archived maistra --json name -q ".[].name"); do
output=$(gh --repo "maistra/${repo}" pr list --json url,title,baseRefName -q ".[] | .url + \" - \" + .baseRefName + \" - \" + .title")
if [ -n "${output}" ]; then
echo "PR's in ${repo}:"
echo "${output}"
echo
fi
done
#!/bin/bash
REPOS="istio proxy envoy api client-go common-files pkg release-builder tools"
for REPO in ${REPOS}; do
gh -R istio/${REPO} pr list --base release-1.7
done
@jwendell
jwendell / tick.sh
Last active February 5, 2020 13:13
#!/bin/bash
A=$(date +%Y-%m-%dT%H-%M-%S)
B=`date +%Y-%m-%dT%H-%M-%S`
while true; do
echo $A
echo $B
sleep 2
done

master:

$ istioctl version --short=false --remote=false
version.BuildInfo{Version:"d262f6b086bb67771e65132d0044adf9748a65ea-dirty", GitRevision:"d262f6b086bb67771e65132d0044adf9748a65ea-dirty", GolangVersion:"go1.13.3", BuildStatus:"Clean", GitTag:"1.2.0-rc.3-1261-gd262f6b08"}

$ istioctl manifest generate --set profile=minimal  --set values.istio_cni.HAHAHA=true 
bad path=value (values.istio_cni.HAHAHA=true): unknown field "HAHAHA" in v1alpha1.CNIConfig

1.4:

#!/bin/bash
if [ -z "${GATEWAY_URL}" ]; then
echo "Set the GATEWAY_URL variable first"
exit 1
fi
# $1: If non empty, simulates user logged in
# $2: If non empty, simulates a different source ip
function exec_curl() {
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char const *argv[])
{
if (argc != 2) {
fprintf(stderr, "Usage: %s <MEM SIZE>\n", argv[0]);
return 1;
}