Skip to content

Commit

Permalink
Update chart (triggered by operator helm release 0.1.3)
Browse files Browse the repository at this point in the history
Repository: SAP/redis-operator-helm
Release: 0.1.3
Commit: 44ab533b6786f6a03bc505390420b77743d9809c
  • Loading branch information
ERP4SME-DevOps-GitHub-Workflow-User committed Jul 17, 2023
1 parent a2e7fe0 commit efe1f92
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/operator/data/charts/redis-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: redis-operator
description: A Helm chart for https://github.com/sap/redis-operator
type: application
version: 0.1.2
version: 0.1.3
appVersion: v0.1.3
2 changes: 1 addition & 1 deletion pkg/operator/data/charts/redis-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# redis-operator

![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.1](https://img.shields.io/badge/AppVersion-v0.1.1-informational?style=flat-square)
![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.3](https://img.shields.io/badge/AppVersion-v0.1.3-informational?style=flat-square)

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

Expand Down
50 changes: 50 additions & 0 deletions pkg/operator/data/charts/redis-operator/templates/tests/rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "redis-operator.fullname" . }}-test
labels:
{{- include "redis-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 "redis-operator.fullname" . }}-test
labels:
{{- include "redis-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:
- cache.cs.sap.com
resources:
- redis
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "redis-operator.fullname" . }}-test
labels:
{{- include "redis-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 "redis-operator.fullname" . }}-test
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ include "redis-operator.fullname" . }}-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{{- $redisName := printf "%s-test-1-%s" (include "redis-operator.fullname" .) (randAlphaNum 10 | lower) }}
---
apiVersion: cache.cs.sap.com/v1alpha1
kind: Redis
metadata:
name: {{ $redisName }}
labels:
{{- include "redis-operator.labels" . | nindent 4 }}
annotations:
helm.sh/hook: test
helm.sh/hook-weight: "0"
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
---
apiVersion: v1
kind: Pod
metadata:
name: {{ include "redis-operator.fullname" . }}-test-1
labels:
{{- include "redis-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 redis.cache.cs.sap.com/{{ $redisName }} --for condition=Ready --timeout 120s
serviceAccountName: {{ include "redis-operator.fullname" . }}-test
terminationGracePeriodSeconds: 3
restartPolicy: Never
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{{- $redisName := printf "%s-test-2-%s" (include "redis-operator.fullname" .) (randAlphaNum 10 | lower) }}
---
apiVersion: cache.cs.sap.com/v1alpha1
kind: Redis
metadata:
name: {{ $redisName }}
labels:
{{- include "redis-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:
replicas: 3
sentinel:
enabled: true
metrics:
enabled: true
tls:
enabled: true
---
apiVersion: v1
kind: Pod
metadata:
name: {{ include "redis-operator.fullname" . }}-test-2
labels:
{{- include "redis-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 redis.cache.cs.sap.com/{{ $redisName }} --for condition=Ready --timeout 300s
serviceAccountName: {{ include "redis-operator.fullname" . }}-test
terminationGracePeriodSeconds: 3
restartPolicy: Never

0 comments on commit efe1f92

Please sign in to comment.