Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
config-name: release-drafter-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REDIS_REPO_GITHUB_TOKEN: ${{ secrets.REDIS_REPO_GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ on:
jobs:
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-REDIS_REPO_GITHUB_TOKEN
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -43,9 +43,9 @@ jobs:
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_TOKEN: "${{ secrets.REDIS_REPO_GITHUB_TOKEN }}"
CR_SKIP_EXISTING: true

- name: Verify helm repo add
run: |
helm repo add ${{ github.event.repository.name }} https://redis-stack.github.io/helm-redis-stack
helm repo add ${{ github.event.repository.name }} https://helium-health-helm-redis-stack.github.io/helm-redis-stack
43 changes: 43 additions & 0 deletions charts/redis-stack-server/templates/redis-stack-server.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{{- if .Values.ingress.enabled -}}
{{- $svcPort := .Values.redis_stack_server.port -}}
---
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -52,3 +55,43 @@ spec:
affinity:
{{ toYaml .Values.redis_stack_server.affinity | indent 8 }}
{{- end }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: {{ .Release.Namespace }}
name: {{ .Values.name }}
labels:
app: "{{ .Values.name }}"
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.className }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: {{ .pathType }}
backend:
service:
name: {{ $.Values.name }}
port:
number: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
13 changes: 13 additions & 0 deletions charts/redis-stack-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,16 @@ redis_stack_server:
storage_class: standard
storage: 1Gi
affinity: {}
ingress:
enabled: true
name: redis-stack-server-ingress
className: alb
annotations: {}
tls: []
hosts:
- host: redis-ss.onemedtest.com
paths:
- path: /
pathType: Prefix
serviceName: redis-stack-server
servicePort: 6379
Loading