Skip to content

Commit 811dc95

Browse files
committed
chore: Remove V2 code from Training Operator 1.9 release branch
Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com>
1 parent 800bd77 commit 811dc95

File tree

216 files changed

+5
-46173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+5
-46173
lines changed

.github/workflows/template-publish-image/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ inputs:
2222
tag-prefix:
2323
required: false
2424
default: v1
25-
description: Prefix for the image tag, e.g. v1 or v2alpha1
25+
description: Prefix for the image tag, e.g. v1
2626

2727
runs:
2828
using: composite

.github/workflows/unittests.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,3 @@ jobs:
3434
- name: Run Go test for v1
3535
run: |
3636
make test ENVTEST_K8S_VERSION=${{ matrix.kubernetes-version }}
37-
38-
- name: Run Go test for v2
39-
run: |
40-
make testv2
41-
make test-integrationv2 ENVTEST_K8S_VERSION=${{ matrix.kubernetes-version }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ examples/.ipynb_checkpoints/
4242

4343
# openapi-codegen tools and auto generated files but useless
4444
hack/python-sdk/openapi-generator-cli.jar
45-
hack/python-sdk-v2/openapi-generator-cli.jar
4645

4746
# Coverage
4847
cover.out

.pre-commit-config.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,4 @@ exclude: |
3636
sdk/python/docs/.*|
3737
sdk/python/.openapi-generator/VERSION|
3838
sdk/python/kubeflow/__init__.py|
39-
sdk_v2/kubeflow/training/[^/]*.py|
40-
sdk_v2/kubeflow/training/models/.*|
41-
sdk_v2/docs/.*
4239
)$

Makefile

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,11 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
4141
output:crd:artifacts:config=manifests/base/crds \
4242
output:rbac:artifacts:config=manifests/base/rbac \
4343
output:webhook:artifacts:config=manifests/base/webhook
44-
$(CONTROLLER_GEN) "crd:generateEmbeddedObjectMeta=true" rbac:roleName=training-operator-v2 webhook \
45-
paths="./pkg/apis/kubeflow.org/v2alpha1/...;./pkg/controller.v2/...;./pkg/runtime.v2/...;./pkg/webhook.v2/...;./pkg/cert/..." \
46-
output:crd:artifacts:config=manifests/v2/base/crds \
47-
output:rbac:artifacts:config=manifests/v2/base/rbac \
48-
output:webhook:artifacts:config=manifests/v2/base/webhook
4944

5045
generate: go-mod-download manifests ## Generate apidoc, sdk and code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
5146
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate/boilerplate.go.txt" paths="./pkg/apis/..."
5247
hack/update-codegen.sh
5348
hack/python-sdk/gen-sdk.sh
54-
hack/python-sdk-v2/gen-sdk.sh
5549
$(MAKE) apidoc
5650

5751
apidoc:
@@ -80,14 +74,6 @@ test: envtest
8074
KUBEBUILDER_ASSETS="$(shell setup-envtest use $(ENVTEST_K8S_VERSION) -p path)" \
8175
go test ./pkg/apis/kubeflow.org/v1/... ./pkg/cert/... ./pkg/common/... ./pkg/config/... ./pkg/controller.v1/... ./pkg/core/... ./pkg/util/... ./pkg/webhooks/... -coverprofile cover.out
8276

83-
.PHONY: test-integrationv2
84-
test-integrationv2: envtest jobset-operator-crd scheduler-plugins-crd
85-
KUBEBUILDER_ASSETS="$(shell setup-envtest use $(ENVTEST_K8S_VERSION) -p path)" go test ./test/... -coverprofile cover.out
86-
87-
.PHONY: testv2
88-
testv2:
89-
go test ./pkg/apis/kubeflow.org/v2alpha1/... ./pkg/controller.v2/... ./pkg/runtime.v2/... ./pkg/webhook.v2/... ./pkg/util.v2/... -coverprofile cover.out
90-
9177
envtest:
9278
ifndef HAS_SETUP_ENVTEST
9379
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@release-0.19

api.v2/openapi-spec/README.md

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

0 commit comments

Comments
 (0)