feat: adding taints, labels and annotations to terraform provider and ui all implementing the SDK

This commit is contained in:
allanice001
2025-11-05 21:31:13 +00:00
parent c41af60b26
commit b09c3179c7
46 changed files with 1021 additions and 271 deletions

27
ui/src/api/annotations.ts Normal file
View File

@@ -0,0 +1,27 @@
import { withRefresh } from "@/api/with-refresh.ts"
import type { DtoCreateAnnotationRequest, DtoUpdateAnnotationRequest } from "@/sdk"
import { makeAnnotationsApi } from "@/sdkClient.ts"
const annotations = makeAnnotationsApi()
export const annotationsApi = {
listAnnotations: () =>
withRefresh(async () => {
return await annotations.listAnnotations()
}),
createAnnotation: (body: DtoCreateAnnotationRequest) =>
withRefresh(async () => {
return await annotations.createAnnotation({ body })
}),
getAnnotation: (id: string) =>
withRefresh(async () => {
return await annotations.getAnnotation({ id })
}),
deleteAnnotation: (id: string) =>
withRefresh(async () => {
await annotations.deleteAnnotation({ id })
}),
updateAnnotation: (id: string, body: DtoUpdateAnnotationRequest) =>
withRefresh(async () => {
return await annotations.updateAnnotation({ id, body })
}),
}

View File

@@ -1,4 +1,5 @@
import { withRefresh } from "@/api/with-refresh.ts"
import type { AdminListArcherJobsRequest } from "@/sdk"
import { makeArcherAdminApi } from "@/sdkClient.ts"
const archerAdmin = makeArcherAdminApi()
@@ -12,7 +13,7 @@ type ListParams = {
}
export const archerAdminApi = {
listJobs: (params: ListParams = {}) => {
listJobs: (params: AdminListArcherJobsRequest = {}) => {
return withRefresh(async () => {
return await archerAdmin.adminListArcherJobs(params)
})