Skip to content

Commit

Permalink
Update chart (triggered by operator helm release 0.1.49)
Browse files Browse the repository at this point in the history
Repository: SAP/dns-masquerading-operator-helm
Release: 0.1.49
Commit: e41e91087bf9a0e5514f46799f3d473dea34c676
  • Loading branch information
ERP4SME-DevOps-GitHub-Workflow-User committed Dec 30, 2024
1 parent d38b3e0 commit c5354e1
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 2 deletions.
53 changes: 53 additions & 0 deletions pkg/operator/data/charts/dns-masquerading-operator/.setup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
namespace: kube-system
name: coredns
data:
Corefile: |
.:53 {
errors
health {
lameduck 5s
}
ready
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
fallthrough in-addr.arpa ip6.arpa
ttl 30
}
prometheus :9153
forward . /etc/resolv.conf {
max_concurrent 1000
}
cache 30
loop
reload
loadbalance
import custom/*.override
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: kube-system
name: coredns
spec:
selector:
matchLabels:
k8s-app: kube-dns
template:
spec:
containers:
- name: coredns
volumeMounts:
- mountPath: /etc/coredns/custom
name: custom-config-volume
readOnly: true
volumes:
- name: custom-config-volume
configMap:
defaultMode: 420
name: coredns-custom
optional: true
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: dns-masquerading-operator
description: A Helm chart for https://github.com/sap/dns-masquerading-operator
type: application
version: 0.1.48
version: 0.1.49
appVersion: v0.1.47
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dns-masquerading-operator

![Version: 0.1.48](https://img.shields.io/badge/Version-0.1.48-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.47](https://img.shields.io/badge/AppVersion-v0.1.47-informational?style=flat-square)
![Version: 0.1.49](https://img.shields.io/badge/Version-0.1.49-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.47](https://img.shields.io/badge/AppVersion-v0.1.47-informational?style=flat-square)

A Helm chart for https://github.com/sap/dns-masquerading-operator

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "dns-masquerading-operator.fullname" . }}-test
labels:
{{- include "dns-masquerading-operator.labels" . | nindent 4 }}
annotations:
helm.sh/hook: test
helm.sh/hook-weight: "-1"
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "dns-masquerading-operator.fullname" . }}-test
labels:
{{- include "dns-masquerading-operator.labels" . | nindent 4 }}
annotations:
helm.sh/hook: test
helm.sh/hook-weight: "-1"
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
rules:
- apiGroups:
- dns.cs.sap.com
resources:
- masqueradingrules
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "dns-masquerading-operator.fullname" . }}-test
labels:
{{- include "dns-masquerading-operator.labels" . | nindent 4 }}
annotations:
helm.sh/hook: test
helm.sh/hook-weight: "-1"
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
subjects:
- kind: ServiceAccount
namespace: {{ .Release.Namespace }}
name: {{ include "dns-masquerading-operator.fullname" . }}-test
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ include "dns-masquerading-operator.fullname" . }}-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{{- $ruleName := printf "%s-test-1-%s" (include "dns-masquerading-operator.fullname" .) (randAlphaNum 10 | lower) }}
---
apiVersion: dns.cs.sap.com/v1alpha1
kind: MasqueradingRule
metadata:
name: {{ $ruleName }}
labels:
{{- include "dns-masquerading-operator.labels" . | nindent 4 }}
annotations:
helm.sh/hook: test
helm.sh/hook-weight: "0"
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
spec:
from: test1.example.io
to: 8.8.8.8
---
apiVersion: v1
kind: Pod
metadata:
name: {{ include "dns-masquerading-operator.fullname" . }}-test-1
labels:
{{- include "dns-masquerading-operator.labels" . | nindent 4 }}
annotations:
helm.sh/hook: test
helm.sh/hook-weight: "1"
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
spec:
containers:
- name: kubectl
image: bitnami/kubectl:{{ .Capabilities.KubeVersion.Version | trimPrefix "v" }}
command:
- bash
- -ec
- |
kubectl wait masqueradingrules.dns.cs.sap.com/{{ $ruleName }} --for condition=Ready --timeout 120s
serviceAccountName: {{ include "dns-masquerading-operator.fullname" . }}-test
terminationGracePeriodSeconds: 3
restartPolicy: Never

0 comments on commit c5354e1

Please sign in to comment.