Skip to content
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

Add new fields in CheCluster CR to configure VS Code marketplace #21598

Closed
Tracked by #20549
benoitf opened this issue Jul 29, 2022 · 10 comments
Closed
Tracked by #20549

Add new fields in CheCluster CR to configure VS Code marketplace #21598

benoitf opened this issue Jul 29, 2022 · 10 comments
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/enhancement A feature request - must adhere to the feature request template. severity/P2 Has a minor but important impact to the usage or development of the system.
Milestone

Comments

@benoitf
Copy link
Contributor

benoitf commented Jul 29, 2022

Is your enhancement related to a problem? Please describe

Currently che is using https://open-vsx.org but as for Airgapped mode, offline, etc we have a way to use OpenVSX instance embedded in the plug-in registry.

Then Admin should be able to configure the registry to use

so , che-code is able to get the value and see if it configures the registry to open-vsx.org or a corporate OpenVSX or something else

Part of #20549

Describe the solution you'd like

spec:
   components:
     devWorkspace
     cheServer
     pluginRegistry:
       deployment
       disableInternalRegistry
       externalPluginRegistries
+      OpenVSXURL: https://openvsx.org # If not set use the embedded one
     devfileRegistry
     database
     dashboard
     imagePuller
     metrics
   containerRegistry
   gitServices
   devEnvironments
   networking

Describe alternatives you've considered

any change/suggestion is welcomed

we only need to know when cheCode is booting the URL to use to fetch the VSIX files :-)

Additional context

No response

@benoitf benoitf added kind/enhancement A feature request - must adhere to the feature request template. area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator labels Jul 29, 2022
@benoitf
Copy link
Contributor Author

benoitf commented Jul 29, 2022

cc @l0rd you can specify the CR fields that you would like

@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jul 29, 2022
@Kasturi1820 Kasturi1820 added severity/P2 Has a minor but important impact to the usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jul 29, 2022
@benoitf benoitf changed the title Add new fiels in CheCluster CR to configure VS Code marketplace Add new fields in CheCluster CR to configure VS Code marketplace Jul 29, 2022
@l0rd
Copy link
Contributor

l0rd commented Jul 31, 2022

spec:
   components:
     devWorkspace
     cheServer
     pluginRegistry:
       deployment
       disableInternalRegistry
       externalPluginRegistries
+      externalOpenVSXRegistryURL: https://openvsx.org # If not set use the embedded one
     devfileRegistry
     database
     dashboard
     imagePuller
     metrics
   containerRegistry
   gitServices
   devEnvironments
   networking

@tolusha
Copy link
Contributor

tolusha commented Aug 1, 2022

Do we need to put https://openvsx.org as a default value in externalOpenVSXRegistryURL field?
Or maybe left as empty?

@benoitf
Copy link
Contributor Author

benoitf commented Aug 1, 2022

from what I understand, it should be empty by default (then it'll use the one from plugin registry)

@l0rd
Copy link
Contributor

l0rd commented Aug 1, 2022

Yes, if the field is missing or left empty we should use the openvsx embedded in the plug-in registry.

That's how most of our customers will use it anyway. On developer sandbox though I would explicitly configure Dev Spaces to use openvsx.org.

@tolusha
Copy link
Contributor

tolusha commented Aug 1, 2022

I suggest to use list of urls in configuring open VSC registries.
Does it make sense?

	// External open VSC registries.
	// +optional
	ExternalOpenVSXRegistries []ExternalOpenVSXRegistry `json:"externalOpenVSXRegistries,omitempty"`

type ExternalOpenVSXRegistry struct {
	Url string `json:"url,omitempty"`
}

@l0rd
Copy link
Contributor

l0rd commented Aug 1, 2022

Something that becomes critical is providing to customers an easy way to customize and update the embedded openvsx registry:

How do I add or remove a vsx?
How do I update the embedded vsxs to the latest version?

@benoitf
Copy link
Contributor Author

benoitf commented Aug 1, 2022

@tolusha about the list, VS Code is only working with one registry for now (and since the beginning) so I'm not sure a list will work there (or it will always be a list of zero or one)

@l0rd
Copy link
Contributor

l0rd commented Aug 2, 2022

After discussing with @benoitf we concluded that the simpler is to just have:

spec:
   components:
     devWorkspace
     cheServer
     pluginRegistry:
       deployment
       disableInternalRegistry
       externalPluginRegistries
+      openVSXRegistryURL: https://openvsx.org/ # If not set or empty use the URL of the one embedded with the plugin reg
     devfileRegistry
     database
     dashboard
     imagePuller
     metrics
   containerRegistry
   gitServices
   devEnvironments
   networking

@tolusha
Copy link
Contributor

tolusha commented Aug 2, 2022

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/enhancement A feature request - must adhere to the feature request template. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

5 participants