####!/bin/bash
export TMP_DIR="$(pwd)"
export SUFFIX="-jrfuller"
# Use an official Node.js runtime as a parent image | |
FROM node:14 | |
# Set the working directory in the container | |
WORKDIR /usr/src/app | |
# Copy package.json and package-lock.json to the working directory | |
COPY package*.json ./ | |
# Install app dependencies |
apiVersion: org.eclipse.che/v2 | |
kind: CheCluster | |
metadata: | |
name: devspaces | |
namespace: openshift-devspaces | |
annotations: | |
argocd.argoproj.io/sync-wave: "20" | |
spec: | |
components: | |
cheServer: |
#!/bin/bash | |
URLS_TO_VALIDATE="https://registry.redhat.io | |
https://quay.io | |
https://cdn01.quay.io | |
https://cdn02.quay.io | |
https://cdn03.quay.io | |
https://sso.redhat.com | |
http://sso.redhat.com | |
https://quay-registry.s3.amazonaws.com |
#!/bin/bash | |
oc delete subscription ecr-secret-operator \ | |
--namespace ecr-secret-operator | |
oc delete subscription ecr-secret-operator \ | |
--namespace ecr-secret-operator | |
oc delete clusterserviceversion ecr-secret-operator.v0.3.2 \ | |
--namespace ecr-secret-operator | |
oc delete project ecr-secret-operator | |
oc delete project my-app |
package main | |
import "time" | |
import "fmt" | |
func main() { | |
tickerChannel := time.NewTicker(1 * time.Second) | |
go func() { | |
for { | |
select { |
# set the expiry to a month ago | |
expirydate=$(date -d'-1 month' +%s) | |
# I can use az -o table with cut -d driectly | |
for snapshot in $(az snapshot list -g $resourceGroup | jq -r '.[] | [.id, .timeCreated[:10], .name] | join("#")') | |
do | |
snapshotId=$(echo $snapshot | cut -f1 -d "#") | |
snapshotDate=$(echo $snapshot | cut -f2 -d "#" | xargs -I{} date -d {} +%s) | |
snapshotName=$(echo $snapshot | cut -f3 -d "#") | |
[0] Pre-requisites | |
Install google-cloud-sdk in your laptop | |
Documentation: https://cloud.google.com/sdk | |
Install helm in your laptop. | |
Documentation: https://helm.sh/docs/using_helm/#installing-helm | |
Get latest Istio. | |
curl -L https://git.io/getLatestIstio | ISTIO_VERSION=1.1.7 sh - |