Commit graph

59 commits

Author SHA1 Message Date
Kevin Fenzi
14f05eb02f openshift-apps / message-tagging-service: MTS_CONFIG_VERSION has to be a string
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-07-24 14:57:52 -07:00
Chenxiong Qi
60d5bacd4f mts: workaround to trigger os automatically to create a new pod
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
c87f75402e mts: add example rule to rule file
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
dd14d05de6 mts: fix mts-rules.yml download url
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
62cd4d7c36 mts: add app_version to client_properties
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
66392498dc mts: run actually on stg to check messages sent from mts
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
f5e1beaf33 mts: dry_run on stg
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
08ee75499b mts: also bind to zmq.topic for MBS
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
2ee277f6c2 mts: enable dry_run in prod
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
afb597f942 Revert "mts: try to set topic differently for stg and prod"
This reverts commit 8b33644453b2a93a7a22f6da3f16fd29ac4a5390.
2020-04-24 21:34:10 +02:00
Chenxiong Qi
bca373d298 mts: try to set topic differently for stg and prod
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
ff4978b045 mts: set queue durable and auto_delete differently for stg and prod
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
d19cd2ca4d mts: drop test routing key and fix mbs routing key
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
20b1cf520d mts: add another topic to test stg
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
d390fdbb10 mts: fix ACCESS_REFUSED for access to queue name mts.stg
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
55ec223b80 Revert "mts: try uuidgen queue name"
Queue name must start with prefix "mts".

This reverts commit e65735ee28dd201cf79ba03a25f5654940017e42.
2020-04-24 21:34:10 +02:00
Chenxiong Qi
843b38338c mts: try uuidgen queue name
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
a178a92195 mts: quote queue name in toml config properly
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
748ec87d6f mts: setup user and queue for fedora-messaging
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
28c629fbae mts: krb5.con was edited accidentally before
Since this commit, prefix is changed to word "mts" to save space of
summary.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
000510d35b message-tagging-service: revert secret files' path and use subPath to specify secret files
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
d0e235c3e8 message-tagging-service: quote string value correctly in fedora-messaging-config.toml
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
f7087eb79f message-tagging-service: set fedora-messaging cert properly
* Use mts as the username to connect fedora-messaging broker.
* Referece cacert, certificate and private key in
  fedora-messaging-config.toml properly.
* Some template files are renamed.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
fa8e09919e message-tagging-service: load config content from file
Config content are moved to single file to simplify configmap.yml

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:10 +02:00
Chenxiong Qi
f0191e2068 message-tagging-service: try pull image name copied from OS image stream page
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:09 +02:00
Chenxiong Qi
e703fdbfe1 message-tagging-service: revert to image name
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:09 +02:00
Chenxiong Qi
3799320448 message-tagging-service: fix internal image namespace
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:09 +02:00
Chenxiong Qi
2ec354976a message-tagging-service: use imported image from internal registry
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:09 +02:00
Chenxiong Qi
f5bdd92148 message-tagging-service: use tag stg for Fedora specifically
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:09 +02:00
Chenxiong Qi
cd2b381e79 message-tagging-service: set messaging backend properly in config and remove env var USERNAME which was added for fedmsg.publish
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:09 +02:00
Chenxiong Qi
6825f3b4fc message-tagging-service: fix mts-fedora-messaging configmap name
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:09 +02:00
Chenxiong Qi
94a1d367f8 message-tagging-service: add load_file macro to configmap
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:09 +02:00
Chenxiong Qi
ede8eadc23 message-tagging-service: connect to fedora-messaging instead of fedmsg
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:09 +02:00
Chenxiong Qi
0217a00e6c message-tagging-service: add relay_outbound to fedmsg config
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:08 +02:00
Chenxiong Qi
7ad62ce6c0 message-tagging-service: fix fedmsg config
Set proper relay_inbound address in order to publish messages.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:08 +02:00
Chenxiong Qi
fe3781dde7 message-tagging-services: set env var USERNAME for fedmsg to publish messages
Refer to the comment inside code for details.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:08 +02:00
Chenxiong Qi
69164ae6d9 message-tagging-services: try some env var names to set user name
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:08 +02:00
Chenxiong Qi
c0a7d32379 message-tagging-service: remove env USER
USER is set in the Dockerfile.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:08 +02:00
Chenxiong Qi
5570944d47 message-tagging-service: fix if-else in deployment.yml
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:08 +02:00
Chenxiong Qi
ef2c813164 message-tagging-service: try to quote env value
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:08 +02:00
Chenxiong Qi
53fbef1804 message-tagging-service: set USER for fedmsg
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:08 +02:00
Chenxiong Qi
9317dc2149 message-tagging-service: add config for fedmsg relay
Add relay_inbound and relay_outbound to config in order to send message
to fedmsg. But, yeah, MTS should migrate to fedora-messaging eventually.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:08 +02:00
Chenxiong Qi
07278500e4 message-tagging-service: disable dry-run in stg to test a real run
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:08 +02:00
Chenxiong Qi
0a348a4da4 message-tagging-service: fix configmap for krb5.conf
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:08 +02:00
Chenxiong Qi
7358fd1f06 message-tagging-service: use fedora-infra krb5.conf template and install koji conf into proper place
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:08 +02:00
Chenxiong Qi
1562dd6e62 message-tagging-service: fix config path and new config for fedoraproject kerberos auth
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:08 +02:00
Chenxiong Qi
fa4b5f0670 message-tagging-service: add koji config
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:07 +02:00
Chenxiong Qi
e4b3591d2d message-tagging-service: add missing config koji_cert
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:07 +02:00
Chenxiong Qi
16de19d61a message-tagging-service: simplify names
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:07 +02:00
Chenxiong Qi
949615fa8a message-tagging-service: fix configmap and DC
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-04-24 21:34:06 +02:00