Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): Uplift to Helm v3, various requests, tag latest image #249

Merged
merged 5 commits into from
Jan 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
images: ghcr.io/${{ github.repository }}
# generate Docker tags based on the following events/attributes
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
Expand Down
4 changes: 2 additions & 2 deletions helm/sloop/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
apiVersion: v2
appVersion: "1.0"
description: Sloop is a kubernetes history visualization tool.
name: sloop
version: 0.1.0
version: 0.2.0
icon: https://raw.githubusercontent.com/salesforce/sloop/master/other/sloop_logo_color.png
6 changes: 6 additions & 0 deletions helm/sloop/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ spec:
name: sloop-data
- mountPath: /sloopconfig/
name: sloopconfig
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- emptyDir:
sizeLimit: {{ .Values.persistentVolume.sizeLimit }}
Expand All @@ -74,6 +78,7 @@ spec:
name: {{ .Values.name }}
name: sloopconfig
serviceAccountName: {{ .Values.serviceAccountName }}
{{- if .Values.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
name: sloop-data
Expand All @@ -86,3 +91,4 @@ spec:
resources:
requests:
storage: {{ .Values.persistentVolume.size }}
{{- end }}
6 changes: 5 additions & 1 deletion helm/sloop/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ name: sloop
replicas: 1
image:
tag: latest
repository: sloopimage/sloop
repository: ghcr.io/salesforce/sloop
pullPolicy: IfNotPresent
# pullSecrets:
# - name: example-secret
persistentVolume:
# If false then an emptyDir will be used.
enabled: true
## If defined it will specify the storageClass for the statefulSet
## If undefined it will use the cluster default (typically gp2 on AWS, standard on GKE)
# storageClass:
Expand Down