File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
must-gather/pkg/templates Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import (
36
36
const (
37
37
FilePermission = 0644
38
38
FolderPermission = 0777
39
+ IBMCloudConstant = "IBMCloud"
39
40
)
40
41
41
42
var (
@@ -249,14 +250,19 @@ func ReplaceClusterInformationSection(
249
250
250
251
summaryTemplateReplaces ["OCP_VERSION" ] = clusterVersion .Status .Desired .Version
251
252
summaryTemplateReplaces ["CLUSTER_VERSION" ] = createYAML (outputPath , "cluster-scoped-resources/config.openshift.io/clusterversions.yaml" , clusterVersion )
253
+ cloudProvider := ""
254
+
252
255
253
256
if infrastructureList != nil && len (infrastructureList .Items ) != 0 {
254
- cloudProvider : = string (infrastructureList .Items [0 ].Spec .PlatformSpec .Type )
257
+ cloudProvider = string (infrastructureList .Items [0 ].Spec .PlatformSpec .Type )
255
258
summaryTemplateReplaces ["CLOUD" ] = cloudProvider
256
259
} else {
257
260
summaryTemplateReplaces ["CLOUD" ] = "❌ no Infrastructure found in cluster"
258
261
summaryTemplateReplaces ["ERRORS" ] += "⚠️ No Infrastructure found in cluster\n \n "
259
262
}
263
+ if strings .EqualFold (cloudProvider , IBMCloudConstant ) {
264
+ summaryTemplateReplaces ["CLOUD" ] += " [WARNING:](https://access.redhat.com/articles/5456281#known-issues-with-cloud-providers-and-hyperscalers-18)"
265
+ }
260
266
261
267
if nodeList != nil && len (nodeList .Items ) != 0 {
262
268
architectureText := ""
You can’t perform that action at this time.
0 commit comments