GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Renamed Chart according to convention · dockercui/mina@0067b69

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • helm/cron_jobs/berkeley-migration-cronjob
    • .helmignore
    • Chart.yaml
    • README.md
    • files
      • mainnet-migrated-phase-1.sh
      • test-run.sh
    • templates
      • NOTES.txt
      • _helpers.tpl
      • cronjobs.yaml
      • gcloud-secret.yaml
    • values.yaml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎…/cron_jobs/replayer-cronjobs/.helmignore‎ ‎…s/berkeley-migration-cronjob/.helmignore‎helm/cron_jobs/replayer-cronjobs/.helmignore renamed to helm/cron_jobs/berkeley-migration-cronjob/.helmignore helm/cron_jobs/replayer-cronjobs/.helmignore renamed to helm/cron_jobs/berkeley-migration-cronjob/.helmignore

Copy file name to clipboard
File renamed without changes.
Collapse file

‎…m/cron_jobs/replayer-cronjobs/Chart.yaml‎ ‎…bs/berkeley-migration-cronjob/Chart.yaml‎helm/cron_jobs/replayer-cronjobs/Chart.yaml renamed to helm/cron_jobs/berkeley-migration-cronjob/Chart.yaml helm/cron_jobs/replayer-cronjobs/Chart.yaml renamed to helm/cron_jobs/berkeley-migration-cronjob/Chart.yaml

Copy file name to clipboardExpand all lines: helm/cron_jobs/berkeley-migration-cronjob/Chart.yaml
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
2-
name: replayer-cronjobs
3-
description: Creating replayer CronJobs for different Mina networks
2+
name: berkeley-migration-cronjob
3+
description: Creating replayer CronJobs for Mina mainnet migration
44

55
# A chart can be either an 'application' or a 'library' chart.
66
#
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.0
18+
version: 0.1.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "1.16.0"
24+
appVersion: "1.17.0"
Collapse file

‎…lm/cron_jobs/replayer-cronjobs/README.md‎ ‎…obs/berkeley-migration-cronjob/README.md‎helm/cron_jobs/replayer-cronjobs/README.md renamed to helm/cron_jobs/berkeley-migration-cronjob/README.md helm/cron_jobs/replayer-cronjobs/README.md renamed to helm/cron_jobs/berkeley-migration-cronjob/README.md

Copy file name to clipboardExpand all lines: helm/cron_jobs/berkeley-migration-cronjob/README.md
+9-5Lines changed: 9 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
# Replayer CronJobs
2-
This Helm Chart aims to ease the process of scripting the replayers mainly by isolating the script from the Kubernetes manifests.
1+
# Berkeley Migration CronJobs
2+
This Helm Chart aims to ease the process of scripting the Mina mainnet migration replayers by isolating the script from the Kubernetes manifests.
33

44
The way it works can be summarized in the following items:
55
1. A Kubernetes Secret with the contents of `.Values.gcloudKeyfileRef` is created. It essentially retrieves the secret stored in GCP Secret Manager containing a valid `gcloud-keyfile.json`. This Secret will be mounted at `/gcloud/keyfile.json` on all `replayers` containers.
66
2. As many CronJobs are created as entries in the `.Values.replayers` list.
77
1. A Kubernetes Secret called `{{ .Values.replayers.[*].script.secretName }}` is created with the contents of `{{ .Values.replayers.[*].script.scriptName }}` and mounted at each `replayer` container at `/scripts/{{ .Values.replayers.[*].scriptName }}`
88
3. Replayers have the following entrypoint: `/bin/bash -c /scripts/{{ .Values.replayers.[*].scriptName }}`
9+
4. These are deployed using `gitops-infratructure`. But may also be deployed from a user environment using [`helm-secrets`](https://github.com/jkroepke/helm-secrets/wiki/Installation) (with `vals`) and sufficient authz in GCP to read GCP Secret Manager.
910

10-
# Deploy the CronJobs
11-
As manifests secure secrets leveraging GCP Secrets Manager, `helm-secrets` plugin must be used to either deploy or check the rendered manifests (e.g., via `helm template`). To achieve this [install helm-secrets plugin](https://github.com/jkroepke/helm-secrets/wiki/Installation) and either:
11+
# Deployment
12+
These CronJobs are deployed using ArgoCD. Refer to [GitOps-Infrastructure repository](https://github.com/o1-labs/gitops-infrastructure) for **platform** configurations.
13+
14+
# (Optional, requires authz) Deploy the CronJobs from your workstation
15+
As manifests secure secrets using GCP Secrets Manager, `helm-secrets` plugin must be used to either deploy or check the rendered manifests (e.g., via `helm template`). To achieve this [install helm-secrets plugin](https://github.com/jkroepke/helm-secrets/wiki/Installation) and either:
1216

1317
#### a. Check manifests
1418
```bash
@@ -25,7 +29,7 @@ NAME=mainnet-replayer
2529
NAMESPACE=my-namespace
2630
helm secrets --evaluate-templates upgrade --install $NAME . -f values.yaml --namespace $NAMESPACE
2731
```
28-
You can perform this operation everytime you change a value in the Chart or update the scripts under [`files`](./files/).
32+
You can perform this operation every time you change a value in the Chart or update the scripts under [`files`](./files/).
2933

3034
### Notes
3135
- Some `values.yaml` are considered global (e.g., `.Values.image`) and are referenced in each `replayer` using [YAML anchors](https://helm.sh/docs/chart_template_guide/yaml_techniques/#yaml-anchors).
Collapse file

‎…onjobs/files/mainnet-migrated-phase-1.sh‎ ‎…ronjob/files/mainnet-migrated-phase-1.sh‎helm/cron_jobs/replayer-cronjobs/files/mainnet-migrated-phase-1.sh renamed to helm/cron_jobs/berkeley-migration-cronjob/files/mainnet-migrated-phase-1.sh helm/cron_jobs/replayer-cronjobs/files/mainnet-migrated-phase-1.sh renamed to helm/cron_jobs/berkeley-migration-cronjob/files/mainnet-migrated-phase-1.sh

Copy file name to clipboard
File renamed without changes.
Collapse file

‎…jobs/replayer-cronjobs/files/test-run.sh‎ ‎…eley-migration-cronjob/files/test-run.sh‎helm/cron_jobs/replayer-cronjobs/files/test-run.sh renamed to helm/cron_jobs/berkeley-migration-cronjob/files/test-run.sh helm/cron_jobs/replayer-cronjobs/files/test-run.sh renamed to helm/cron_jobs/berkeley-migration-cronjob/files/test-run.sh

Copy file name to clipboard
File renamed without changes.
Collapse file

‎…bs/replayer-cronjobs/templates/NOTES.txt‎ ‎…ey-migration-cronjob/templates/NOTES.txt‎helm/cron_jobs/replayer-cronjobs/templates/NOTES.txt renamed to helm/cron_jobs/berkeley-migration-cronjob/templates/NOTES.txt helm/cron_jobs/replayer-cronjobs/templates/NOTES.txt renamed to helm/cron_jobs/berkeley-migration-cronjob/templates/NOTES.txt

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Notes:
2-
=====
2+
=====
Collapse file

‎…replayer-cronjobs/templates/_helpers.tpl‎ ‎…migration-cronjob/templates/_helpers.tpl‎helm/cron_jobs/replayer-cronjobs/templates/_helpers.tpl renamed to helm/cron_jobs/berkeley-migration-cronjob/templates/_helpers.tpl helm/cron_jobs/replayer-cronjobs/templates/_helpers.tpl renamed to helm/cron_jobs/berkeley-migration-cronjob/templates/_helpers.tpl

Copy file name to clipboardExpand all lines: helm/cron_jobs/berkeley-migration-cronjob/templates/_helpers.tpl
+10-10Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{/*
22
Expand the name of the chart.
33
*/}}
4-
{{- define "replayer-cronjobs.name" -}}
4+
{{- define "berkeley-migration-cronjob.name" -}}
55
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
66
{{- end }}
77

@@ -10,7 +10,7 @@ Create a default fully qualified app name.
1010
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
1111
If release name contains chart name it will be used as a full name.
1212
*/}}
13-
{{- define "replayer-cronjobs.fullname" -}}
13+
{{- define "berkeley-migration-cronjob.fullname" -}}
1414
{{- if .Values.fullnameOverride }}
1515
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
1616
{{- else }}
@@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
2626
{{/*
2727
Create chart name and version as used by the chart label.
2828
*/}}
29-
{{- define "replayer-cronjobs.chart" -}}
29+
{{- define "berkeley-migration-cronjob.chart" -}}
3030
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
3131
{{- end }}
3232

3333
{{/*
3434
Common labels
3535
*/}}
36-
{{- define "replayer-cronjobs.labels" -}}
37-
helm.sh/chart: {{ include "replayer-cronjobs.chart" . }}
38-
{{ include "replayer-cronjobs.selectorLabels" . }}
36+
{{- define "berkeley-migration-cronjob.labels" -}}
37+
helm.sh/chart: {{ include "berkeley-migration-cronjob.chart" . }}
38+
{{ include "berkeley-migration-cronjob.selectorLabels" . }}
3939
{{- if .Chart.AppVersion }}
4040
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4141
{{- end }}
@@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
4545
{{/*
4646
Selector labels
4747
*/}}
48-
{{- define "replayer-cronjobs.selectorLabels" -}}
49-
app.kubernetes.io/name: {{ include "replayer-cronjobs.name" . }}
48+
{{- define "berkeley-migration-cronjob.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "berkeley-migration-cronjob.name" . }}
5050
app.kubernetes.io/instance: {{ .Release.Name }}
5151
{{- end }}
5252

5353
{{/*
5454
Create the name of the service account to use
5555
*/}}
56-
{{- define "replayer-cronjobs.serviceAccountName" -}}
56+
{{- define "berkeley-migration-cronjob.serviceAccountName" -}}
5757
{{- if .Values.serviceAccount.create }}
58-
{{- default (include "replayer-cronjobs.fullname" .) .Values.serviceAccount.name }}
58+
{{- default (include "berkeley-migration-cronjob.fullname" .) .Values.serviceAccount.name }}
5959
{{- else }}
6060
{{- default "default" .Values.serviceAccount.name }}
6161
{{- end }}
Collapse file

‎…eplayer-cronjobs/templates/cronjobs.yaml‎ ‎…igration-cronjob/templates/cronjobs.yaml‎helm/cron_jobs/replayer-cronjobs/templates/cronjobs.yaml renamed to helm/cron_jobs/berkeley-migration-cronjob/templates/cronjobs.yaml helm/cron_jobs/replayer-cronjobs/templates/cronjobs.yaml renamed to helm/cron_jobs/berkeley-migration-cronjob/templates/cronjobs.yaml

Copy file name to clipboardExpand all lines: helm/cron_jobs/berkeley-migration-cronjob/templates/cronjobs.yaml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
apiVersion: batch/v1
66
kind: CronJob
77
metadata:
8-
name: mina-cronjob-{{ .name }}
8+
name: berkeley-migration-{{ .name }}
99
annotations:
1010
{{- with $.Values.annotations }}
1111
{{- toYaml . | nindent 4 }}
@@ -51,12 +51,12 @@ spec:
5151
- name: {{ .script.secretName }}
5252
secret:
5353
defaultMode: 0755
54-
secretName: {{ include "replayer-cronjobs.fullname" $rootContext }}-{{ .script.secretName }}
54+
secretName: berkeley-migration-{{ .script.secretName }}
5555
---
5656
apiVersion: v1
5757
kind: Secret
5858
metadata:
59-
name: {{ include "replayer-cronjobs.fullname" $rootContext }}-{{ .script.secretName }}
59+
name: berkeley-migration-{{ .script.secretName }}
6060
{{- with $.Values.annotations }}
6161
{{- toYaml . | nindent 4 }}
6262
{{- end }}
Collapse file

‎…er-cronjobs/templates/gcloud-secret.yaml‎ ‎…ion-cronjob/templates/gcloud-secret.yaml‎helm/cron_jobs/replayer-cronjobs/templates/gcloud-secret.yaml renamed to helm/cron_jobs/berkeley-migration-cronjob/templates/gcloud-secret.yaml helm/cron_jobs/replayer-cronjobs/templates/gcloud-secret.yaml renamed to helm/cron_jobs/berkeley-migration-cronjob/templates/gcloud-secret.yaml

Copy file name to clipboard
File renamed without changes.
Collapse file

‎…/cron_jobs/replayer-cronjobs/values.yaml‎ ‎…s/berkeley-migration-cronjob/values.yaml‎helm/cron_jobs/replayer-cronjobs/values.yaml renamed to helm/cron_jobs/berkeley-migration-cronjob/values.yaml helm/cron_jobs/replayer-cronjobs/values.yaml renamed to helm/cron_jobs/berkeley-migration-cronjob/values.yaml

Copy file name to clipboard
File renamed without changes.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.