-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from adrianriobo/0.0.1
Enable container on OCP
- Loading branch information
Showing
16 changed files
with
151 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
out/ | ||
run.sh | ||
.vscode | ||
manifests/config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
# qe-eventmanager | ||
Sample app for handling qe events | ||
|
||
[![Container Repository on Quay](https://quay.io/repository/ariobolo/qe-eventmanager/status "Container Repository on Quay")](https://quay.io/repository/ariobolo/qe-eventmanager) | ||
|
||
# overview | ||
|
||
UMB integration with qe platform | ||
|
||
![Overview](docs/diagrams/overview.jpg?raw=true) | ||
|
||
# Deploy | ||
|
||
```bash | ||
# Create config | ||
manifest/create-config.sh $CA_FILE_PATH $CERTIFICATE_FILE_PATH $KEY_FILE_PATH $BROKERS | ||
|
||
# Deploy resources | ||
oc apply -f manifest/config.yaml | ||
oc apply -f manifest/rbac.yaml | ||
oc apply -f manifest/deployment.yaml | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<mxfile host="Electron" modified="2021-05-27T13:26:32.004Z" agent="5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/13.7.9 Chrome/85.0.4183.121 Electron/10.1.3 Safari/537.36" etag="EDz0NQuypPi37l_St9Zg" version="13.7.9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l/Mn0HI7wn4usWXSDOHznj/jjf3/1KzM+f+v37A5/8A</diagram></mxfile> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Build the manager binary | ||
FROM registry.access.redhat.com/ubi8/go-toolset:1.14.12 as builder | ||
|
||
USER root | ||
WORKDIR /workspace | ||
COPY . . | ||
RUN make build | ||
|
@@ -12,12 +13,3 @@ LABEL MAINTAINER "Adrian Riobo" "<[email protected]>" | |
COPY --from=builder /workspace/out/qe-eventmanager /workspace/images/builder/entrypoint.sh /usr/local/bin/ | ||
|
||
ENTRYPOINT entrypoint.sh | ||
|
||
|
||
|
||
# "start", | ||
# "-b", "messaging-devops-broker02.web.stage.ext.phx2.redhat.com:61612", | ||
# "--ca-certs", "/etc/pki/ca-trust/source/anchors/2015-RH-IT-Root-CA.pem", | ||
# "--certificate-file", "/home/ariobolo/02OFFTOPIC/umb-certificates/psi-crcqe-openstack.crt", | ||
# "--private-key-file", "/home/ariobolo/02OFFTOPIC/umb-certificates/psi-crcqe-openstack.key", | ||
# "-k", "/home/ariobolo/02OFFTOPIC/umb-certificates/config"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# Usage create-config.sh $CA_FILE_PATH $CERTIFICATE_FILE_PATH $KEY_FILE_PATH $BROKERS | ||
|
||
ca=$(cat $1 | base64 -w0) | ||
certificate=$(cat $2 | base64 -w0) | ||
key=$(cat $3 | base64 -w0) | ||
brokers=$(echo -n $4 | base64 -w0) | ||
|
||
|
||
if [ "${DEBUG:-}" = "true" ]; then | ||
set -xuo | ||
fi | ||
|
||
set -e pipefail | ||
|
||
# Create file | ||
cat <<EOF > config.yaml | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: qe-eventmanager-config | ||
type: Opaque | ||
data: | ||
ca: ${ca} | ||
certificate: ${certificate} | ||
key: ${key} | ||
brokers: ${brokers} | ||
EOF |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,6 @@ var ( | |
} | ||
|
||
defaultTimeout v1.Duration = v1.Duration{ | ||
Duration: 5 * time.Hour, | ||
Duration: 8 * time.Hour, | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.