1
0
Fork 0
forked from infra/ansible

datanommer: fix deployment reference

Signed-off-by: Pedro Moura <pmoura@redhat.com>
This commit is contained in:
Pedro Moura 2026-04-16 18:15:05 -03:00 committed by Kevin Fenzi
commit 7b4bae5003
2 changed files with 2 additions and 78 deletions

View file

@ -80,8 +80,8 @@
- role: openshift/object
object_app: datanommer
object_template: deploymentconfig.yml.j2
object_objectname: deploymentconfig.yml
object_template: deployment.yml.j2
object_objectname: deployment.yml
- role: openshift/object
object_app: datanommer

View file

@ -1,76 +0,0 @@
---
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
name: datanommer
labels:
app: Datanommer
spec:
replicas: 1
selector:
app: Datanommer
deploymentconfig: datanommer
strategy:
type: Recreate
recreateParams:
mid:
execNewPod:
command: [/opt/app-root/bin/alembic, -c, /etc/fedora-messaging/alembic.ini, upgrade, head]
containerName: datanommer
volumes:
- fedora-messaging-config-volume
failurePolicy: Abort
template:
metadata:
creationTimestamp: null
labels:
app: Datanommer
deploymentconfig: datanommer
spec:
containers:
- name: datanommer
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
limits:
memory: 2Gi
volumeMounts:
- name: fedora-messaging-config-volume
mountPath: "/etc/fedora-messaging"
readOnly: true
- name: fedora-messaging-ca-volume
mountPath: /etc/pki/fedora-messaging/cacert.pem
subPath: cacert.pem
readOnly: true
- name: fedora-messaging-crt-volume
mountPath: /etc/pki/fedora-messaging/datanommer-cert.pem
subPath: datanommer-cert.pem
readOnly: true
- name: fedora-messaging-key-volume
mountPath: /etc/pki/fedora-messaging/datanommer-key.pem
subPath: datanommer-key.pem
readOnly: true
volumes:
- name: fedora-messaging-config-volume
configMap:
name: fedora-messaging-config
- name: fedora-messaging-ca-volume
secret:
secretName: fedora-messaging-ca
- name: fedora-messaging-crt-volume
secret:
secretName: fedora-messaging-crt
- name: fedora-messaging-key-volume
secret:
secretName: fedora-messaging-key
triggers:
- imageChangeParams:
automatic: true
containerNames:
- datanommer
from:
kind: ImageStreamTag
name: datanommer:latest
type: ImageChange
- type: ConfigChange