Skip to content

Instantly share code, notes, and snippets.

View renuka-fernando's full-sized avatar
🏠
Working from home

Renuka Piyumal Fernando renuka-fernando

🏠
Working from home
View GitHub Profile
{
"configs": [
{
"@type": "type.googleapis.com/envoy.admin.v3.BootstrapConfigDump",
"bootstrap": {
"node": {
"id": "Default",
"cluster": "default_cluster",
"user_agent_name": "envoy",
"user_agent_build_version": {
{
"configs": [
{
"@type": "type.googleapis.com/envoy.admin.v3.BootstrapConfigDump",
"bootstrap": {
"node": {
"id": "Default",
"cluster": "default_cluster",
"user_agent_name": "envoy",
"user_agent_build_version": {
trivyVersion="latest"
trivyExitCode=1
buildFail=0
trivy() {
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
-v "$PWD/.trivyignore":/.trivyignore:ro aquasec/trivy:${trivyVersion} image --exit-code "${trivyExitCode}" $4 \
--severity MEDIUM,HIGH,CRITICAL --ignorefile /.trivyignore --timeout 10m $1/$2:$3
if [ ${trivyExitCode} -eq 1 -a $? -eq 1 ]
then
{
"configs": [
{
"@type": "type.googleapis.com/envoy.admin.v3.BootstrapConfigDump",
"bootstrap": {
"node": {
"id": "Default",
"cluster": "default_cluster",
"user_agent_name": "envoy",
"user_agent_build_version": {
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: adapter
namespace: cc
labels:
app.kubernetes.io/component: choreo-connect-adapter
app.kubernetes.io/instance: foo
app.kubernetes.io/managed-by: Helm
@renuka-fernando
renuka-fernando / choreo-connect-v1.0.0-helm-get-started.md
Last active April 25, 2022 03:14
Updated helm chart version for Choreo Connect
@renuka-fernando
renuka-fernando / install-olm-marketplace.sh
Created September 10, 2020 14:10
Install OperatorHub OLM and Marketplace operator specific version
OLM_VERSION=0.15.1
MARKETPLACE_VERSION=4.5
OPERATOR_MARKETPLACE_VERSION="release-${MARKETPLACE_VERSION}"
curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/${OLM_VERSION}/install.sh | bash -s ${OLM_VERSION}
kubectl apply -f https://raw.githubusercontent.com/operator-framework/operator-marketplace/${OPERATOR_MARKETPLACE_VERSION}/deploy/upstream/01_namespace.yaml
kubectl apply -f https://raw.githubusercontent.com/operator-framework/operator-marketplace/${OPERATOR_MARKETPLACE_VERSION}/deploy/upstream/03_operatorsource.crd.yaml
kubectl apply -f https://raw.githubusercontent.com/operator-framework/operator-marketplace/${OPERATOR_MARKETPLACE_VERSION}/deploy/upstream/04_service_account.yaml
kubectl apply -f https://raw.githubusercontent.com/operator-framework/operator-marketplace/${OPERATOR_MARKETPLACE_VERSION}/deploy/upstream/05_role.yaml
kubectl apply -f https://raw.githubusercontent.com/operator-framework/operator-marketplace/${OPERATOR_MARKETPLACE_VERSION}/deploy/upstrea
@renuka-fernando
renuka-fernando / force-delete-namespace.sh
Last active January 15, 2023 13:16
Kubernetes - Force delete a Namespace with Invalid Finalizers
# namespace to be deleted in k8s
NAMESPACE=foo
# Terminal 1
kubectl proxy
# Terminal 2
kubectl get ns $NAMESPACE -o json | \
jq '.spec.finalizers=[]' | \
curl -X PUT "http://localhost:8001/api/v1/namespaces/${NAMESPACE}/finalize" -H "Content-Type: application/json" --data @-
@renuka-fernando
renuka-fernando / wso2am-operator-configs.yaml
Last active September 2, 2020 05:12
WSO2AM-operator-configs.yaml
#Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
#
# WSO2 Inc. licenses this file to you under the Apache License,
# Version 2.0 (the "License"); you may not use this file except
# in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
@renuka-fernando
renuka-fernando / api-operator-configs.yaml
Last active August 17, 2020 06:35
api-operator-configs.yaml for api-operator 1.2.0 pre-v6
#Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
#
# WSO2 Inc. licenses this file to you under the Apache License,
# Version 2.0 (the "License"); you may not use this file except
# in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,