Repository navigation
Call AKP through the AKP v2 API in chart functions - #1220
Merged
Merged
Conversation
tamalsaha
force-pushed
the
akp-v2-iam
branch
from
November 24, 2026 09:18
4da17ee to
28fb215
Compare
Read Kubernetes objects through akp.resources and the database bundle through akp.cluster.v2.ClusterService instead of the AKP v1 API. Signed-off-by: Tamal Saha <tamal@appscode.com>
Read objects and database configurations through akp.resources, create config secrets with akp.resources.create and read NotFound and error messages from ConnectError. Signed-off-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Tamal Saha <tamal@appscode.com>
Read chart values through akp.editor.v2.PackageService.GetPackageValues. Signed-off-by: Tamal Saha <tamal@appscode.com>
Read and write Kubernetes objects with akp.resources, database configurations with getDatabaseConfiguration, and the database bundle with ClusterService.GetDatabaseBundle instead of the AKP v1 API. Signed-off-by: Tamal Saha <tamal@appscode.com>
Read and create Kubernetes objects with akp.resources and database configurations with getDatabaseConfiguration; errors are ConnectErrors. Signed-off-by: Tamal Saha <tamal@appscode.com>
… v2 API Signed-off-by: Tamal Saha <tamal@appscode.com>
Chart values through PackageService.GetPackageValues, database feature gates through ClusterService, hubs through HubService, monitoring clusters and stack values through TelemetryService. Signed-off-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Tamal Saha <tamal@appscode.com>
…v2 API Signed-off-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Tamal Saha <tamal@appscode.com>
… the AKP v2 API Signed-off-by: Tamal Saha <tamal@appscode.com>
…tors to form-builder and the AKP v2 API Signed-off-by: Tamal Saha <tamal@appscode.com>
… v2 API Signed-off-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Tamal Saha <tamal@appscode.com>
form-builder cannot load a chart as a sub-form, and no app registers the older renderer that could, so these charts are never rendered. Signed-off-by: Tamal Saha <tamal@appscode.com>
…P v2 API Signed-off-by: Tamal Saha <tamal@appscode.com>
…AKP v2 API Signed-off-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Tamal Saha <tamal@appscode.com>
They use the older renderer format, which no app loads, and name the removed uibytebuildersdev-component charts. Signed-off-by: Tamal Saha <tamal@appscode.com>
… API The BackupStorage selection added on master (#1208) reads BackupStorages, the namespace, the default Archiver and the Kubestash repository and snapshot through axios and the v1 cluster proxy. Those charts now get their client from form-builder, which does not hand them axios, so the calls fail. Read them through akp.resources, the same way the rest of the chart functions do. The telemetry stack options chart gets the same treatment for its storage classes. Signed-off-by: Tamal Saha <tamal@appscode.com>
The recovery namespace and database pickers added on master (#1219) still used the v1 cluster proxy through axios. Namespaces and KubeStash repositories now come from akp.resources. Signed-off-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
ArnobKumarSaha
force-pushed
the
akp-v2-iam
branch
from
November 24, 2026 11:33
28fb215 to
f9c1f82
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Supersedes #1209 (closed: one AKP v2 PR per repo). All 21 commits of #1209 are here, rebased onto current master, plus two more (below).
Moves chart
functions.jsfrom AKP v1 API calls (axios) to the AKP v2 API, using theakpclient that form-builder hands touseFunc(form-builder#423).useFunccharts take(model, { akp } = {}): database and ops request editors, their options charts, KubeStash, KubeVault, feature sets and the cluster chart preset.uibytebuildersdev-component-*charts are removed, as are the old-formatcreate-ui.yamlfiles of 20kubedbcom-*-editorcharts.akp.resources; other calls use typed services (ClusterService.getDatabaseBundle,listAvailableTypes,PackageService.getPackageValues, hub info, telemetry).'404'checks reade.code === akp.Code.NotFound, messages come frome.rawMessage.Changes from #1209 made for the rebase:
The 23
uibytebuildersdev-component-*Chart.yamlfiles were version-bumped on master and deleted here. The deletion wins.Last commit: the BackupStorage selection from Allow selecting BackupStorage for backup and archiver #1208 (BackupStorages, namespace, default Archiver, Kubestash repository and snapshot, in 16 options charts) and the telemetry stack storage classes still used axios and the v1
/clusters/{owner}/{cluster}/proxy/...route, andaxiosis not available touseFunc. They now useakp.resources.Rebased onto master 1bdccce (update point-in-time-recovery fields #1219, point-in-time recovery fields). It added a namespace and database picker to seven
kubedbcom-*-editor-optionscharts (clickhouse, documentdb, mariadb, mongodb, mssqlserver, mysql, postgres). The conflicts were insetPointInTimeRecovery: master pieces kept (refDBNameError, empty-window check, clickhouse/mongodb repository name without-full), reads throughakp.resources, errors frome.rawMessage.New last commit:
getNamespaces(clickhouse) andgetRefDbNames(all seven) from update point-in-time-recovery fields #1219 used axios and the v1 proxy; they now useakp.resources.create/list.Trial merges (scratch branch, not pushed): #1218 (patch-console-agent, trivy-operator, kube-bench) is clean. #1221 (RotateAuth) has one conflict in
opskubedbcom-proxysqlopsrequest-editor/ui/functions.js(thewindow.vueHelpersdestructuring line), and its newaxios.get/axios.postcalls on/clusters/{owner}/{cluster}/proxy/...and/clusters/{owner}/{cluster}/resourcesin the ops request editors need to move toakp.resourceswhen it is rebased on this PR.Remaining plain HTTP:
fetchJsonsreads of${packageviewUrlPrefix}/...still use theaxiosform-builder passes in.Checks:
make ci(license check, golangci-lint, build, Go unit tests) passes on this branch and on master; all 137functions.jsfiles parse withnode --check; no/api/v1/...or/clusters/{owner}/{cluster}/...calls remain in anyfunctions.js.make capi-testsfails the same way on master and here with stock helm (values.openapiv3_schema.yamlover the 5 MiB chart file limit; CI uses the x-helm fork). Nothing was rendered in form-builder.Merge order: appscode-cloud/form-builder#423 first, then this PR. Both need appscode-cloud/b3#1497 (AKP v2 API) deployed.