Skip to content

Commit 13278e7

Browse files
committed
Iter
1 parent 84cbb52 commit 13278e7

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ synchronize-v2alpha1-with-v1:
10171017
@echo ">> Please use only COMMUNITY mode! Current RELEASE_MODE=$(RELEASE_MODE)"
10181018
@rm -f pkg/apis/deployment/v1/zz_generated.deepcopy.go pkg/apis/deployment/v2alpha1/zz_generated.deepcopy.go
10191019
@for file in $$(find "$(ROOT)/pkg/apis/deployment/v1/" -type f -exec $(REALPATH) --relative-to "$(ROOT)/pkg/apis/deployment/v1/" {} \;); do if [ ! -d "$(ROOT)/pkg/apis/deployment/v2alpha1/$$(dirname $${file})" ]; then mkdir -p "$(ROOT)/pkg/apis/deployment/v2alpha1/$$(dirname $${file})"; fi; done
1020-
@for file in $$(find "$(ROOT)/pkg/apis/deployment/v1/" -type f -exec $(REALPATH) --relative-to "$(ROOT)/pkg/apis/deployment/v1/" {} \;); do cat "$(ROOT)/pkg/apis/deployment/v1/$${file}" | $(SED) "s#package v1#package v2alpha1#g" | $(SED) 's#ArangoDeploymentVersion = "v1"#ArangoDeploymentVersion = "v2alpha1"#g' > "$(ROOT)/pkg/apis/deployment/v2alpha1/$${file}"; done
1020+
@for file in $$(find "$(ROOT)/pkg/apis/deployment/v1/" -type f -exec $(REALPATH) --relative-to "$(ROOT)/pkg/apis/deployment/v1/" {} \;); do cat "$(ROOT)/pkg/apis/deployment/v1/$${file}" | $(SED) "s#package v1#package v2alpha1#g" | $(SED) 's#ArangoDeploymentVersion = constants.VersionV1#ArangoDeploymentVersion = constants.VersionV2Alpha1#g' > "$(ROOT)/pkg/apis/deployment/v2alpha1/$${file}"; done
10211021
@make update-generated
10221022
@make set-deployment-api-version-v2alpha1 bin
10231023
@make set-deployment-api-version-v1 bin

pkg/apis/deployment/v1/register.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// DISCLAIMER
33
//
4-
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
4+
// Copyright 2016-2025 ArangoDB GmbH, Cologne, Germany
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.
@@ -26,10 +26,11 @@ import (
2626
"k8s.io/apimachinery/pkg/runtime/schema"
2727

2828
"github.com/arangodb/kube-arangodb/pkg/apis/deployment"
29+
"github.com/arangodb/kube-arangodb/pkg/util/constants"
2930
)
3031

3132
const (
32-
ArangoDeploymentVersion = "v1"
33+
ArangoDeploymentVersion = constants.VersionV1
3334
)
3435

3536
var (

pkg/apis/deployment/v2alpha1/register.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// DISCLAIMER
33
//
4-
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
4+
// Copyright 2016-2025 ArangoDB GmbH, Cologne, Germany
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.
@@ -26,10 +26,11 @@ import (
2626
"k8s.io/apimachinery/pkg/runtime/schema"
2727

2828
"github.com/arangodb/kube-arangodb/pkg/apis/deployment"
29+
"github.com/arangodb/kube-arangodb/pkg/util/constants"
2930
)
3031

3132
const (
32-
ArangoDeploymentVersion = "v2alpha1"
33+
ArangoDeploymentVersion = constants.VersionV2Alpha1
3334
)
3435

3536
var (

0 commit comments

Comments
 (0)