Skip to content

Commit b559be5

Browse files
astefanuttiopenshift-merge-robot
authored andcommitted
Remove client package
1 parent b96c4bd commit b559be5

File tree

36 files changed

+12
-3270
lines changed

36 files changed

+12
-3270
lines changed

.github/workflows/verify_generated_files.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@ jobs:
2626
- name: Verify that the DeepCopy, DeepCopyInto, and DeepCopyObject method implementations have been generated
2727
run: make generate && git diff --exit-code
2828

29-
verify-generate-client:
30-
runs-on: ubuntu-latest
31-
steps:
32-
- uses: actions/checkout@v3
33-
- name: Set Go
34-
uses: actions/setup-go@v3
35-
with:
36-
go-version: v1.19
37-
- name: Verify that the latest client has been generated
38-
run: make generate-client && git diff --exit-code
39-
4029
verify-imports:
4130
runs-on: ubuntu-latest
4231
steps:

Makefile

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -158,42 +158,6 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
158158
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
159159
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./api/..."
160160

161-
.PHONY: generate-client ## Generate client packages and organize the goimports
162-
generate-client: generate-client-files imports
163-
164-
.PHONY: generate-client-files
165-
generate-client-files: code-generator
166-
rm -rf client
167-
$(APPLYCONFIGURATION_GEN) \
168-
--input-dirs="github.com/project-codeflare/codeflare-operator/api/codeflare/v1alpha1" \
169-
--go-header-file="hack/boilerplate.go.txt" \
170-
--output-package="github.com/project-codeflare/codeflare-operator/client/applyconfiguration" \
171-
--output-base="." \
172-
--trim-path-prefix "github.com/project-codeflare/codeflare-operator"
173-
$(CLIENT_GEN) \
174-
--input="codeflare/v1alpha1" \
175-
--input-base="github.com/project-codeflare/codeflare-operator/api" \
176-
--apply-configuration-package="github.com/project-codeflare/codeflare-operator/client/applyconfiguration" \
177-
--go-header-file="hack/boilerplate.go.txt" \
178-
--clientset-name "versioned" \
179-
--output-package="github.com/project-codeflare/codeflare-operator/client/clientset" \
180-
--output-base="." \
181-
--trim-path-prefix "github.com/project-codeflare/codeflare-operator"
182-
$(LISTER_GEN) \
183-
--input-dirs="github.com/project-codeflare/codeflare-operator/api/codeflare/v1alpha1" \
184-
--go-header-file="hack/boilerplate.go.txt" \
185-
--output-base="." \
186-
--output-package="github.com/project-codeflare/codeflare-operator/client/listers" \
187-
--trim-path-prefix "github.com/project-codeflare/codeflare-operator"
188-
$(INFORMER_GEN) \
189-
--input-dirs="github.com/project-codeflare/codeflare-operator/api/codeflare/v1alpha1" \
190-
--versioned-clientset-package="github.com/project-codeflare/codeflare-operator/client/clientset/versioned" \
191-
--listers-package="github.com/project-codeflare/codeflare-operator/client/listers" \
192-
--go-header-file="hack/boilerplate.go.txt" \
193-
--output-base="." \
194-
--output-package="github.com/project-codeflare/codeflare-operator/client/informer" \
195-
--trim-path-prefix "github.com/project-codeflare/codeflare-operator"
196-
197161
.PHONY: fmt
198162
fmt: ## Run go fmt against code.
199163
go fmt ./...
@@ -266,10 +230,6 @@ $(LOCALBIN):
266230

267231
## Tool Binaries
268232
KUSTOMIZE ?= $(LOCALBIN)/kustomize
269-
APPLYCONFIGURATION_GEN ?= $(LOCALBIN)/applyconfiguration-gen
270-
CLIENT_GEN ?= $(LOCALBIN)/client-gen
271-
LISTER_GEN ?= $(LOCALBIN)/lister-gen
272-
INFORMER_GEN ?= $(LOCALBIN)/informer-gen
273233
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
274234
ENVTEST ?= $(LOCALBIN)/setup-envtest
275235
OPENSHIFT-GOIMPORTS ?= $(LOCALBIN)/openshift-goimports
@@ -300,29 +260,6 @@ $(GH_CLI): $(LOCALBIN)
300260
rm -rf $(GH_CLI_DL_FILENAME)
301261
rm $(GH_CLI_DL_FILENAME).tar.gz
302262

303-
.PHONY: code-generator
304-
code-generator: $(APPLYCONFIGURATION_GEN) $(CLIENT_GEN) $(LISTER_GEN) $(INFORMER_GEN)
305-
306-
.PHONY: applyconfiguration-gen
307-
applyconfiguration-gen: $(APPLYCONFIGURATION_GEN)
308-
$(APPLYCONFIGURATION_GEN): $(LOCALBIN)
309-
test -s $(LOCALBIN)/applyconfiguration-gen || GOBIN=$(LOCALBIN) go install k8s.io/code-generator/cmd/applyconfiguration-gen@$(CODEGEN_VERSION)
310-
311-
.PHONY: client-gen
312-
client-gen: $(CLIENT_GEN)
313-
$(CLIENT_GEN): $(LOCALBIN)
314-
test -s $(LOCALBIN)/client-gen || GOBIN=$(LOCALBIN) go install k8s.io/code-generator/cmd/client-gen@$(CODEGEN_VERSION)
315-
316-
.PHONY: lister-gen
317-
lister-gen: $(LISTER_GEN)
318-
$(LISTER_GEN): $(LOCALBIN)
319-
test -s $(LOCALBIN)/lister-gen || GOBIN=$(LOCALBIN) go install k8s.io/code-generator/cmd/lister-gen@$(CODEGEN_VERSION)
320-
321-
.PHONY: informer-gen
322-
informer-gen: $(INFORMER_GEN)
323-
$(INFORMER_GEN): $(LOCALBIN)
324-
test -s $(LOCALBIN)/informer-gen || GOBIN=$(LOCALBIN) go install k8s.io/code-generator/cmd/informer-gen@$(CODEGEN_VERSION)
325-
326263
.PHONY: controller-gen
327264
controller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessary.
328265
$(CONTROLLER_GEN): $(LOCALBIN)

client/applyconfiguration/codeflare/v1alpha1/instascale.go

Lines changed: 0 additions & 219 deletions
This file was deleted.

0 commit comments

Comments
 (0)