-
Notifications
You must be signed in to change notification settings - Fork 146
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
19 changed files
with
222 additions
and
44 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 |
---|---|---|
|
@@ -3,13 +3,33 @@ on: | |
push: | ||
branches: [ master ] | ||
jobs: | ||
build: | ||
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 | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Package and Publish charts | ||
uses: J12934/helm-gh-pages-action@master | ||
with: | ||
deploy-branch: gh-pages | ||
access-token: "${{ secrets.CR_TOKEN }}" | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Install Helm | ||
uses: azure/setup-helm@v3 | ||
|
||
- name: Install Helm Deps | ||
run: | | ||
for dir in $(ls -d charts/*/); do | ||
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done | ||
done | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
env: | ||
CR_TOKEN: "${{ secrets.CR_TOKEN }}" |
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/dandydev-charts)](https://artifacthub.io/packages/search?repo=dandydev-charts) | ||
|
||
### Charts for numerous projects. Migrated from `helm/stable` due to deprecation timeline. | ||
|
||
Charts are deployed via Github Actions to the `gh-pages` branch. | ||
Charts are deployed via Github Actions to the `gh-pages` branch. |
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,4 @@ | ||
repositoryID: 97c48e9b-3ece-4ce3-a888-6f3a63f2734a | ||
owners: | ||
- name: Aaron Layfield | ||
email: [email protected] |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: consul | ||
repository: https://helm.releases.hashicorp.com | ||
version: 0.33.0 | ||
digest: sha256:25a768a7a5e0f0f8240291118d141f9c8fb0cd050e5d74f5a13cea4b17cfc92a | ||
generated: "2021-09-08T13:23:36.0307636+09:00" | ||
version: 1.3.2 | ||
digest: sha256:48bd505ab89ecc7beccaf617e79b50ae874dcb89dba8039b36bf09315201aaf2 | ||
generated: "2024-02-05T22:39:53.273807587Z" |
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
Binary file not shown.
Binary file not shown.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
--- | ||
## Testing if muti-valued config is working or not | ||
redis: | ||
config: | ||
min-replicas-to-write: 1 | ||
min-replicas-max-lag: 5 | ||
maxmemory: "0" | ||
maxmemory-policy: "volatile-lru" | ||
save: | ||
- "900 1" | ||
- "300 10" | ||
repl-diskless-sync: "yes" | ||
rdbcompression: "yes" | ||
rdbchecksum: "yes" |
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
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
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
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
74 changes: 74 additions & 0 deletions
74
charts/redis-ha/templates/redis-haproxy-network-policy.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,74 @@ | ||
{{- if and .Values.haproxy.enabled .Values.haproxy.networkPolicy.enabled }} | ||
{{- $root := . }} | ||
kind: NetworkPolicy | ||
apiVersion: networking.k8s.io/v1 | ||
metadata: | ||
name: {{ template "redis-ha.fullname" . }}-haproxy-network-policy | ||
namespace: {{ .Release.Namespace | quote }} | ||
{{- if .Values.haproxy.networkPolicy.annotations }} | ||
annotations: | ||
{{- range $key, $value := .Values.haproxy.networkPolicy.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
{{- end }} | ||
labels: | ||
{{- include "labels.standard" . | nindent 4 }} | ||
{{- range $key, $value := .Values.haproxy.networkPolicy.labels }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
spec: | ||
podSelector: | ||
matchLabels: | ||
release: {{ .Release.Name }} | ||
app: {{ template "redis-ha.name" . }}-haproxy | ||
policyTypes: | ||
- Ingress | ||
- Egress | ||
egress: | ||
- to: | ||
- podSelector: | ||
matchLabels: | ||
release: {{ .Release.Name }} | ||
app: {{ template "redis-ha.name" . }} | ||
ports: | ||
- port: {{ .Values.redis.port }} | ||
protocol: TCP | ||
- port: {{ .Values.sentinel.port }} | ||
protocol: TCP | ||
- to: | ||
- namespaceSelector: {} | ||
ports: | ||
- port: 53 | ||
protocol: UDP | ||
- port: 53 | ||
protocol: TCP | ||
{{- range $rule := .Values.haproxy.networkPolicy.egressRules }} | ||
- to: | ||
{{- (tpl (toYaml $rule.selectors) $) | nindent 8 }} | ||
ports: | ||
{{- toYaml $rule.ports | nindent 8 }} | ||
{{- end }} | ||
ingress: | ||
- from: | ||
- podSelector: | ||
matchLabels: | ||
release: {{ .Release.Name }} | ||
app: {{ template "redis-ha.name" . }} | ||
ports: | ||
- port: {{ .Values.redis.port }} | ||
protocol: TCP | ||
- port: {{ .Values.sentinel.port }} | ||
protocol: TCP | ||
{{- range $rule := .Values.haproxy.networkPolicy.ingressRules }} | ||
- from: | ||
{{- (tpl (toYaml $rule.selectors) $) | nindent 8 }} | ||
ports: | ||
{{- if $rule.ports }} | ||
{{- toYaml $rule.ports | nindent 8 }} | ||
{{- end }} | ||
- port: {{ $root.Values.redis.port }} | ||
protocol: TCP | ||
- port: {{ $root.Values.sentinel.port }} | ||
protocol: TCP | ||
{{- end }} | ||
{{- end }} |
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
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
Oops, something went wrong.