Skip to content

[CLI] gitops 'profile subcommand' is still using legacy profiles end-point #1907

@saeedfazal

Description

@saeedfazal

Release:

  • latest main

Priority

  • medium

Severity

  • medium

Describe the bug
gitops CLI is using legacy v1/profiles end point instead of v1/charts/list.

To Reproduce
Run the following command on a freshly created management cluster.
gitops --endpoint https://weave.gitops.enterprise.com:30080 --insecure-skip-tls-verify -u wego-admin -p wego-enterprise get profiles

Actual behaviour
The command is failing with the error:

erver error: {"code":2,"message":"failed to scan HelmRepository \"flux-system\"/\"weaveworks-charts\" for charts: failed to read profiles data for helm repo (flux-system/weaveworks-charts): open /tmp/helm-cache/flux-system/weaveworks-charts/profiles.yaml: no such file or directory","details":[]}
	Error: unable to retrieve profiles from "https://weave.gitops.enterprise.com:30080": response status for GET "https://weave.gitops.enterprise.com:30080/v1/profiles" was 500

Expected behaviour
The command should not fail and returns the available charts in repository 'weaveworks-charts'

Cloud provider:
N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions