Skip to content

Commit 687852b

Browse files
authored
chore(addons): add lakefs
1 parent 0fe369f commit 687852b

40 files changed

Lines changed: 1376 additions & 38 deletions

addons/grafana/10/README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<!--- app-name: Grafana -->
22

3-
# Grafana packaged by Bitnami
3+
# Grafana packaged by Drycc
44

55
Grafana is an open source metric analytics and visualization suite for visualizing time series data that supports various types of data sources.
66

77
[Overview of Grafana](https://grafana.com/)
88

9-
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
9+
Trademarks: This software listing is packaged by Drycc. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
1010

1111
## TL;DR
1212

@@ -19,7 +19,7 @@ $ helm install my-release my-repo/grafana
1919

2020
This chart bootstraps a [grafana](https://github.com/drycc/containers/tree/main/drycc/grafana) deployment on a [Kubernetes](https://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
2121

22-
Bitnami charts can be used with [Kubeapps](https://kubeapps.dev/) for deployment and management of Helm Charts in clusters.
22+
Drycc charts can be used with [Kubeapps](https://kubeapps.dev/) for deployment and management of Helm Charts in clusters.
2323

2424
## Prerequisites
2525

@@ -51,9 +51,9 @@ $ helm delete my-release
5151

5252
The command removes all the Kubernetes components associated with the chart and deletes the release. Use the option `--purge` to delete all persistent volumes too.
5353

54-
## Differences between the Bitnami Grafana chart and the Bitnami Grafana Operator chart
54+
## Differences between the Drycc Grafana chart and the Drycc Grafana Operator chart
5555

56-
In the Bitnami catalog we offer both the drycc/grafana and drycc/grafana-operator charts. Each solution covers different needs and use cases.
56+
In the Drycc catalog we offer both the drycc/grafana and drycc/grafana-operator charts. Each solution covers different needs and use cases.
5757

5858
The *drycc/grafana* chart deploys a single Grafana installation (with grafana-image-renderer) using a Kubernetes Deployment object (together with Services, PVCs, ConfigMaps, etc.). The figure below shows the deployed objects in the cluster after executing *helm install*:
5959

@@ -441,12 +441,12 @@ This solution allows to easily deploy multiple Grafana instances compared to the
441441
| Name | Description | Value |
442442
| ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- | ----------------------- |
443443
| `volumePermissions.enabled` | Enable init container that changes the owner/group of the PV mount point to `runAsUser:fsGroup` | `false` |
444-
| `volumePermissions.image.registry` | Bitnami Shell image registry | `docker.io` |
445-
| `volumePermissions.image.repository` | Bitnami Shell image repository | `drycc/drycc-shell` |
446-
| `volumePermissions.image.tag` | Bitnami Shell image tag (immutable tags are recommended) | `11-debian-11-r38` |
447-
| `volumePermissions.image.digest` | Bitnami Shell image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` |
448-
| `volumePermissions.image.pullPolicy` | Bitnami Shell image pull policy | `IfNotPresent` |
449-
| `volumePermissions.image.pullSecrets` | Bitnami Shell image pull secrets | `[]` |
444+
| `volumePermissions.image.registry` | Drycc Shell image registry | `docker.io` |
445+
| `volumePermissions.image.repository` | Drycc Shell image repository | `drycc/drycc-shell` |
446+
| `volumePermissions.image.tag` | Drycc Shell image tag (immutable tags are recommended) | `11-debian-11-r38` |
447+
| `volumePermissions.image.digest` | Drycc Shell image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` |
448+
| `volumePermissions.image.pullPolicy` | Drycc Shell image pull policy | `IfNotPresent` |
449+
| `volumePermissions.image.pullSecrets` | Drycc Shell image pull secrets | `[]` |
450450
| `volumePermissions.resources.limits` | The resources limits for the init container | `{}` |
451451
| `volumePermissions.resources.requests` | The requested resources for the init container | `{}` |
452452
| `volumePermissions.containerSecurityContext.runAsUser` | Set init container's Security Context runAsUser | `0` |
@@ -486,7 +486,7 @@ $ helm install my-release -f values.yaml my-repo/grafana
486486

487487
It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image.
488488

489-
Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.
489+
Drycc will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.
490490

491491
### Using custom configuration
492492

@@ -614,14 +614,14 @@ As an alternative, you can use of the preset configurations for pod affinity, po
614614

615615
## Persistence
616616

617-
The [Bitnami Grafana](https://github.com/drycc/containers/tree/main/drycc/grafana) image stores the Grafana data and configurations at the `/opt/drycc/grafana/data` path of the container.
617+
The [Drycc Grafana](https://github.com/drycc/containers/tree/main/drycc/grafana) image stores the Grafana data and configurations at the `/opt/drycc/grafana/data` path of the container.
618618

619619
Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube.
620620
See the [Parameters](#parameters) section to configure the PVC or to disable persistence.
621621

622622
## Troubleshooting
623623

624-
Find more information about how to deal with common errors related to Bitnami's Helm charts in [this troubleshooting guide](https://docs.drycc.com/general/how-to/troubleshoot-helm-chart-issues).
624+
Find more information about how to deal with common errors related to Drycc's Helm charts in [this troubleshooting guide](https://docs.drycc.com/general/how-to/troubleshoot-helm-chart-issues).
625625

626626
## Upgrading
627627

@@ -631,7 +631,7 @@ This major release only bumps the Grafana version to 9.x. No major issues are ex
631631

632632
### To 7.0.0
633633

634-
This major release renames several values in this chart and adds missing features, in order to be inline with the rest of assets in the Bitnami charts repository.
634+
This major release renames several values in this chart and adds missing features, in order to be inline with the rest of assets in the Drycc charts repository.
635635

636636
Since the volume access mode when persistence is enabled is `ReadWriteOnce` in order to upgrade the deployment you will need to either use the `Recreate` strategy or delete the old deployment.
637637

@@ -651,7 +651,7 @@ This version also introduces `drycc/common`, a [library chart](https://helm.sh/d
651651
**What changes were introduced in this major version?**
652652

653653
- Previous versions of this Helm Chart use `apiVersion: v1` (installable by both Helm 2 and 3), this Helm Chart was updated to `apiVersion: v2` (installable by Helm 3 only). [Here](https://helm.sh/docs/topics/charts/#the-apiversion-field) you can find more information about the `apiVersion` field.
654-
- The different fields present in the *Chart.yaml* file has been ordered alphabetically in a homogeneous way for all the Bitnami Helm Charts
654+
- The different fields present in the *Chart.yaml* file has been ordered alphabetically in a homogeneous way for all the Drycc Helm Charts
655655

656656
**Considerations when upgrading to this version**
657657

@@ -677,7 +677,7 @@ This major version signifies this change.
677677

678678
## License
679679

680-
Copyright &copy; 2022 Bitnami
680+
Copyright &copy; 2022 Drycc
681681

682682
Licensed under the Apache License, Version 2.0 (the "License");
683683
you may not use this file except in compliance with the License.

addons/grafana/10/chart/grafana/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ keywords:
1818
- metrics
1919
- logs
2020
maintainers:
21-
- name: Bitnami
21+
- name: Drycc
2222
url: https://github.com/drycc/charts
2323
name: grafana
2424
sources:

addons/grafana/10/chart/grafana/values.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ commonAnnotations: {}
4242

4343
## @section Grafana parameters
4444

45-
## Bitnami Grafana image version
45+
## Drycc Grafana image version
4646
## ref: https://hub.docker.com/r/drycc/grafana/tags/
4747
## @param image.registry Grafana image registry
4848
## @param image.repository Grafana image repository
@@ -816,7 +816,7 @@ imageRenderer:
816816
## @param imageRenderer.enabled Enable using a remote rendering service to render PNG images
817817
##
818818
enabled: false
819-
## Bitnami Grafana Image Renderer image
819+
## Drycc Grafana Image Renderer image
820820
## ref: https://hub.docker.com/r/drycc/grafana-image-renderer/tags/
821821
## @param imageRenderer.image.registry Grafana Image Renderer image registry
822822
## @param imageRenderer.image.repository Grafana Image Renderer image repository
@@ -1155,14 +1155,14 @@ volumePermissions:
11551155
## @param volumePermissions.enabled Enable init container that changes the owner/group of the PV mount point to `runAsUser:fsGroup`
11561156
##
11571157
enabled: false
1158-
## Bitnami Shell image
1158+
## Drycc Shell image
11591159
## ref: https://hub.docker.com/r/drycc/drycc-shell/tags/
1160-
## @param volumePermissions.image.registry Bitnami Shell image registry
1161-
## @param volumePermissions.image.repository Bitnami Shell image repository
1162-
## @param volumePermissions.image.tag Bitnami Shell image tag (immutable tags are recommended)
1163-
## @param volumePermissions.image.digest Bitnami Shell image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1164-
## @param volumePermissions.image.pullPolicy Bitnami Shell image pull policy
1165-
## @param volumePermissions.image.pullSecrets Bitnami Shell image pull secrets
1160+
## @param volumePermissions.image.registry Drycc Shell image registry
1161+
## @param volumePermissions.image.repository Drycc Shell image repository
1162+
## @param volumePermissions.image.tag Drycc Shell image tag (immutable tags are recommended)
1163+
## @param volumePermissions.image.digest Drycc Shell image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1164+
## @param volumePermissions.image.pullPolicy Drycc Shell image pull policy
1165+
## @param volumePermissions.image.pullSecrets Drycc Shell image pull secrets
11661166
##
11671167
image:
11681168
registry: docker.io

addons/index.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,7 @@ entries:
7474
description: "YugabyteDB is a high-performance distributed SQL database for powering global, internet-scale applications. "
7575
nessie:
7676
- version: "0.103"
77-
description: "Transactional Catalog for Data Lakes with Git-like semantics . "
77+
description: "Transactional Catalog for Data Lakes with Git-like semantics . "
78+
lakefs:
79+
- version: "1.52"
80+
description: "LakeFS provides version control over the data lake, and uses Git-like semantics to create and access those versions. If you know git, you’ll be right at home with lakeFS. "
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: v2
2+
appVersion: 1.52.0
3+
description: A Helm chart for running LakeFS on Kubernetes
4+
home: https://lakefs.io
5+
icon: https://lakefs.io/wp-content/uploads/2020/07/lake-fs-color-2.svg
6+
maintainers:
7+
- email: services@treeverse.io
8+
name: treeverse
9+
name: lakefs
10+
dependencies:
11+
- name: common
12+
repository: oci://registry.drycc.cc/charts
13+
version: ~1.1.1
14+
sources:
15+
- https://github.com/treeverse/lakeFS
16+
type: application
17+
version: 1.4.5
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Thank you for installing lakeFS!
2+
3+
1. Run the following to get a url to start setting up lakeFS:
4+
{{- if contains "NodePort" .Values.service.type }}
5+
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "lakefs.fullname" . }})
6+
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
7+
echo http://$NODE_IP:$NODE_PORT/setup
8+
{{- else if contains "LoadBalancer" .Values.service.type }}
9+
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
10+
You can watch the status of by running 'kubectl get svc -w {{ template "lakefs.fullname" . }}'
11+
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "lakefs.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
12+
echo http://$SERVICE_IP:{{ .Values.service.port }}/setup
13+
{{- else if contains "ClusterIP" .Values.service.type }}
14+
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
15+
kubectl wait --for=condition=ready pod $POD_NAME
16+
echo "Visit http://127.0.0.1:{{ .Values.deployment.port }}/setup to use your application"
17+
kubectl port-forward $POD_NAME {{ .Values.deployment.port }}:{{ .Values.deployment.port }} --namespace {{ .Release.Namespace }}
18+
{{- end }}
19+
20+
2. See the docs on how to create your first repository: https://docs.lakefs.io/quickstart/repository.html
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{{- define "lakefs.env" -}}
2+
env:
3+
{{- if and .Values.existingSecret .Values.secretKeys.databaseConnectionString }}
4+
- name: LAKEFS_DATABASE_POSTGRES_CONNECTION_STRING
5+
valueFrom:
6+
secretKeyRef:
7+
name: {{ .Values.existingSecret }}
8+
key: {{ .Values.secretKeys.databaseConnectionString }}
9+
{{- else if and .Values.secrets (.Values.secrets).databaseConnectionString }}
10+
- name: LAKEFS_DATABASE_POSTGRES_CONNECTION_STRING
11+
valueFrom:
12+
secretKeyRef:
13+
name: {{ include "lakefs.fullname" . }}
14+
key: database_connection_string
15+
{{- end }}
16+
{{- if .Values.existingSecret }}
17+
- name: LAKEFS_AUTH_ENCRYPT_SECRET_KEY
18+
valueFrom:
19+
secretKeyRef:
20+
name: {{ .Values.existingSecret }}
21+
key: {{ .Values.secretKeys.authEncryptSecretKey }}
22+
{{- else if and .Values.secrets (.Values.secrets).authEncryptSecretKey }}
23+
- name: LAKEFS_AUTH_ENCRYPT_SECRET_KEY
24+
valueFrom:
25+
secretKeyRef:
26+
name: {{ include "lakefs.fullname" . }}
27+
key: auth_encrypt_secret_key
28+
{{- else }}
29+
- name: LAKEFS_AUTH_ENCRYPT_SECRET_KEY
30+
value: 0d48e811f0b11d7f18d8c905
31+
{{- end }}
32+
{{- if (.Values.fluffy).enabled }}
33+
- name: LAKEFS_USAGE_REPORT_ENABLED
34+
value: "true"
35+
{{- if (.Values.fluffy.sso).enabled }}
36+
- name: LAKEFS_AUTH_AUTHENTICATION_API_ENDPOINT
37+
value: {{ printf "http://%s/api/v1" (include "fluffy.ssoServiceName" .) | quote }}
38+
{{- if and .Values.ingress.enabled (.Values.fluffy.sso.saml).enabled }}
39+
- name: LAKEFS_AUTH_COOKIE_AUTH_VERIFICATION_AUTH_SOURCE
40+
value: saml
41+
- name: LAKEFS_AUTH_UI_CONFIG_LOGIN_URL
42+
value: {{ printf "%s/sso/login-saml" .Values.fluffy.sso.saml.lakeFSServiceProviderIngress }}
43+
- name: LAKEFS_AUTH_UI_CONFIG_LOGOUT_URL
44+
value: {{ printf "%s/sso/logout-saml" .Values.fluffy.sso.saml.lakeFSServiceProviderIngress }}
45+
{{- end }}
46+
{{- if (.Values.fluffy.sso.oidc).enabled }}
47+
- name: LAKEFS_AUTH_UI_CONFIG_LOGIN_URL
48+
value: '/oidc/login'
49+
- name: LAKEFS_AUTH_UI_CONFIG_LOGOUT_URL
50+
value: '/oidc/logout'
51+
{{- end }}
52+
{{- if (.Values.fluffy.sso.ldap).enabled }}
53+
- name: LAKEFS_AUTH_REMOTE_AUTHENTICATOR_ENDPOINT
54+
value: {{ default (printf "http://%s/api/v1/ldap/login" (include "fluffy.ssoServiceName" .) | quote) (.Values.fluffy.sso.ldap).endpointOverride }}
55+
- name: LAKEFS_AUTH_UI_CONFIG_LOGOUT_URL
56+
value: /logout
57+
{{- end }}
58+
{{- end }}
59+
{{- if (.Values.fluffy.rbac).enabled }}
60+
- name: LAKEFS_AUTH_API_ENDPOINT
61+
value: {{ printf "http://%s/api/v1" (include "fluffy.rbacServiceName" .) | quote }}
62+
- name: LAKEFS_AUTH_UI_CONFIG_RBAC
63+
value: internal
64+
{{- end }}
65+
{{- end }}
66+
{{- if .Values.s3Fallback.enabled }}
67+
- name: LAKEFS_GATEWAYS_S3_FALLBACK_URL
68+
value: http://localhost:7001
69+
{{- end }}
70+
{{- if .Values.committedLocalCacheVolume }}
71+
- name: LAKEFS_COMMITTED_LOCAL_CACHE_DIR
72+
value: /lakefs/cache
73+
{{- end }}
74+
{{- if .Values.useDevPostgres }}
75+
{{- if and (.Values.fluffy).enabled (.Values.fluffy.rbac).enabled }}
76+
- name: LAKEFS_DATABASE_TYPE
77+
value: postgres
78+
- name: LAKEFS_DATABASE_POSTGRES_CONNECTION_STRING
79+
value: 'postgres://lakefs:lakefs@postgres-server:5432/postgres?sslmode=disable'
80+
{{- end }}
81+
{{- end }}
82+
{{- if .Values.extraEnvVars }}
83+
{{- toYaml .Values.extraEnvVars | nindent 2 }}
84+
{{- end }}
85+
{{- if .Values.extraEnvVarsSecret }}
86+
envFrom:
87+
- secretRef:
88+
name: {{ .Values.extraEnvVarsSecret }}
89+
{{- end }}
90+
{{- end }}
91+
92+
{{- define "lakefs.volumes" -}}
93+
{{- if .Values.extraVolumes }}
94+
{{ toYaml .Values.extraVolumes }}
95+
{{- end }}
96+
{{- if .Values.committedLocalCacheVolume }}
97+
- name: committed-local-cache
98+
{{- toYaml .Values.committedLocalCacheVolume | nindent 2 }}
99+
{{- end }}
100+
{{- if not .Values.lakefsConfig }}
101+
- name: {{ .Chart.Name }}-local-data
102+
{{- end}}
103+
{{- if .Values.lakefsConfig }}
104+
- name: config-volume
105+
configMap:
106+
name: {{ include "lakefs.fullname" . }}
107+
items:
108+
- key: config.yaml
109+
path: config.yaml
110+
{{- end }}
111+
{{- end }}

0 commit comments

Comments
 (0)