File tree 2 files changed +61
-0
lines changed
2 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 44
44
- ' {{repl ConfigOption "store_s3_access_key_id" }}' # S3_ACCESS_KEY_ID
45
45
- ' {{repl ConfigOption "store_s3_secret_access_key" }}' # S3_SECRET_ACCESS_KEY
46
46
- ' {{repl ConfigOption "store_s3_bucket" }}' # S3_BUCKET_NAME
47
+ - run :
48
+ # Check that the pull registry is accessible from the cluster
49
+ collectorName : ping-registry
50
+ image : alpine/curl
51
+ name : ping-registry
52
+ command :
53
+ - /bin/sh
54
+ - -c
55
+ args :
56
+ - |
57
+ CONNECTION="error"
58
+
59
+ if [ '{{repl HasLocalRegistry }}' = "true" ];
60
+ then
61
+ # Don't test for airgapped
62
+ CONNECTION="ok"
63
+ else
64
+ URL="https://eu.gcr.io/v2/"
65
+ echo "ping ${URL}"
66
+ if curl --silent --max-time 5 "${URL}" > /dev/null;
67
+ then
68
+ CONNECTION="ok"
69
+ fi
70
+ fi
71
+
72
+ echo "connection: ${CONNECTION}"
47
73
analyzers :
48
74
- clusterVersion :
49
75
outcomes :
@@ -206,3 +232,13 @@ spec:
206
232
message : Object storage connection is valid
207
233
- fail :
208
234
message : Object storage connection is invalid. Please check your settings and that the resource is accessible from your cluster
235
+ - textAnalyze :
236
+ checkName : Pull registry is accessible from cluster
237
+ fileName : ping-registry/ping-registry.log
238
+ regexGroups : ' connection: (?P<Connection>\w+)'
239
+ outcomes :
240
+ - pass :
241
+ when : " Connection == ok"
242
+ message : Registry is accessible
243
+ - fail :
244
+ message : Registry is inaccessible. Please check your network and firewall settings
Original file line number Diff line number Diff line change 35
35
- ' {{repl ConfigOption "store_s3_access_key_id" }}' # S3_ACCESS_KEY_ID
36
36
- ' {{repl ConfigOption "store_s3_secret_access_key" }}' # S3_SECRET_ACCESS_KEY
37
37
- ' {{repl ConfigOption "store_s3_bucket" }}' # S3_BUCKET_NAME
38
+ - run :
39
+ collectorName : ping-registry
40
+ image : alpine/curl
41
+ name : ping-registry
42
+ command :
43
+ - /bin/sh
44
+ - -c
45
+ args :
46
+ - |
47
+ CONNECTION="error"
48
+
49
+ if [ '{{repl HasLocalRegistry }}' = "true" ];
50
+ then
51
+ # Don't test for airgapped
52
+ CONNECTION="ok"
53
+ else
54
+ URL="https://eu.gcr.io/v2/"
55
+ echo "ping ${URL}"
56
+ if curl --silent --max-time 5 "${URL}" > /dev/null;
57
+ then
58
+ CONNECTION="ok"
59
+ fi
60
+ fi
61
+
62
+ echo "connection: ${CONNECTION}"
38
63
- clusterInfo : {}
39
64
- clusterResources : {}
40
65
- logs :
You can’t perform that action at this time.
0 commit comments