Skip to content

Commit

Permalink
update awk expression
Browse files Browse the repository at this point in the history
Co-authored-by: UMEZAWA Takeshi <takeshi-umezawa@cybozu.co.jp>
Co-authored-by: Yuji Ito <llamerada.jp@gmail.com>
  • Loading branch information
3 people committed Apr 23, 2024
1 parent febc867 commit 2ebacef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion admission/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ GRAFANA_OPERATOR_VERSION = 5.8.1
ENVTEST_K8S_VERSION = 1.27.1

# Specify envtest branch according to controller-runtime version
CONTROLLER_RUNTIME_VERSION := $(shell awk '/sigs\.k8s\.io\/controller-runtime/ {print substr($$2, 2)}' go.mod)
CONTROLLER_RUNTIME_VERSION := $(shell awk '$$1 == "sigs.k8s.io/controller-runtime" {print substr($$2, 2)}' go.mod)
ENVTEST_BRANCH := release-$(shell echo $(CONTROLLER_RUNTIME_VERSION) | cut -d "." -f 1-2)

# Set the shell used to bash for better error handling.
Expand Down
2 changes: 1 addition & 1 deletion local-pv-provisioner/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CONTROLLER_TOOLS_VERSION = 0.13.0
ENVTEST_K8S_VERSION = 1.28.3

# Specify envtest branch according to controller-runtime version
CONTROLLER_RUNTIME_VERSION := $(shell awk '/sigs\.k8s\.io\/controller-runtime/ {print substr($$2, 2)}' go.mod)
CONTROLLER_RUNTIME_VERSION := $(shell awk '$$1 == "sigs.k8s.io/controller-runtime" {print substr($$2, 2)}' go.mod)
ENVTEST_BRANCH := release-$(shell echo $(CONTROLLER_RUNTIME_VERSION) | cut -d "." -f 1-2)

# Set the shell used to bash for better error handling.
Expand Down
2 changes: 1 addition & 1 deletion pod-delete-rate-limiter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ IMG ?= controller:latest
ENVTEST_K8S_VERSION = 1.27.1

# Specify envtest branch according to controller-runtime version
CONTROLLER_RUNTIME_VERSION := $(shell awk '/sigs\.k8s\.io\/controller-runtime/ {print substr($$2, 2)}' go.mod)
CONTROLLER_RUNTIME_VERSION := $(shell awk '$$1 == "sigs.k8s.io/controller-runtime" {print substr($$2, 2)}' go.mod)
ENVTEST_BRANCH := release-$(shell echo $(CONTROLLER_RUNTIME_VERSION) | cut -d "." -f 1-2)

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
Expand Down

0 comments on commit 2ebacef

Please sign in to comment.