Skip to content

Commit

Permalink
Move API definitions to separate package (#600)
Browse files Browse the repository at this point in the history
* remove API from repo

* Use API from external repo

* use API paths from apiv1 package

* formalize client package

- return full responses, not objects
- use a helper query method for all API requests, to have common error handling

* no nil responses over the wire

* api package is removed

* fix k8s config kubeconfig generation

* use utils for microcluster init configs

* single block for non stdlib imports

* adjust use of NodeStatus in cli

* Use k8s-snap-api v1.0.0

* use api v1.0.2

* go mod tidy
  • Loading branch information
neoaggelos authored Aug 16, 2024
1 parent 9ad780e commit acafffb
Show file tree
Hide file tree
Showing 81 changed files with 409 additions and 1,273 deletions.
2 changes: 1 addition & 1 deletion src/k8s/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ go.vet:
$(DQLITE_BUILD_SCRIPTS_DIR)/static-go-vet.sh ./...

go.unit:
$(DQLITE_BUILD_SCRIPTS_DIR)/static-go-test.sh -v ./pkg/... ./cmd/... ./api/... -coverprofile=coverage.txt --cover
$(DQLITE_BUILD_SCRIPTS_DIR)/static-go-test.sh -v ./pkg/... ./cmd/... -coverprofile=coverage.txt --cover

go.doc: bin/static/k8s
bin/static/k8s generate-docs --output-dir ../../docs/src/_parts/commands/
Expand Down
8 changes: 0 additions & 8 deletions src/k8s/api/v1/annotations.go

This file was deleted.

136 changes: 0 additions & 136 deletions src/k8s/api/v1/bootstrap_config.go

This file was deleted.

67 changes: 0 additions & 67 deletions src/k8s/api/v1/bootstrap_config_test.go

This file was deleted.

6 changes: 0 additions & 6 deletions src/k8s/api/v1/capi_config.go

This file was deleted.

15 changes: 0 additions & 15 deletions src/k8s/api/v1/certificates_refresh.go

This file was deleted.

29 changes: 0 additions & 29 deletions src/k8s/api/v1/cluster.go

This file was deleted.

Loading

0 comments on commit acafffb

Please sign in to comment.