Skip to content

Commit

Permalink
Merge pull request #13241 from Lucifergene/ODC-7397-Fix-the-forms-whe…
Browse files Browse the repository at this point in the history
…n-BC

OCPBUGS-22419: Fix the forms when BC is not installed in the cluster
  • Loading branch information
openshift-ci[bot] committed Oct 26, 2023
2 parents a285107 + 4e3f283 commit 351effc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 13 additions & 4 deletions frontend/packages/dev-console/console-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@
]
},
"flags": {
"required": ["JAVA_IMAGE_STREAM_ENABLED"]
"required": ["OPENSHIFT_BUILDCONFIG", "JAVA_IMAGE_STREAM_ENABLED"]
}
},
{
Expand Down Expand Up @@ -525,7 +525,7 @@
"typeDescription": "%devconsole~**Builder Images** are container images that build source code for a particular language or framework.%"
},
"flags": {
"required": ["OPENSHIFT_IMAGESTREAM"]
"required": ["OPENSHIFT_BUILDCONFIG", "OPENSHIFT_IMAGESTREAM"]
}
},
{
Expand All @@ -537,7 +537,7 @@
"provider": { "$codeRef": "catalog.builderImageProvider" }
},
"flags": {
"required": ["OPENSHIFT_IMAGESTREAM"]
"required": ["OPENSHIFT_BUILDCONFIG", "OPENSHIFT_IMAGESTREAM"]
}
},
{
Expand Down Expand Up @@ -571,6 +571,9 @@
"title": "%devconsole~Devfiles%",
"catalogDescription": "%devconsole~Browse for devfiles that support a particular language or framework. Cluster administrators can customize the content made available in the catalog.%",
"typeDescription": "%devconsole~**Devfiles** are sets of objects for creating services, build configurations, and anything you have permission to create within a Project.%"
},
"flags": {
"required": ["OPENSHIFT_BUILDCONFIG", "OPENSHIFT_IMAGESTREAM"]
}
},
{
Expand All @@ -580,6 +583,9 @@
"type": "Devfile",
"title": "%devconsole~Devfiles%",
"provider": { "$codeRef": "catalog.devfileProvider" }
},
"flags": {
"required": ["OPENSHIFT_BUILDCONFIG", "OPENSHIFT_IMAGESTREAM"]
}
},
{
Expand Down Expand Up @@ -637,7 +643,7 @@
"provider": { "$codeRef": "catalog.builderImageSamplesProvider" }
},
"flags": {
"required": ["OPENSHIFT_IMAGESTREAM"]
"required": ["OPENSHIFT_BUILDCONFIG", "OPENSHIFT_IMAGESTREAM"]
}
},
{
Expand All @@ -647,6 +653,9 @@
"type": "Devfile",
"title": "%devconsole~Devfile%",
"provider": { "$codeRef": "catalog.devfileSamplesProvider" }
},
"flags": {
"required": ["OPENSHIFT_BUILDCONFIG", "OPENSHIFT_IMAGESTREAM"]
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ export const SampleGettingStartedCard: React.FC<SampleGettingStartedCardProps> =
const orderedCatalogItems = orderCatalogItems(service.items || [], featured);
const slicedCatalogItems = orderedCatalogItems.slice(0, 2);

if (service.loaded && slicedCatalogItems.length === 0) {
return null;
}

const links: GettingStartedLink[] = service.loaded
? slicedCatalogItems.map((item) => {
return {
Expand Down

0 comments on commit 351effc

Please sign in to comment.