Skip to content

Commit

Permalink
Merge pull request #59 from sclorg/redis_migration_deployment
Browse files Browse the repository at this point in the history
Redis migration deployment
  • Loading branch information
phracek authored Dec 12, 2023
2 parents 4223ae5 + d4aad59 commit 616f1e9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions charts/redhat/redis-persistent/src/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ description: |-
NOTE: You must have persistent volumes available in your cluster to use this template.
name: redis-persistent
tags: database,redis
version: 0.0.2
version: 0.0.3
annotations:
charts.openshift.io/name: Red Hat Redis in-memory data structure store, with persistent storage (experimental).
apiVersion: v2
appVersion: 0.0.2
appVersion: 0.0.3
kubeVersion: '>=1.20.0'
sources:
- https://github.com/sclorg/helm-charts
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
template.alpha.openshift.io/wait-for-ready: "true"
image.openshift.io/triggers: |-
[
{
"from": {
"kind": "ImageStreamTag",
"name": "redis:{{ .Values.redis_version }}"
},
"fieldPath": "spec.template.spec.containers[0].image"
}
]
labels:
template: redis-persistent-template
name: {{ .Values.database_service_name }}
spec:
replicas: 1
selector:
name: {{ .Values.database_service_name }}
matchLabels:
name: {{ .Values.database_service_name }}
strategy:
type: Recreate
template:
Expand All @@ -24,7 +35,7 @@ spec:
secretKeyRef:
key: database-password
name: {{ .Values.database_service_name }}
image: "redis:{{ .Values.redis_version }}"
image: " "
imagePullPolicy: IfNotPresent
livenessProbe:
initialDelaySeconds: 30
Expand Down Expand Up @@ -60,15 +71,4 @@ spec:
- name: {{ .Values.database_service_name }}-data
persistentVolumeClaim:
claimName: {{ .Values.database_service_name }}
triggers:
- imageChangeParams:
automatic: true
containerNames:
- redis
from:
kind: ImageStreamTag
name: redis:{{ .Values.redis_version }}
lastTriggeredImage: ""
type: ImageChange
- type: ConfigChange
status: {}
Binary file added redis-persistent-0.0.3.tgz
Binary file not shown.

0 comments on commit 616f1e9

Please sign in to comment.