Skip to content

Commit

Permalink
Updated rabbitmq chart for RabbittMQ 3.11.24 and added network policy…
Browse files Browse the repository at this point in the history
… feature
  • Loading branch information
groundhog2k committed Oct 19, 2023
1 parent 1fb486a commit 65fdcbc
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/rabbitmq/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ type: application
maintainers:
- name: groundhog2k

version: "0.7.6"
version: "0.6.28"

appVersion: "3.12.6"
appVersion: "3.11.24"
10 changes: 10 additions & 0 deletions charts/rabbitmq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,16 @@ Section to define custom services
| ingress.hosts[0].host.paths[0] | string | `"/"` | Path for the RabbitMQ Management UI |
| ingress.tls | list | `[]` | Ingress TLS parameters |

## Network policies

Allows to define optional network policies for [ingress and egress](https://kubernetes.io/docs/concepts/services-networking/network-policies/)
The policyTypes will be automatically set

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| networkPolicy.ingress | object | `{}` | Ingress network policies |
| networkPolicy.egress | object | `{}` | Egress network policies |

## RabbitMQ base parameters

| Key | Type | Default | Description |
Expand Down
1 change: 1 addition & 0 deletions charts/rabbitmq/RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
| 0.6.25 | 3.11.21 | Upgraded to RabbitMQ 3.11.21 |
| 0.6.26 | 3.11.22 | Upgraded to RabbitMQ 3.11.22 |
| 0.6.27 | 3.11.23 | Upgraded to RabbitMQ 3.11.23 |
| 0.6.28 | 3.11.24 | Upgraded to RabbitMQ 3.11.24 |
| 0.7.0 | 3.12.0 | Upgraded to RabbitMQ 3.12.0 |
| 0.7.1 | 3.12.1 | Upgraded to RabbitMQ 3.12.1 |
| 0.7.2 | 3.12.2 | Upgraded to RabbitMQ 3.12.2 |
Expand Down
25 changes: 25 additions & 0 deletions charts/rabbitmq/templates/networkpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{{- with .Values.networkPolicy }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ include "rabbitmq.fullname" $ }}
spec:
podSelector:
matchLabels:
{{- include "rabbitmq.selectorLabels" $ | nindent 6 }}
policyTypes:
{{- if .ingress }}
- Ingress
{{- end }}
{{- if .egress }}
- Egress
{{- end }}
{{- with .ingress }}
ingress:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .egress }}
egress:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}

0 comments on commit 65fdcbc

Please sign in to comment.