mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
[Bugfix] Fix V2Alpha1 Generator (#1169)
This commit is contained in:
parent
203ee10a5b
commit
6149a3ed13
2 changed files with 17 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
|||
- (Bugfix) Fix PDBs Version discovery
|
||||
- (Feature) Agency ArangoSync State check
|
||||
- (Improvement) Parametrize Make tools
|
||||
- (Bugfix) Fix V2Alpha1 Generator
|
||||
|
||||
## [1.2.20](https://github.com/arangodb/kube-arangodb/tree/1.2.20) (2022-10-25)
|
||||
- (Feature) Add action progress
|
||||
|
|
18
Makefile
18
Makefile
|
@ -516,10 +516,24 @@ vendor:
|
|||
@go mod vendor -e
|
||||
|
||||
set-deployment-api-version-v2alpha1: export API_VERSION=2alpha1
|
||||
set-deployment-api-version-v2alpha1: set-api-version/deployment set-api-version/replication
|
||||
set-deployment-api-version-v2alpha1: set-api-version/deployment set-typed-api-version/deployment set-api-version/replication
|
||||
|
||||
set-deployment-api-version-v1: export API_VERSION=1
|
||||
set-deployment-api-version-v1: set-api-version/deployment set-api-version/replication
|
||||
set-deployment-api-version-v1: set-api-version/deployment set-typed-api-version/deployment set-api-version/replication
|
||||
|
||||
set-typed-api-version/%:
|
||||
@grep -rHn "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/typed/$*/v[A-Za-z0-9]\+" \
|
||||
"$(ROOT)/pkg/deployment/" \
|
||||
"$(ROOT)/pkg/replication/" \
|
||||
"$(ROOT)/pkg/operator/" \
|
||||
"$(ROOT)/pkg/server/" \
|
||||
"$(ROOT)/pkg/util/" \
|
||||
"$(ROOT)/pkg/handlers/" \
|
||||
"$(ROOT)/pkg/apis/backup/" \
|
||||
"$(ROOT)/pkg/upgrade/" \
|
||||
| cut -d ':' -f 1 | sort | uniq \
|
||||
| xargs -n 1 $(SED) -i "s#github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/typed/$*/v[A-Za-z0-9]\+#github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/typed/$*/v$(API_VERSION)#g"
|
||||
|
||||
|
||||
set-api-version/%:
|
||||
@grep -rHn "github.com/arangodb/kube-arangodb/pkg/apis/$*/v[A-Za-z0-9]\+" \
|
||||
|
|
Loading…
Reference in a new issue