operator-registry icon indicating copy to clipboard operation
operator-registry copied to clipboard

Can `configmap-server` support v1 crd?

Open AllenZMC opened this issue 2 years ago • 2 comments

Can configmap-server continue to be used in the next few versions?

I see that crd only supports v1beta1, can it support v1?

func (c *ConfigMapLoader) Populate() error {
	c.log.Info("loading CRDs")

	// first load CRDs into memory; these will be added to the bundle that owns them
	crdListYaml, ok := c.configMapData[ConfigMapCRDName]
	if !ok {
		return fmt.Errorf("couldn't find expected key %s in configmap", ConfigMapCRDName)
	}

	crdListJson, err := yaml.YAMLToJSON([]byte(crdListYaml))
	if err != nil {
		c.log.WithError(err).Debug("error loading CRD list")
		return err
	}

      
	var parsedCRDList []v1beta1.CustomResourceDefinition
	if err := json.Unmarshal(crdListJson, &parsedCRDList); err != nil {
		c.log.WithError(err).Debug("error parsing CRD list")
		return err
	}

AllenZMC avatar Jun 08 '23 14:06 AllenZMC

@awgreene

@everettraven

AllenZMC avatar Jun 09 '23 07:06 AllenZMC

Hi @AllenZMC . Since SQLite-format catalogs are being deprecated configmap-server is a deprecated command, but we haven't done a good job of communicating that. I've created #1112 to track doing a better job of communicating status for this command. We would be happy to review PRs on the content, but do not have any plans to implement new features for deprecated commands.

grokspawn avatar Jun 15 '23 14:06 grokspawn

Issues go stale after 90 days of inactivity. If there is no further activity, the issue will be closed in another 30 days.

github-actions[bot] avatar May 30 '25 01:05 github-actions[bot]

This issue has been closed due to inactivity.

github-actions[bot] avatar Jul 02 '25 01:07 github-actions[bot]