Skip to content

fix: remove createworkloadcatalog endpoint#993

Open
dennisvankekem wants to merge 1 commit into
mainfrom
APL-1774
Open

fix: remove createworkloadcatalog endpoint#993
dennisvankekem wants to merge 1 commit into
mainfrom
APL-1774

Conversation

@dennisvankekem
Copy link
Copy Markdown
Contributor

@dennisvankekem dennisvankekem commented May 12, 2026

Comment thread src/openapi/api.yaml
schema:
type: object

'/v1/helmChartContent':
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This endpoint (and the related code) appears to be no longer needed and should be removed.

Comment thread src/otomi-stack.ts
const { cluster } = await this.getSettings(['cluster'])

try {
await sparseCloneChart(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sparseCloneChart() function is no longer used in production code and is only referenced in workloadUtils.test.ts. It should be removed from both files.

The updateChartIconInYaml() and updateRbacForNewChart() functions, along with the chartRepo class, are only used by sparseCloneChart(). They and their related test code should be removed.

Comment thread src/otomi-stack.ts
return await fetchChartYaml(url)
}

async createWorkloadCatalog(body: NewHelmChartValues): Promise<boolean> {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The NewHelmChartValues interface is no longer used and should be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants