-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment-versions
executable file
·127 lines (119 loc) · 4.51 KB
/
environment-versions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
show_help() {
prin: tf "
Usage: path/to/ffc-pay-core [OPTION...]
;
Returns version of services in a Kubernetes namespace.
Options:
-c, --context include Azure Function Apps
-n, --namespace include statement services
-h, --help display this help text
"
}
POSITIONAL_ARGS=()
while [[ $# -gt 0 ]]; do
case $1 in
-c|--context)
CONTEXT="$2"
shift
shift
;;
-n|--namespace)
NAMESPACE="$2"
shift
shift
;;
-h|--help) # Call a "show_help" function to display a synopsis, then exit.
show_help
exit
;;
-*|--*)
shift
;;
*)
POSITIONAL_ARGS+=("$1")
shift
;;
esac
done
kubectl config use-context $CONTEXT
kubectl config set-context --current --namespace=$NAMESPACE
echo $NAMESPACE
echo
echo 'ffc-pay-batch-verifier: ' &&
kubectl get deployment ffc-pay-batch-verifier -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-batch-processor: ' &&
kubectl get deployment ffc-pay-batch-processor -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-enrichment: ' &&
kubectl get deployment ffc-pay-enrichment -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-processing: ' &&
kubectl get deployment ffc-pay-processing -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-submission: ' &&
kubectl get deployment ffc-pay-submission -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-file-publisher: ' &&
kubectl get deployment ffc-pay-file-publisher -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-file-receiver: ' &&
kubectl get deployment ffc-pay-file-receiver -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-responses: ' &&
kubectl get deployment ffc-pay-responses -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-tracking: ' &&
kubectl get deployment ffc-pay-tracking -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-web: ' &&
kubectl get deployment ffc-pay-web -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-request-editor: ' &&
kubectl get deployment ffc-pay-request-editor -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-event-hub: ' &&
kubectl get deployment ffc-pay-event-hub -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-data-hub: ' &&
kubectl get deployment ffc-pay-data-hub -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-report-generator: ' &&
kubectl get deployment ffc-pay-report-generator -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-alerting: ' &&
kubectl get deployment ffc-pay-alerting -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-gateway: ' &&
kubectl get deployment ffc-pay-gateway -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-injection: ' &&
kubectl get deployment ffc-pay-injection -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-xb: ' &&
kubectl get deployment ffc-pay-xb -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-dps: ' &&
kubectl get deployment ffc-pay-dps -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-fdmr: ' &&
kubectl get deployment ffc-pay-fdmr -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-demographics: ' &&
kubectl get deployment ffc-pay-demographics -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-doc-statement-data: ' &&
kubectl get cronjob ffc-doc-statement-data -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-doc-statement-constructor: ' &&
kubectl get deployment ffc-doc-statement-constructor -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-doc-statement-generator: ' &&
kubectl get deployment ffc-doc-statement-generator -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-doc-statement-publisher: ' &&
kubectl get deployment ffc-doc-statement-publisher -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo
echo 'ffc-pay-statement-receiver: ' &&
kubectl get deployment ffc-pay-statement-receiver -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}';
echo