-
Notifications
You must be signed in to change notification settings - Fork 172
feat: add info about hiding editor definitions #2908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2c42bb3
feat: hiding editors definitions
olexii4 f32aaec
fixup! feat: hiding editors definitions
olexii4 c11d386
fixup! fixup! feat: hiding editors definitions
olexii4 b00d91a
fixup! fixup! fixup! feat: hiding editors definitions
olexii4 8e098e8
fixup! fixup! fixup! fixup! feat: hiding editors definitions
olexii4 a23f229
fixup! fixup! fixup! fixup! fixup! feat: hiding editors definitions
olexii4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
modules/administration-guide/examples/snip_che-editor-id-list.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| :_content-type: SNIPPET | ||
|
|
||
| . An editor ID has the following format: `publisher/name/version`. Find out the IDs of the available editors: | ||
| + | ||
| [source,subs="+quotes,+attributes"] | ||
| ---- | ||
| {orch-cli} exec deploy/{prod-id-short}-dashboard -n {prod-namespace} \ | ||
| -- curl -s http://localhost:8080/dashboard/api/editors | jq -r '[.[] | "\(.metadata.attributes.publisher)/\(.metadata.name)/\(.metadata.attributes.version)"]' | ||
| ---- | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
173 changes: 0 additions & 173 deletions
173
modules/administration-guide/pages/concealing-editors-definitions.adoc
This file was deleted.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
modules/administration-guide/pages/concealing-editors.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| :_content-type: PROCEDURE | ||
| :description: Concealing editors in the Dashboard UI | ||
| :keywords: administration guide, concealing, dashboard, editors | ||
| :navtitle: Concealing editors | ||
|
|
||
| [id="concealing-editors"] | ||
| = Concealing editors | ||
|
|
||
| Learn how to conceal {prod-short} editor. This is useful when you want to hide selected editors from the Dashboard UI, e.g. hide the IntelliJ IDEA Ultimate and have only Visual Studio Code - Open Source visible. | ||
|
|
||
| .Prerequisites | ||
|
|
||
| * An active `{orch-cli}` session with administrative permissions to the {orch-name} cluster. See {orch-cli-link}. | ||
|
|
||
| * `jq`. See link:https://stedolan.github.io/jq/download/[Downloading `jq`]. | ||
|
|
||
| .Procedure | ||
|
|
||
| include::example$snip_che-editor-id-list.adoc[] | ||
|
|
||
| . Configure the `CheCluster` Custom Resource. See xref:using-the-cli-to-configure-the-checluster-custom-resource.adoc[]. | ||
| + | ||
| [source,yaml] | ||
| ---- | ||
| spec: | ||
| components: | ||
| dashboard: | ||
| deployment: | ||
| containers: | ||
| - env: | ||
| - name: CHE_HIDE_EDITORS_BY_ID | ||
| value: 'che-incubator/che-webstorm-server/latest, che-incubator/che-webstorm-server/next' <1> | ||
| ---- | ||
| <1> A string containing comma-separated IDs of editors to hide. | ||
|
|
||
| .Additional resources | ||
|
|
||
| * xref:using-chectl-to-configure-the-checluster-custom-resource-during-installation.adoc[] | ||
|
|
||
| * xref:using-the-cli-to-configure-the-checluster-custom-resource.adoc[] | ||
|
|
||
| * {editor-definition-samples-link} | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
...les/administration-guide/pages/managing-workloads-using-the-che-server-api.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
modules/administration-guide/pages/show-deprecated-editors.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| :_content-type: PROCEDURE | ||
| :description: Show deprecated editors | ||
| :keywords: administration guide, show deprecated, dashboard, editors | ||
| :navtitle: Show deprecated editors | ||
| :page-aliases: installation-guide:show-deprecated-editors.adoc | ||
|
|
||
| [id="show-deprecated-editors"] | ||
| = Show deprecated editors | ||
|
|
||
| Learn how to show deprecated {prod-short} editors. | ||
olexii4 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| NOTE: By default, the deprecated editors are hidden in the Dashboard UI. To show them, you need to set the `CHE_SHOW_DEPRECATED_EDITORS` environment variable to `true`. | ||
olexii4 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| .Prerequisites | ||
|
|
||
| * An active `{orch-cli}` session with administrative permissions to the {orch-name} cluster. See {orch-cli-link}. | ||
|
|
||
| * `jq`. See link:https://stedolan.github.io/jq/download/[Downloading `jq`]. | ||
|
|
||
| .Procedure | ||
|
|
||
| . An editor ID has the following format: `publisher/name/version`. Find out the IDs of the deprecated editors: | ||
| + | ||
| [source,subs="+quotes,+attributes"] | ||
| ---- | ||
| {orch-cli} exec deploy/{prod-id-short}-dashboard -n {prod-namespace} \ | ||
| -- curl -s http://localhost:8080/dashboard/api/editors | jq -r '[.[] | select(.metadata.tags != null) | select(.metadata.tags[] | contains("Deprecate")) | "\(.metadata.attributes.publisher)/\(.metadata.name)/\(.metadata.attributes.version)"]' | ||
| ---- | ||
|
|
||
| . Configure the `CheCluster` Custom Resource. See xref:using-the-cli-to-configure-the-checluster-custom-resource.adoc[]. | ||
| + | ||
| [source,yaml] | ||
| ---- | ||
| spec: | ||
| components: | ||
| dashboard: | ||
| deployment: | ||
| containers: | ||
| - env: | ||
| - name: CHE_SHOW_DEPRECATED_EDITORS | ||
| value: 'true' | ||
| ---- | ||
|
|
||
| .Additional resources | ||
|
|
||
| * xref:using-chectl-to-configure-the-checluster-custom-resource-during-installation.adoc[] | ||
|
|
||
| * xref:using-the-cli-to-configure-the-checluster-custom-resource.adoc[] | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.