Skip to content

Commit

Permalink
update operator to support Istio 1.20
Browse files Browse the repository at this point in the history
Signed-off-by: zufardhiyaulhaq <zufardhiyaulhaq@gmail.com>
  • Loading branch information
zufardhiyaulhaq committed Nov 19, 2023
1 parent ce5fdfa commit c4ef169
Show file tree
Hide file tree
Showing 31 changed files with 143 additions and 140 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -132,8 +132,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -187,8 +187,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -242,8 +242,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -297,8 +297,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -352,8 +352,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -407,8 +407,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -462,8 +462,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -517,8 +517,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -572,8 +572,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -118,8 +118,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -173,8 +173,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -228,8 +228,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -283,8 +283,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -338,8 +338,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -393,8 +393,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -448,8 +448,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -503,8 +503,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -558,8 +558,8 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: ["v1.25"]
istio: ["1.14.6","1.15.6", "1.16.3", "1.17.1"]
kubernetes: ["v1.26"]
istio: ["1.17.8","1.18.5", "1.19.4", "1.20.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ COPY go.sum go.sum
RUN go mod download

# Copy the go source
COPY main.go main.go
COPY cmd/ cmd/
COPY api/ api/
COPY controllers/ controllers/
COPY internal/controller/ internal/controller/
COPY pkg/ pkg/

# Build
RUN CGO_ENABLED=0 GOOS=linux go build -a -o manager main.go
RUN CGO_ENABLED=0 GOOS=linux go build -a -o manager ./cmd/main.go

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
Expand Down
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ endif
# Image URL to use all building/pushing image targets
IMG ?= controller:latest
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.24
ENVTEST_K8S_VERSION = 1.26

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
Expand Down Expand Up @@ -109,12 +109,12 @@ test: manifests generate fmt vet envtest ## Run tests.
##@ Build

.PHONY: build
build: generate fmt vet ## Build manager binary.
go build -o bin/manager main.go
build: manifests generate fmt vet ## Build manager binary.
go build -o bin/manager ./cmd/main.go

.PHONY: run
run: manifests generate fmt vet ## Run a controller from your host.
go run ./main.go
go run ./cmd/main.go

.PHONY: docker-build
docker-build: test ## Build docker image with the manager.
Expand Down Expand Up @@ -189,7 +189,8 @@ $(KUSTOMIZE): $(LOCALBIN)
.PHONY: controller-gen
controller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessary.
$(CONTROLLER_GEN): $(LOCALBIN)
test -s $(LOCALBIN)/controller-gen || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION)
test -s $(LOCALBIN)/controller-gen && $(LOCALBIN)/controller-gen --version | grep -q $(CONTROLLER_TOOLS_VERSION) || \
GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION)

.PHONY: envtest
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,21 @@ public-gateway.method.grault-route_grault-route: unit=HOUR requests_per_unit=60
| extraLabels | object | `{}` | |
| operator.image | string | `"zufardhiyaulhaq/istio-ratelimit-operator"` | |
| operator.replica | int | `1` | |
| operator.tag | string | `"v2.11.1"` | |
| operator.tag | string | `"v2.12.0"` | |
| resources.limits.cpu | string | `"512m"` | |
| resources.limits.memory | string | `"512Mi"` | |
| resources.requests.cpu | string | `"256m"` | |
| resources.requests.memory | string | `"256Mi"` | |
| serviceAccount.imagePullSecrets | list | `[]` | |
| settings.ratelimitservice.image | string | `"envoyproxy/ratelimit:4c088856"` | |
| settings.statsdExporter.image | string | `"prom/statsd-exporter:v0.23.1"` | |
| settings.ratelimitservice.image | string | `"envoyproxy/ratelimit:5e1be594"` | |
| settings.statsdExporter.image | string | `"prom/statsd-exporter:v0.25.0"` | |

## Supported Releases

| Operator Version | Istio Version |
|-----|------|
| 2.10.0 | <= 1.17.x |
| 2.12.0 | <= 1.20.x |
| 2.11.2 | <= 1.17.x |
| 2.9.0 | <= 1.16.x |
| 2.8.0 | <= 1.15.x |
| 2.5.1 | <= 1.13.x |
9 changes: 5 additions & 4 deletions charts/istio-ratelimit-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,21 @@ public-gateway.method.grault-route_grault-route: unit=HOUR requests_per_unit=60
| extraLabels | object | `{}` | |
| operator.image | string | `"zufardhiyaulhaq/istio-ratelimit-operator"` | |
| operator.replica | int | `1` | |
| operator.tag | string | `"v2.11.1"` | |
| operator.tag | string | `"v2.12.0"` | |
| resources.limits.cpu | string | `"512m"` | |
| resources.limits.memory | string | `"512Mi"` | |
| resources.requests.cpu | string | `"256m"` | |
| resources.requests.memory | string | `"256Mi"` | |
| serviceAccount.imagePullSecrets | list | `[]` | |
| settings.ratelimitservice.image | string | `"envoyproxy/ratelimit:4c088856"` | |
| settings.statsdExporter.image | string | `"prom/statsd-exporter:v0.23.1"` | |
| settings.ratelimitservice.image | string | `"envoyproxy/ratelimit:5e1be594"` | |
| settings.statsdExporter.image | string | `"prom/statsd-exporter:v0.25.0"` | |

## Supported Releases

| Operator Version | Istio Version |
|-----|------|
| 2.10.0 | <= 1.17.x |
| 2.12.0 | <= 1.20.x |
| 2.11.2 | <= 1.17.x |
| 2.9.0 | <= 1.16.x |
| 2.8.0 | <= 1.15.x |
| 2.5.1 | <= 1.13.x |
3 changes: 2 additions & 1 deletion charts/istio-ratelimit-operator/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ public-gateway.method.grault-route_grault-route: unit=HOUR requests_per_unit=60

| Operator Version | Istio Version |
|-----|------|
| 2.10.0 | <= 1.17.x |
| 2.12.0 | <= 1.20.x |
| 2.11.2 | <= 1.17.x |
| 2.9.0 | <= 1.16.x |
| 2.8.0 | <= 1.15.x |
| 2.5.1 | <= 1.13.x |
6 changes: 3 additions & 3 deletions charts/istio-ratelimit-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ operator:
# image of istio-ratelimit-operator
image: "zufardhiyaulhaq/istio-ratelimit-operator"
# tag of istio-ratelimit-operator image
tag: "v2.11.1"
tag: "v2.12.0"
# number of replica for deployment
replica: 1

Expand All @@ -16,9 +16,9 @@ resources:

settings:
ratelimitservice:
image: envoyproxy/ratelimit:4c088856
image: envoyproxy/ratelimit:5e1be594
statsdExporter:
image: prom/statsd-exporter:v0.23.1
image: prom/statsd-exporter:v0.25.0

serviceAccount:
imagePullSecrets: []
Expand Down
Loading

0 comments on commit c4ef169

Please sign in to comment.