Skip to content

Commit

Permalink
chore: Updated to include latest 0.9.3 chart.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellotti committed Mar 28, 2024
1 parent de7945b commit 59d84f3
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 2 deletions.
Binary file added charts/discovery-0.9.3.tgz
Binary file not shown.
26 changes: 24 additions & 2 deletions charts/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,29 @@ entries:
discovery:
- apiVersion: v2
appVersion: 1.5.3
created: "2024-03-27T20:41:40.459786-04:00"
created: "2024-03-28T06:09:27.674973-04:00"
dependencies:
- name: db
repository: ""
version: 1.0.1
- name: redis
repository: ""
version: 1.0.0
- name: celery-worker
repository: ""
version: 0.9.3
description: The RedHat Product Discovery tool is designed to help users collect
data about their usage of specific Red Hat software.
digest: 09a8228e477742c0ab5231ebe8c6d44c30ca5afaa23d45112c79405a02a40083
icon: https://quipucords.github.io/discovery-helm-repo/charts/discovery/icon.png
name: discovery
type: application
urls:
- discovery-0.9.3.tgz
version: 0.9.3
- apiVersion: v2
appVersion: 1.5.3
created: "2024-03-28T06:09:27.674035-04:00"
dependencies:
- name: db
repository: ""
Expand All @@ -23,4 +45,4 @@ entries:
urls:
- discovery-0.9.2.tgz
version: 0.9.2
generated: "2024-03-27T20:41:40.456106-04:00"
generated: "2024-03-28T06:09:27.672273-04:00"
65 changes: 65 additions & 0 deletions overlays/charts/db/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "db.fullname" . }}
labels:
{{- include "db.labels" . | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
{{- include "db.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "db.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccount: {{ include "discovery.globalServiceAccountName" . }}
serviceAccountName: {{ include "discovery.globalServiceAccountName" . }}
restartPolicy: Always
volumes:
- name: {{ .Release.Name }}-data-volume-claim
persistentVolumeClaim:
claimName: {{ .Release.Name }}-data-volume-claim
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
volumeMounts:
- mountPath: /var/lib/pgsql/data
name: {{ .Release.Name }}-data-volume-claim
subPath: data
readinessProbe:
exec:
command: [ "/bin/pg_isready", "-U", "postgres" ]
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 45
env:
- name: POSTGRESQL_USER
value: {{ .Values.postgresql.user }}
- name: POSTGRESQL_PASSWORD
value: {{ .Values.postgresql.password }}
- name: POSTGRESQL_DATABASE
value: {{ .Values.postgresql.database }}

0 comments on commit 59d84f3

Please sign in to comment.