I've created a comprehensive bash script that will help you create all 18 PRs for the bitnami migration across the energywebfoundation organization.
- GitHub CLI installed and authenticated:
Total PRs Required: 18 across energywebfoundation organization
Migration Pattern: bitnami/[service]
β bitnamisecure/[service]
Repository: energywebfoundation/argocd-ecr-credentials-updater
Branch: fix/migrate-to-bitnamisecure-kubectl
Total Files Found: 26 files containing bitnami image references
Repositories Affected: 18 repositories
Search Scope: All public and accessible private repositories in energywebfoundation org
templates/cronJob.yaml
1. energywebfoundation/argocd-ecr-credentials-updater
templates/cronJob.yaml
bitnami/kubectl:1.23
β bitnamisecure/kubectl:1.23
ArgoCD ECR credentials updater is failing due to bitnami/kubectl:1.23
image not found, causing authentication issues for pulling ECR images.
FAILING COMPONENTS:
argocd-ecr-credentials-updater
- CronJob using bitnami/kubectl:1.23
(CRITICAL)FROM node:8.9.4-alpine | |
RUN apk add --no-cache git | |
RUN npm install -g yo generator-hubot | |
RUN adduser -D hubot | |
USER hubot | |
WORKDIR /home/hubot | |
RUN yo hubot --owner="Tim <timothy@fireflies.ai>" --name="hubot" --description="Hubot for slack" --adapter="slack" --defaults | |
RUN npm install --save hubot-slack | |
RUN npm install --save hubot-google-images | |
RUN npm install --save hubot-google-translate |
confirmations: | |
required: 4 # choose the number of confirmations you require | |
policyengine.simple: | |
fixedGasPrice: null | |
gasOracle: | |
mode: connector |
steps: | |
# build and push container | |
- name: "gcr.io/kaniko-project/executor:latest" | |
args: ["--cache=true", "--cache-ttl=48h", "--destination=gcr.io/$PROJECT_ID/$REPO_NAME:$BRANCH_NAME"] | |
# deploy container image to Cloud Run with env vars | |
- name: "gcr.io/cloud-builders/gcloud" | |
args: ['run', 'deploy', '$REPO_NAME', '--image', 'gcr.io/$PROJECT_ID/$REPO_NAME:$BRANCH_NAME', '--region', 'europe-west4', '--allow-unauthenticated', '--platform', 'managed', '--update-env-vars', 'NODE_ENV=prod'] | |
# set full traffic to latest revision (needed if rollback was performed) | |
- name: "gcr.io/cloud-builders/gcloud" | |
args: ['run', 'services', 'update-traffic', '$REPO_NAME', '--to-latest', '--region', 'europe-west4', '--platform', 'managed'] |
# File: cloudbuild.yaml | |
steps: | |
# build the container image | |
- name: 'gcr.io/cloud-builders/docker' | |
args: [ 'build', '-t', 'gcr.io/$PROJECT_ID/demo-app', '.' ] | |
# push the container image | |
- name: 'gcr.io/cloud-builders/docker' | |
args: [ 'push', 'gcr.io/$PROJECT_ID/demo-app'] | |
# deploy to Cloud Run | |
- name: "gcr.io/cloud-builders/gcloud" |