Skip to content

Commit c3ba459

Browse files
committed
Connecting to the queue manager
(cherry picked from commit b48507e6c6de16ebc6384dcacc8dc02db24e562f)
1 parent f3107e3 commit c3ba459

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

openshift-app-sample/src/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ func main() {
5050

5151
if errCtx != nil {
5252
log.Fatal(errCtx)
53+
} else {
54+
fmt.Println(" -- Connection successful")
5355
}
5456

5557
fmt.Println("Ending world!!!")

openshift-app-sample/yaml/pod-sample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
spec:
66
containers:
77
- name: golang-app
8-
image: uk.icr.io/golang-sample/golang-app:1.3
8+
image: uk.icr.io/golang-sample/golang-app:1.6
99
envFrom:
1010
- configMapRef:
1111
name: qmgr-details
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: mq.ibm.com/v1beta1
2+
kind: QueueManager
3+
metadata:
4+
name: sample-mq
5+
namespace: cp4i
6+
spec:
7+
license:
8+
accept: true
9+
license: L-RJON-BQPGWD
10+
use: NonProduction
11+
queueManager:
12+
name: MYQM
13+
storage:
14+
queueManager:
15+
type: ephemeral
16+
availability:
17+
type: SingleInstance
18+
template:
19+
pod:
20+
containers:
21+
- env:
22+
- name: MQSNOAUT
23+
value: 'yes'
24+
name: qmgr
25+
version: 9.1.5.0-r2
26+
web:
27+
enabled: true

0 commit comments

Comments
 (0)