File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
ci/images/ci-runner/hack/bin Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,22 @@ fetch_bitwarden_secrets() {
19
19
get_aws_credentials
20
20
}
21
21
22
+ print_debug_info () {
23
+ printf " Print debug info......\n" | indent 2
24
+
25
+ printf " HostedCluster CR Status: " | indent 4
26
+ kubectl -n clusters get hostedcluster " $CLUSTER_NAME " -o yaml
27
+
28
+ printf " Control Plane pods of HostedCluster: " | indent 4
29
+ kubectl -n " clusters-${CLUSTER_NAME} " get pods
30
+
31
+ # Export kubeconfig of hosted cluster
32
+ hypershift create kubeconfig --name " $CLUSTER_NAME " > " ${CLUSTER_NAME} .kubeconfig"
33
+
34
+ printf " Cluster Operators on Hosted Cluster: " | indent 4
35
+ kubectl --kubeconfig=" ${CLUSTER_NAME} .kubeconfig" get co -o yaml
36
+ }
37
+
22
38
deploy_cluster () {
23
39
setx_off
24
40
hypershift create cluster aws --pull-secret " $PULL_SECRET " --aws-creds " $AWS_CREDENTIALS " --name " $CLUSTER_NAME " --node-pool-replicas=2 --base-domain " $BASE_DOMAIN " --region=" $REGION " --release-image=" $IMAGE " --root-volume-type=gp3 --root-volume-size=120 --instance-type=m5.2xlarge
@@ -35,7 +51,7 @@ deploy_cluster() {
35
51
]; do
36
52
if [ " $wait_period " -gt 1800 ]; then
37
53
echo " [ERROR] Failed to create OCP cluster." >&2
38
- kubectl -n clusters get hostedcluster " $CLUSTER_NAME " -o yaml
54
+ print_debug_info
39
55
exit 1
40
56
fi
41
57
sleep 60
You can’t perform that action at this time.
0 commit comments