Open foot opened 1 year ago
Lets follow https://protobuf.dev/programming-guides/style/
Review all the places the UI is calling the static Service object and make sure we are typing it properly and not using any
.
Review all the places the UI is calling the static Service object and make sure we are typing it properly and not using any.
Templates, which was the main concern, seems to be all typed now which is great!
Explorer is also typed, think we are all good with this one.
Oops, chatting w/ @sarataha , we realised clusters are namespaced... so this URL doesn't have enough info in it:
/api/v1/clusters/{clusterName}/namespaces/{namespace}/helm_releases/{name}
Options:
/api/v1/namespaces/{clusterNamespace}/clusters/{clusterName}/namespaces/{namespace}/helm_releases/{name}
/api/v1/clusters/{clusterNamespace}/{clusterName}/namespaces/{namespace}/helm_releases/{name}
/api/v1/clusters/{clusterNameThatIncludeNamespace}/namespaces/{namespace}/helm_releases/{name}
/api/v1/helmreleases
# all helmrelease on all the clusters, can be filtered/api/v1/helmreleases/clusters/{clusterName}/namespaces/{namespace}/{helmReleaseName}
/api/v1/helmreleases/clusters/{clusterName}
/api/v1/helmreleases/namespace/{namespace}
clusterNameThatIncludeNamespace is usually default%3dmy-cluster
Flux: https://127.0.0.1:6443/apis/helm.toolkit.fluxcd.io/v2beta1/namespaces/default/helmreleases?limit=500
Motivation: customers want to use our APIs! Lets tidy them up before giving users access
GET /api/v1/helm-releases
, that returns all helm-releases on all cluster on all namespace that the user can see./v1/namespaces/{clusterNamespace}/clusters/{clusternname}/namespace/{resNamespace}/helm-releases/{resName}
POST /v1/templates/pull-request
/helm-releases/
not/helm_releases/
(this is an OSS resource)Tasks here: