Skip to content

Commit

Permalink
Merge pull request #219 from ethersphere/beekeeper-config-env
Browse files Browse the repository at this point in the history
feat(beekeeper): add 'config-git-dir' env
  • Loading branch information
gacevicljubisa authored Dec 5, 2024
2 parents 6f99385 + b28a4b2 commit 2b59650
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 18 deletions.
2 changes: 1 addition & 1 deletion charts/beekeeper/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
appVersion: latest
name: beekeeper
version: 0.4.6
version: 0.4.7
description: Ethereum Swarm Beekeeper Helm chart for Kubernetes
home: https://www.ethswarm.org
icon: https://docs.ethswarm.org/img/swarm-logo-2.svg
Expand Down
2 changes: 2 additions & 0 deletions charts/beekeeper/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ spec:
value: "true"
- name: BEEKEEPER_CONFIG_GIT_REPO
value: "{{ .Values.config.CONFIG_GIT_REPO }}"
- name: BEEKEEPER_CONFIG_GIT_DIR
value: "{{ .Values.config.CONFIG_GIT_DIR }}"
- name: BEEKEEPER_CONFIG_GIT_BRANCH
value: "{{ .Values.config.CONFIG_GIT_BRANCH }}"
- name: BEEKEEPER_GETH_URL
Expand Down
4 changes: 4 additions & 0 deletions charts/beekeeper/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ spec:
value: "true"
- name: BEEKEEPER_CONFIG_GIT_REPO
value: "{{ .Values.config.CONFIG_GIT_REPO }}"
- name: BEEKEEPER_CONFIG_GIT_DIR
value: "{{ .Values.config.CONFIG_GIT_DIR }}"
- name: BEEKEEPER_CONFIG_GIT_BRANCH
value: "{{ .Values.config.CONFIG_GIT_BRANCH }}"
- name: BEEKEEPER_GETH_URL
Expand Down Expand Up @@ -61,6 +63,8 @@ spec:
value: "true"
- name: BEEKEEPER_CONFIG_GIT_REPO
value: "{{ .Values.config.CONFIG_GIT_REPO }}"
- name: BEEKEEPER_CONFIG_GIT_DIR
value: "{{ .Values.config.CONFIG_GIT_DIR }}"
- name: BEEKEEPER_CONFIG_GIT_BRANCH
value: "{{ .Values.config.CONFIG_GIT_BRANCH }}"
- name: BEEKEEPER_GETH_URL
Expand Down
36 changes: 19 additions & 17 deletions charts/beekeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ image:
pullPolicy: IfNotPresent

imagePullSecrets: []
nameOverride: ''
fullnameOverride: ''
nameOverride: ""
fullnameOverride: ""

serviceAccount:
## Specifies whether a service account should be created
Expand All @@ -17,39 +17,41 @@ serviceAccount:
createRole: false
createClusterRole: false

## Define resource requests and limits to allocate CPU and memory effectively.
## Example:
# resources:
# limits:
# cpu: "1" # Maximum CPU usage (e.g., 1 core)
# memory: "1Gi" # Maximum memory usage (e.g., 1 GiB)
# requests:
# cpu: "100m" # Minimum guaranteed CPU usage (e.g., 100 millicores)
# memory: "128Mi" # Minimum guaranteed memory usage (e.g., 128 MiB)
resources: {}
## If you do want to specify resources, uncomment the following
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 1
# memory: 1Gi
# requests:
# cpu: 100m
# memory: 128Mi

nodeSelector: {}

config:
command: ['beekeeper', 'check']
command: ["beekeeper", "check"]
parallelism: 1
dirPath: 'files'
dirPath: "files"
# environment variables
CONFIG_GIT_REPO: ''
CONFIG_GIT_REPO: ""
CONFIG_GIT_DIR: ""
CONFIG_GIT_BRANCH: main
GETH_URL: http://geth-swap.geth-swap.staging.internal
BZZ_TOKEN_ADDRESS: '0x6aab14fe9cccd64a502d23842d916eb5321c26e7'
ETH_ACCOUNT: '0x62cab2b3b55f341f10348720ca18063cdb779ad5'
BZZ_TOKEN_ADDRESS: "0x6aab14fe9cccd64a502d23842d916eb5321c26e7"
ETH_ACCOUNT: "0x62cab2b3b55f341f10348720ca18063cdb779ad5"
# if singleRun is enabled cron job settings will be omitted
# job
singleRun: false
backoffLimit: 0
# cron job
schedule: '*/1 * * * *'
schedule: "*/1 * * * *"
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 3
concurrencyPolicy: Forbid
# if it is enabled it will create init container that will wait
# for cluster to be up and operational
initPing:
enabled: false
clusterName: ''
clusterName: ""

0 comments on commit 2b59650

Please sign in to comment.