Skip to content

Commit e9c55e3

Browse files
committed
Move ./exp/runtime/api => ./api/runtime
1 parent d678084 commit e9c55e3

Some content is hidden

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

45 files changed

+41
-42
lines changed

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ linters:
156156
- pkg: sigs.k8s.io/cluster-api/api/ipam/v1beta2
157157
alias: ipamv1
158158
# CAPI exp runtime
159-
- pkg: sigs.k8s.io/cluster-api/exp/runtime/api/v1alpha1
159+
- pkg: sigs.k8s.io/cluster-api/api/runtime/v1alpha1
160160
alias: runtimev1alpha1
161-
- pkg: sigs.k8s.io/cluster-api/exp/runtime/api/v1beta2
161+
- pkg: sigs.k8s.io/cluster-api/api/runtime/v1beta2
162162
alias: runtimev1
163163
- pkg: sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1
164164
alias: runtimehooksv1

Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ generate-manifests-core: $(CONTROLLER_GEN) $(KUSTOMIZE) ## Generate manifests e.
284284
paths=./ \
285285
paths=./api/... \
286286
paths=./api/ipam/... \
287+
paths=./api/runtime/... \
287288
paths=./internal/apis/core/... \
288289
paths=./internal/controllers/... \
289290
paths=./internal/webhooks/... \
@@ -292,7 +293,6 @@ generate-manifests-core: $(CONTROLLER_GEN) $(KUSTOMIZE) ## Generate manifests e.
292293
paths=./$(EXP_DIR)/internal/controllers/... \
293294
paths=./$(EXP_DIR)/internal/webhooks/... \
294295
paths=./$(EXP_DIR)/ipam/internal/webhooks/... \
295-
paths=./$(EXP_DIR)/runtime/api/... \
296296
paths=./$(EXP_DIR)/runtime/internal/controllers/... \
297297
crd:crdVersions=v1 \
298298
rbac:roleName=manager-role \
@@ -391,15 +391,15 @@ generate-go-deepcopy: ## Run all generate-go-deepcopy-* targets
391391

392392
.PHONY: generate-go-deepcopy-core
393393
generate-go-deepcopy-core: $(CONTROLLER_GEN) ## Generate deepcopy go code for core
394-
$(MAKE) clean-generated-deepcopy SRC_DIRS="./api,./api/ipam,./internal/apis/addons,./internal/apis/core,./$(EXP_DIR)/api,./$(EXP_DIR)/runtime/api,./$(EXP_DIR)/runtime/hooks/api"
394+
$(MAKE) clean-generated-deepcopy SRC_DIRS="./api,./api/ipam,./api/runtime,./internal/apis/addons,./internal/apis/core,./$(EXP_DIR)/api,./$(EXP_DIR)/runtime/hooks/api"
395395
$(CONTROLLER_GEN) \
396396
object:headerFile=./hack/boilerplate/boilerplate.generatego.txt \
397397
paths=./api/... \
398398
paths=./api/ipam/... \
399+
paths=./api/runtime/... \
399400
paths=./internal/apis/addons/... \
400401
paths=./internal/apis/core/... \
401402
paths=./$(EXP_DIR)/api/... \
402-
paths=./$(EXP_DIR)/runtime/api/... \
403403
paths=./$(EXP_DIR)/runtime/hooks/api/... \
404404
paths=./internal/runtime/test/... \
405405
paths=./cmd/clusterctl/... \
@@ -499,12 +499,11 @@ generate-go-conversions-core-runtime: $(CONVERSION_GEN) ## Generate conversions
499499
--go-header-file=./hack/boilerplate/boilerplate.generatego.txt \
500500
./internal/runtime/test/v1alpha1 \
501501
./internal/runtime/test/v1alpha2
502-
$(MAKE) clean-generated-conversions SRC_DIRS="./$(EXP_DIR)/runtime/api/v1alpha1,./$(EXP_DIR)/runtime/api/v1beta2"
502+
$(MAKE) clean-generated-conversions SRC_DIRS="./api/runtime/v1alpha1"
503503
$(CONVERSION_GEN) \
504504
--output-file=zz_generated.conversion.go \
505505
--go-header-file=./hack/boilerplate/boilerplate.generatego.txt \
506-
./$(EXP_DIR)/runtime/api/v1alpha1 \
507-
./$(EXP_DIR)/runtime/api/v1beta2
506+
./api/runtime/v1alpha1
508507

509508
.PHONY: generate-go-conversions-kubeadm-bootstrap
510509
generate-go-conversions-kubeadm-bootstrap: $(CONVERSION_GEN) ## Generate conversions go code for kubeadm bootstrap

exp/runtime/api/v1alpha1/conversion.go renamed to api/runtime/v1alpha1/conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
apimachineryconversion "k8s.io/apimachinery/pkg/conversion"
2222
"sigs.k8s.io/controller-runtime/pkg/conversion"
2323

24+
runtimev1 "sigs.k8s.io/cluster-api/api/runtime/v1beta2"
2425
clusterv1beta1 "sigs.k8s.io/cluster-api/api/v1beta1"
25-
runtimev1 "sigs.k8s.io/cluster-api/exp/runtime/api/v1beta2"
2626
)
2727

2828
func (src *ExtensionConfig) ConvertTo(dstRaw conversion.Hub) error {

exp/runtime/api/v1alpha1/conversion_test.go renamed to api/runtime/v1alpha1/conversion_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"k8s.io/apimachinery/pkg/api/apitesting/fuzzer"
2727
runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
2828

29-
runtimev1 "sigs.k8s.io/cluster-api/exp/runtime/api/v1beta2"
29+
runtimev1 "sigs.k8s.io/cluster-api/api/runtime/v1beta2"
3030
utilconversion "sigs.k8s.io/cluster-api/util/conversion"
3131
)
3232

exp/runtime/api/v1alpha1/doc.go renamed to api/runtime/v1alpha1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
*/
1616

1717
// Package v1alpha1 contains the v1alpha1 implementation of ExtensionConfig.
18-
// +k8s:conversion-gen=sigs.k8s.io/cluster-api/exp/runtime/api/v1beta2
18+
// +k8s:conversion-gen=sigs.k8s.io/cluster-api/api/runtime/v1beta2
1919
//
2020
// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.
2121
package v1alpha1

exp/runtime/api/v1alpha1/zz_generated.conversion.go renamed to api/runtime/v1alpha1/zz_generated.conversion.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)