Skip to content

Commit

Permalink
Merge pull request #13089 from sg00dwin/remove-sections-from-nav-CONS…
Browse files Browse the repository at this point in the history
…OLE3728

OCPBUGS-17981: Remove DeploymentConfig, Build and BuildConfig sections from navigation and use flags so they can be enabled by cluster admins
  • Loading branch information
openshift-merge-robot committed Aug 24, 2023
2 parents 537c57d + 5a5cb54 commit 134c329
Showing 1 changed file with 41 additions and 3 deletions.
44 changes: 41 additions & 3 deletions frontend/packages/console-app/console-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,39 @@
}
}
},
{
"type": "console.flag/model",
"properties": {
"flag": "OPENSHIFT_BUILD",
"model": {
"group": "build.openshift.io",
"version": "v1",
"kind": "Build"
}
}
},
{
"type": "console.flag/model",
"properties": {
"flag": "OPENSHIFT_DEPLOYMENTCONFIG",
"model": {
"group": "apps.openshift.io",
"version": "v1",
"kind": "DeploymentConfig"
}
}
},
{
"type": "console.flag/model",
"properties": {
"flag": "OPENSHIFT_BUILDCONFIG",
"model": {
"group": "build.openshift.io",
"version": "v1",
"kind": "BuildConfig"
}
}
},
{
"type": "console.context-provider",
"properties": {
Expand Down Expand Up @@ -134,6 +167,9 @@
"kind": "DeploymentConfig"
},
"provider": { "$codeRef": "actions.useDeploymentConfigActionsProvider" }
},
"flags": {
"required": ["OPENSHIFT_DEPLOYMENTCONFIG"]
}
},
{
Expand Down Expand Up @@ -671,7 +707,7 @@
"kind": "DeploymentConfig"
}
},
"flags": { "required": ["OPENSHIFT"] }
"flags": { "required": ["OPENSHIFT_DEPLOYMENTCONFIG"] }
},
{
"type": "console.navigation/resource-ns",
Expand Down Expand Up @@ -974,7 +1010,8 @@
"version": "v1",
"kind": "BuildConfig"
}
}
},
"flags": { "required": ["OPENSHIFT_BUILDCONFIG"] }
},
{
"type": "console.navigation/resource-ns",
Expand All @@ -989,7 +1026,8 @@
"version": "v1",
"kind": "Build"
}
}
},
"flags": { "required": ["OPENSHIFT_BUILD"] }
},
{
"type": "console.navigation/resource-ns",
Expand Down

0 comments on commit 134c329

Please sign in to comment.