Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ad5452d

Browse files
[Feature] Use Version Consts (#1946)
1 parent 9e906eb commit ad5452d

File tree

22 files changed

+93
-38
lines changed

22 files changed

+93
-38
lines changed

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- (Feature) Define OptionalReplace Upgrade Mode option
1818
- (Feature) OptionalReplace Upgrade Mode
1919
- (Feature) Update GoDriver
20+
- (Feature) Use Version Consts
2021

2122
## [1.2.50](https://github.com/arangodb/kube-arangodb/tree/1.2.50) (2025年07月04日)
2223
- (Feature) (Platform) MetaV1 Integration Service

‎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/analytics/v1alpha1/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 2024 ArangoDB GmbH, Cologne, Germany
4+
// Copyright 2024-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/analytics"
29+
"github.com/arangodb/kube-arangodb/pkg/util/constants"
2930
)
3031

3132
const (
32-
ArangoAnalyticsVersion = "v1alpha1"
33+
ArangoAnalyticsVersion = constants.VersionV1Alpha1
3334
)
3435

3536
var (

‎pkg/apis/apps/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/apps"
29+
"github.com/arangodb/kube-arangodb/pkg/util/constants"
2930
)
3031

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

3536
var (

‎pkg/apis/backup/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/backup"
29+
"github.com/arangodb/kube-arangodb/pkg/util/constants"
2930
)
3031

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

3536
var (

‎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 (

‎pkg/apis/ml/v1alpha1/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 2023 ArangoDB GmbH, Cologne, Germany
4+
// Copyright 2023-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/ml"
29+
"github.com/arangodb/kube-arangodb/pkg/util/constants"
2930
)
3031

3132
const (
32-
ArangoMLVersion = "v1alpha1"
33+
ArangoMLVersion = constants.VersionV1Alpha1
3334
)
3435

3536
var (

‎pkg/apis/ml/v1beta1/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 2024 ArangoDB GmbH, Cologne, Germany
4+
// Copyright 2024-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/ml"
29+
"github.com/arangodb/kube-arangodb/pkg/util/constants"
2930
)
3031

3132
const (
32-
ArangoMLVersion = "v1beta1"
33+
ArangoMLVersion = constants.VersionV1Beta1
3334
)
3435

3536
var (

‎pkg/apis/networking/v1alpha1/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 2023-2024 ArangoDB GmbH, Cologne, Germany
4+
// Copyright 2023-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/networking"
29+
"github.com/arangodb/kube-arangodb/pkg/util/constants"
2930
)
3031

3132
const (
32-
ArangoNetworkingVersion = "v1alpha1"
33+
ArangoNetworkingVersion = constants.VersionV1Alpha1
3334
)
3435

3536
var (

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /