This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
143 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dependencies: | ||
- name: common | ||
repository: https://bjw-s.github.io/helm-charts | ||
version: 1.5.1 | ||
digest: sha256:3588c89621170f198d4938664d3ea4c469bd91fd78183c83cfcf63f474d348c4 | ||
generated: "2023-08-10T15:36:00.179305+02:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
apiVersion: v2 | ||
name: s3-import-xfs | ||
home: https://github.com/sourcifyeth/docs | ||
type: application | ||
version: 0.0.1 | ||
kubeVersion: ">=1.22.0-0" | ||
maintainers: | ||
- name: skylenet | ||
email: [email protected] | ||
dependencies: | ||
- name: common | ||
repository: https://bjw-s.github.io/helm-charts | ||
version: 1.5.1 |
Binary file not shown.
47 changes: 47 additions & 0 deletions
47
environments/production/s3-import-xfs/templates/common.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
{{- include "bjw-s.common.loader.init" . }} | ||
|
||
{{- define "app-template.nameOverride" -}} | ||
# Set the nameOverride based on the release name if no override has been set | ||
{{ if not .Values.global.nameOverride }} | ||
global: | ||
nameOverride: "{{ .Release.Name }}" | ||
{{ end }} | ||
{{- end -}} | ||
{{- $_ := mergeOverwrite .Values (include "app-template.nameOverride" . | fromYaml) -}} | ||
|
||
{{- define "app-template.hardcodedValues"}} | ||
# Disable service | ||
service: | ||
main: | ||
enabled: false | ||
|
||
# Disable probes | ||
probes: | ||
liveness: | ||
enabled: false | ||
readiness: | ||
enabled: false | ||
startup: | ||
enabled: false | ||
|
||
# Disable ingress | ||
ingress: | ||
main: | ||
enabled: false | ||
|
||
# Populate env from secret | ||
{{- if .Values.secrets.secretenv.enabled }} | ||
envFrom: | ||
- secretRef: | ||
name: {{ include "bjw-s.common.lib.chart.names.fullname" . }}-secretenv | ||
{{- with .Values.envFrom }} | ||
{{- toYaml . | nindent 2 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{- $_ := mergeOverwrite .Values (include "app-template.hardcodedValues" . | fromYaml) -}} | ||
|
||
{{/* Render the templates */}} | ||
{{ include "bjw-s.common.loader.generate" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
image: | ||
repository: peakcom/s5cmd | ||
tag: v2.1.0 | ||
pullPolicy: IfNotPresent | ||
|
||
## | ||
## Application | ||
## | ||
|
||
command: | ||
- /s5cmd | ||
- sync | ||
- s3://sourcify-backup-s3/stable/repository/contracts/* | ||
- /data/contracts | ||
|
||
controller: | ||
type: cronjob | ||
restartPolicy: Never | ||
cronjob: | ||
concurrencyPolicy: Forbid | ||
schedule: "50 12 * * *" | ||
startingDeadlineSeconds: 30 | ||
successfulJobsHistory: 1 | ||
failedJobsHistory: 1 | ||
backoffLimit: 6 | ||
|
||
## | ||
## Data source | ||
## | ||
|
||
persistence: | ||
data: | ||
enabled: true | ||
type: pvc | ||
existingClaim: sourcify-repository-xfs | ||
mountPath: /data | ||
|
||
## | ||
## Environment configuration | ||
## | ||
|
||
env: {} | ||
|
||
## | ||
## Secrets | ||
## | ||
|
||
secrets: | ||
secretenv: | ||
enabled: true | ||
stringData: | ||
AWS_ACCESS_KEY_ID: "<path:/secrets/clusters/sourcify/shared/shared.enc.yaml#S3_SYNC_AWS_ACCESS_KEY_ID>" | ||
AWS_SECRET_ACCESS_KEY: "<path:/secrets/clusters/sourcify/shared/shared.enc.yaml#S3_SYNC_AWS_SECRET_ACCESS_KEY>" |