Commit Graph

41 Commits

Author SHA1 Message Date
Akashdeep Dhar
ffbbaa2d68 refactor(mdapi): use env_suffix variable for hostname configuration
Replace hardcoded staging conditional logic with `env_suffix` template variable

Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
2025-08-21 03:22:35 +00:00
Akashdeep Dhar
a56abdf8af openshift-apps/mdapi: Remove unused config files and simplify templates
- Remove myconfig.py, mdapi.cfg, and config.toml unused configuration files
- Remove associated ConfigMaps and volume mounts from templates
- Remove fedora-messaging related configurations and volumes
- Simplify hostname conditional logic in deploymentconfig template

Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
2025-08-20 07:44:07 +00:00
Akashdeep Dhar
879bd775dc feat(mdapi): add GitHub webhook trigger to buildconfig
Add GitHub trigger with environment-specific secrets to enable
automatic builds on repository changes.

Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
2025-08-20 04:40:31 +00:00
Akashdeep Dhar
24f88e1ce6 fix(mdapi): add hostname argument for staging environment
Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
2025-08-14 10:41:46 +00:00
Michal Konecny
b82f406da8 [mdapi] Only reflect the GO changes on staging
Production is not ready yet to work with that changes. Let us separate
them using jinja templating.
2025-08-13 15:28:03 +02:00
Akashdeep Dhar
50818352ab fix(mdapi): configure buildconfig to use Containerfile instead of Dockerfile
OpenShift was failing to build mdapi because it was looking for Dockerfile
but the repository contains Containerfile. Added dockerStrategy.dockerfilePath
configuration to specify the correct container build file.

Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
2025-08-12 10:48:21 +00:00
Akashdeep Dhar
f52650361b fix(mdapi): remove undefined myconfigpy-volume references
Remove volumemount references to myconfigpy-volume from cronjob and
deploymentconfig as the corresponding volume definition was missing,
causing OpenShift deployment failures.

Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
2025-08-12 06:59:54 +00:00
Akashdeep Dhar
cbd9dbb563 Move from Python-based MDAPI to Go-based MetaSource
Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
2025-08-04 08:33:08 +00:00
Aurélien Bompard
bc4fac90cb Replace references to iad2 with the datacenter variable in openshift apps
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-27 12:25:21 +02:00
Ryan Lerch
c9f5849389 mdapi - rename yml templates to .j2
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-14 08:37:31 +10:00
Ryan Lerch
89f6f1fc32 Fix majority of remaining yamllint warnings and errors
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-28 17:31:45 +10:00
David Kirwan
6475c71205 mdapi: update api on mdapi deployment config
Signed-off-by: David Kirwan <dkirwan@redhat.com>
2023-07-20 11:07:47 +01:00
David Kirwan
34bc1a5e5f mdapi: reduce replicas to 1
Signed-off-by: David Kirwan <dkirwan@redhat.com>
2023-07-20 11:03:52 +01:00
Kevin Fenzi
1551d42f45 openshift: next CRD
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-02-13 11:54:08 -08:00
Kevin Fenzi
e614b31457 openshift / various apps: update BuildConfig to use build.openshift.io/v1
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-02-13 11:46:39 -08:00
David Kirwan
f8f758be97 mdapi: rollout to prod
Signed-off-by: David Kirwan <dkirwan@redhat.com>
Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
2023-01-18 13:43:02 +09:00
David Kirwan
f78802897b mdapi: set correct path to mdapi client inside cronjob
Signed-off-by: David Kirwan <dkirwan@redhat.com>
2022-12-20 18:00:51 +09:00
David Kirwan
01c03085ed mdapi: fix configmap file name
Signed-off-by: David Kirwan <dkirwan@redhat.com>
2022-12-20 17:49:53 +09:00
David Kirwan
15ec523d15 mdapi: add myconfig.py configmap
add volumemount to deploymentconfig
       add volumemount to cronjob

Signed-off-by: David Kirwan <dkirwan@redhat.com>
2022-12-20 17:34:49 +09:00
David Kirwan
ab250d7a87 mdapi: change cronjob entrypoint command
Signed-off-by: David Kirwan <dkirwan@redhat.com>
2022-12-20 16:13:35 +09:00
David Kirwan
d59ca4e29f mdapi: point s2i git uri at new repo
Signed-off-by: David Kirwan <dkirwan@redhat.com>
2022-12-20 15:47:55 +09:00
Kevin Fenzi
50fb64dcae openshift-apps: switch to batch/v1 for apiversion of cronjob
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-06-24 17:40:37 -07:00
Kevin Fenzi
9cbc8d420e mdapi: move to ocp4
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-06-16 17:36:31 -07:00
Kevin Fenzi
7984b46eb7 The great phx2 pruning run (1st cut).
Since we no longer have any machines in phx2, I have tried to remove
them from ansible. Note that there are still some places where we need
to remove them still: nagios, dhcp, named were not touched, and in cases
where it wasn't pretty clear what a conditional was doing I left it to
be cleaned up later.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-14 14:14:31 -07:00
Clement Verna
c101327843 mdapi: give the liveness probe 15s before it times out
Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:14 +02:00
Clement Verna
19fa44a731 MDAPI: perform the readinessprobe and livenessprobe every minutes.
This commit makes us check if the pod is healthy only once every
minutes instead of every 10s.

Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:12 +02:00
Clement Verna
36fc015c49 MDAPI: lets have 2 pods in OpenShift to run mdapi
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-05-14 14:38:44 +02:00
Clement Verna
0704eabc9d mdapi: remove echo failed from the OpenShift cronjob
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-05-06 11:30:15 +02:00
Clement Verna
41a2f75dbb mdapi: build on the production OpenShift
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-05-06 11:26:28 +02:00
Clement Verna
f4a1f3c1d5 mdapi: configure openshift cronjob housekeeping
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-04-25 13:55:47 +02:00
Clement Verna
659131c821 mdapi: fix the path of the script executed by the cronjob
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-04-25 11:55:22 +02:00
Clement Verna
16fd75efec mdapi: change the cronjob schedule
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-04-25 11:42:11 +02:00
Clement Verna
4b0b3acc58 mdapi: Add fedora-messaging configuration to OpenShift app
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-04-25 10:40:30 +02:00
Clement Verna
2bce5b21ea MDAPI: Add the storageClassName to the persistent volume claim
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-01-23 15:23:36 +01:00
Clement Verna
e0712a00b2 MDAPI: Update openshift to use nfs storage and fedora-messaging
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-01-23 15:00:13 +01:00
Clement Verna
ea9b6de809 MDAPI: try to pull the correct container in the cron job
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-01-12 21:29:48 +01:00
Clement Verna
5875ea772c MDAPI: in openshift we don't need the prefix
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-01-12 20:47:46 +01:00
Clement Verna
535004d77c MDAPI: Create a non presitent volume to store metadata sqlite files
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-01-12 20:47:18 +01:00
Clement Verna
442a12a2bb MDAPI: use cverna's fork for now to build stg
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-01-12 15:15:58 +01:00
Clement Verna
e7736f0f18 MDAPI: fix openshift configmap syntax
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-01-12 15:15:58 +01:00
Clement Verna
ab0cff4741 mdapi: boilerplate to move mdapi to openshift
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-01-11 20:19:11 +01:00