Skip to content

Commit

Permalink
MAISTRA-2513 more federation API refinements (#21)
Browse files Browse the repository at this point in the history
* MAISTRA-2513 more federation API refinements

Signed-off-by: rcernich <[email protected]>

* update generated code

Signed-off-by: rcernich <[email protected]>
  • Loading branch information
rcernich authored Jul 15, 2021
1 parent 10e94eb commit bb7ae6b
Show file tree
Hide file tree
Showing 72 changed files with 3,028 additions and 2,576 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@ space := $(empty) $(empty)
kube_api_packages = $(subst $(space),$(empty), \
$(kube_base_output_package)/core/v1, \
$(kube_base_output_package)/core/v1alpha1, \
$(kube_base_output_package)/core/v2 \
$(kube_base_output_package)/core/v2, \
$(kube_base_output_package)/federation/v1 \
)
kube_base_output_package = maistra.io/api
kube_clientset_package = $(kube_base_output_package)/client
kube_listers_package = $(kube_base_output_package)/client/listers
kube_informers_package = $(kube_base_output_package)/client/informers
xns_informers_package = $(kube_base_output_package)/client/xnsinformer
path_apis = "./core/..."
path_apis = "./core/...;./federation/..."
header_file = "header.go.txt"
plural_exceptions = ServiceExports:ServiceExports,ServiceImports:ServiceImports
plural_exceptions = ExportedServices:ExportedServices,ImportedServices:ImportedServices

# protobuf
out_path = /tmp
Expand Down Expand Up @@ -64,7 +65,7 @@ generate-crd:

generate-docs:
rm -rf $(docs_path)
$(DOC_GEN) paths=maistra.io/api/core/... output:dir=$(docs_path) doc:format=adoc,depth=2
$(DOC_GEN) paths="maistra.io/api/core/...;maistra.io/api/federation/..." output:dir=$(docs_path) doc:format=adoc,depth=2

generate-copy:
$(CONTROLLER_GEN) object:headerFile=$(header_file) paths=$(path_apis)
Expand Down Expand Up @@ -100,6 +101,7 @@ generate-conversion:
clean:
rm -rf client manifests
find core -name zz_generated.deepcopy.go -delete -o -name conversion_generated.go -delete
find federation -name zz_generated.deepcopy.go -delete -o -name conversion_generated.go -delete

all: gen
gen: generate-copy generate-client generate-crd generate-conversion generate-proto generate-docs
Expand All @@ -112,4 +114,4 @@ check-clean-repo:
@if [[ -n $$(git status --porcelain) ]]; then echo -e "ERROR: Some files need to be updated, run 'make gen' and include any changed files in your PR. Output:\n"; git status; git diff; exit 1; fi

test:
go test -race $(path_apis)
go test -race ./core/... ./federation/...
21 changes: 0 additions & 21 deletions client/informers/externalversions/core/v1/interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions client/informers/externalversions/factory.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions client/informers/externalversions/federation/interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions client/informers/externalversions/federation/v1/interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bb7ae6b

Please sign in to comment.