Skip to content

Commit b7b9b7e

Browse files
authored
chore: ci and some renames from KGO to KO (#1686)
1 parent 08194a4 commit b7b9b7e

37 files changed

+706
-206
lines changed

.github/ISSUE_TEMPLATE/---release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ If the troubleshooting section does not contain the answer to the problem you en
1919
- [ ] Ensure that the `go.mod` file references an officially released version of `kong/kubernetes-configuration` instead of directly depending on the main branch version.
2020
- [ ] Ensure that all generators have run properly (e.g. `make generate manifests`) so that updates to things like CRDs are handled for the release, double check that all manifests from `config/samples/` still work as intended.
2121
- [ ] Ensure GitHub PAT is still valid (see [GitHub PAT](#github-pat) below).
22-
- [ ] Ask on the `team-k8s` Slack channel for granting the CI DockerHub account temporary permission to push images to the `kong/gateway-operator-oss` repository.
22+
- [ ] Ask on the `team-k8s` Slack channel for granting the CI DockerHub account temporary permission to push images to the `kong/kong-operator` repository.
2323
- [ ] From [GitHub release action][release-action], start a new workflow run:
2424
- Set the `Use workflow from` to the release branch: e.g. `release/1.2.x`
2525
- If you want to release a major version, set the `Use workflow from` to the `main` branch otherwise set it to the release branch.
2626
- Set the `release` input set to the target version (e.g. `v1.2.0`).
2727
- [ ] Wait for the workflow to complete.
28-
- [ ] Once the workflow completes, ask for revoking the temporary permission to push images to the `kong/gateway-operator-oss` repository.
28+
- [ ] Once the workflow completes, ask for revoking the temporary permission to push images to the `kong/kong-operator` repository.
2929
- [ ] The CI should create a PR in the [Gateway Operator][kgo-prs] repo that bumps KGO version in `VERSION` file and manifests. Merge it.
3030
- [ ] After the PR is merged, [release-bot][release-bot-workflow] workflow will be triggered. It will create a new GH release, as well as a release branch (if not patch or prerelease):
3131
- [ ] Check the [releases][releases] page. The release has to be marked manually as `latest` if this is the case.

.github/workflows/__release-workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ jobs:
227227
run: make test.e2e
228228
env:
229229
KONG_LICENSE_DATA: ${{ steps.get-license.outputs.license || '' }} # The license is optional for OSS tests.
230-
KONG_TEST_GATEWAY_OPERATOR_IMAGE_OVERRIDE: ${{ needs.build-push-images.outputs.full_tag }}
230+
KONG_TEST_KONG_OPERATOR_IMAGE_OVERRIDE: ${{ needs.build-push-images.outputs.full_tag }}
231231
KONG_TEST_KONNECT_ACCESS_TOKEN: ${{ secrets.konnect-pat }}
232232
KONG_TEST_KONNECT_SERVER_URL: us.api.konghq.tech
233233

.github/workflows/charts-tests.yaml

Lines changed: 56 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -98,58 +98,60 @@ jobs:
9898
echo 'EOF'
9999
) >> "${GITHUB_OUTPUT}"
100100
101-
lint-test:
102-
timeout-minutes: 30
103-
needs:
104-
- check-docs-only
105-
- matrix_k8s_node_versions
106-
if: ${{ needs.check-docs-only.outputs.docs_only != 'true' }}
107-
runs-on: ubuntu-latest
108-
strategy:
109-
matrix:
110-
kubernetes-node-version: ${{ fromJson(needs.matrix_k8s_node_versions.outputs.matrix) }}
111-
chart-name:
112-
- kong-operator
113-
steps:
114-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
115-
with:
116-
fetch-depth: 0
117-
118-
- uses: jdx/mise-action@13abe502c30c1559a5c37dff303831bab82c9402 # v2.2.3
119-
with:
120-
install: false
121-
122-
- uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
123-
124-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
125-
with:
126-
python-version: "3.13"
127-
128-
- uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
129-
130-
- name: Run chart-testing (lint)
131-
run: ct lint --target-branch main --check-version-increment=false
132-
133-
- name: setup testing environment (kind-cluster)
134-
env:
135-
KUBERNETES_VERSION: ${{ matrix.kubernetes-node-version }}
136-
CHART_NAME: ${{ matrix.chart-name }}
137-
run: ./scripts/charts-test-env.sh
138-
139-
- name: Install kubernetes-configuration CRDs (ingress-controller)
140-
run: make install.kubernetes-configuration-crds-ingress-controller
141-
142-
- name: Install kubernetes-configuration CRDs (operator)
143-
run: make install.kubernetes-configuration-crds-operator
144-
145-
- name: Install Gateway API CRDs
146-
run: make install.gateway-api-crds
147-
148-
- name: Run chart-testing (install)
149-
run: |
150-
kubectl create ns kong-test
151-
ct install --target-branch main --charts charts/${{ matrix.chart-name}} --namespace kong-test
152-
# No need to delete the ns the cluster is scrapped after the job anyway.
101+
#TODO: https://github.com/Kong/gateway-operator/issues/1717
102+
# See the line 184 too!
103+
# lint-test:
104+
# timeout-minutes: 30
105+
# needs:
106+
# - check-docs-only
107+
# - matrix_k8s_node_versions
108+
# if: ${{ needs.check-docs-only.outputs.docs_only != 'true' }}
109+
# runs-on: ubuntu-latest
110+
# strategy:
111+
# matrix:
112+
# kubernetes-node-version: ${{ fromJson(needs.matrix_k8s_node_versions.outputs.matrix) }}
113+
# chart-name:
114+
# - kong-operator
115+
# steps:
116+
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
117+
# with:
118+
# fetch-depth: 0
119+
120+
# - uses: jdx/mise-action@13abe502c30c1559a5c37dff303831bab82c9402 # v2.2.3
121+
# with:
122+
# install: false
123+
124+
# - uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
125+
126+
# - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
127+
# with:
128+
# python-version: "3.13"
129+
130+
# - uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
131+
132+
# - name: Run chart-testing (lint)
133+
# run: ct lint --target-branch main --check-version-increment=false
134+
135+
# - name: setup testing environment (kind-cluster)
136+
# env:
137+
# KUBERNETES_VERSION: ${{ matrix.kubernetes-node-version }}
138+
# CHART_NAME: ${{ matrix.chart-name }}
139+
# run: ./scripts/charts-test-env.sh
140+
141+
# - name: Install kubernetes-configuration CRDs (ingress-controller)
142+
# run: make install.kubernetes-configuration-crds-ingress-controller
143+
144+
# - name: Install kubernetes-configuration CRDs (operator)
145+
# run: make install.kubernetes-configuration-crds-operator
146+
147+
# - name: Install Gateway API CRDs
148+
# run: make install.gateway-api-crds
149+
150+
# - name: Run chart-testing (install)
151+
# run: |
152+
# kubectl create ns kong-test
153+
# ct install --target-branch main --charts charts/${{ matrix.chart-name}} --namespace kong-test
154+
# # No need to delete the ns the cluster is scrapped after the job anyway.
153155

154156
golden-tests:
155157
timeout-minutes: 30
@@ -179,7 +181,8 @@ jobs:
179181
- check-docs-only
180182
- generate
181183
- lint
182-
- lint-test
184+
#TODO: https://github.com/Kong/gateway-operator/issues/1717
185+
# - lint-test
183186
- golden-tests
184187
if: always()
185188
steps:

.github/workflows/tests.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
needs: [check-docs-only]
162162
if: ${{ needs.check-docs-only.outputs.docs_only != 'true' }}
163163
env:
164-
IMG: gateway-operator
164+
IMG: kong-operator
165165
TAG: e2e-${{ github.sha }}
166166
CLUSTER_NAME: install-with-kustomize
167167
steps:
@@ -189,11 +189,11 @@ jobs:
189189
run: make install
190190

191191
- name: Load image to kind cluster
192-
run: kind load docker-image gateway-operator:e2e-${{ github.sha }} --name $CLUSTER_NAME
192+
run: kind load docker-image kong-operator:e2e-${{ github.sha }} --name $CLUSTER_NAME
193193

194194
- name: Verify deploying operator via kustomize works
195195
env:
196-
IMG: gateway-operator
196+
IMG: kong-operator
197197
VERSION: e2e-${{ github.sha }}
198198
run: make deploy
199199

@@ -273,7 +273,7 @@ jobs:
273273

274274
- name: Run the crds validation tests
275275
run: make test.crds-validation
276-
276+
277277
envtest-tests:
278278
runs-on: ubuntu-latest
279279
needs: [check-docs-only]
@@ -456,7 +456,7 @@ jobs:
456456
with:
457457
name: tests-report-integration-bluegreen
458458
path: integration-tests-bluegreen.xml
459-
459+
460460
e2e-tests:
461461
runs-on: ubuntu-latest
462462
needs: [check-docs-only]
@@ -474,7 +474,7 @@ jobs:
474474

475475
- name: build docker image
476476
env:
477-
IMG: gateway-operator
477+
IMG: kong-operator
478478
TAG: e2e-${{ github.sha }}
479479
run: make docker.build
480480

@@ -485,7 +485,7 @@ jobs:
485485
- name: run e2e tests
486486
run: make test.e2e
487487
env:
488-
KONG_TEST_GATEWAY_OPERATOR_IMAGE_LOAD: gateway-operator:e2e-${{ github.sha }}
488+
KONG_TEST_KONG_OPERATOR_IMAGE_LOAD: kong-operator:e2e-${{ github.sha }}
489489
GOTESTSUM_JUNITFILE: "e2e-tests.xml"
490490
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
491491

@@ -575,5 +575,3 @@ jobs:
575575
echo "Some jobs failed or were cancelled."
576576
exit 1
577577
fi
578-
579-

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Table of Contents
44

5+
- [v2.0.0-alpha.0](#v200-alpha0)
56
- [v1.6.1](#v161)
67
- [v1.6.0](#v160)
78
- [v1.5.1](#v151)
@@ -28,7 +29,12 @@
2829
- [v0.1.1](#v011)
2930
- [v0.1.0](#v010)
3031

31-
## Unreleased for Kong Operator
32+
## [v2.0.0-alpha.0]
33+
34+
> Release date: 2025-06-11
35+
36+
> KGO becomes KO, which stands for Kong Operator - Kubernetes Gateway Operator and Kubernetes Ingress Controller
37+
> become a single product.
3238
3339
### Added
3440

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ endif
2020
SHELL = bash
2121
.SHELLFLAGS = -ec -o pipefail
2222

23-
IMG ?= docker.io/kong/gateway-operator-oss
24-
KUSTOMIZE_IMG_NAME = docker.io/kong/gateway-operator-oss
23+
IMG ?= docker.io/kong/kong-operator
24+
KUSTOMIZE_IMG_NAME = docker.io/kong/kong-operator
2525

2626
ifeq (Darwin,$(shell uname -s))
2727
LDFLAGS_COMMON ?= -extldflags=-Wl,-ld_classic
@@ -719,9 +719,9 @@ _run.with-impersonate:
719719
cp $(KUBECONFIG) $(TMP_KUBECONFIG)
720720
@$(eval TMP_TOKEN := $(shell kubectl create token --namespace=kong-system controller-manager))
721721
@$(eval CLUSTER := $(shell kubectl config get-contexts | grep '^\*' | tr -s ' ' | cut -d ' ' -f 3))
722-
KUBECONFIG=$(TMP_KUBECONFIG) kubectl config set-credentials kgo --token=$(TMP_TOKEN)
723-
KUBECONFIG=$(TMP_KUBECONFIG) kubectl config set-context kgo --cluster=$(CLUSTER) --user=kgo --namespace=kong-system
724-
KUBECONFIG=$(TMP_KUBECONFIG) kubectl config use-context kgo
722+
KUBECONFIG=$(TMP_KUBECONFIG) kubectl config set-credentials ko --token=$(TMP_TOKEN)
723+
KUBECONFIG=$(TMP_KUBECONFIG) kubectl config set-context ko --cluster=$(CLUSTER) --user=kgo --namespace=kong-system
724+
KUBECONFIG=$(TMP_KUBECONFIG) kubectl config use-context ko
725725
$(MAKE) _run TMP_KUBECONFIG=$(TMP_KUBECONFIG)
726726

727727
SKAFFOLD_RUN_PROFILE ?= dev

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ See our [Features Page](/FEATURES.md) for details on these capabilities.
4040

4141
The operator provides 2 APIs:
4242

43-
- YAML / manifests API which users use to apply their manifests against Kubernetes clusters.
44-
- Go API through types exported under [api/](https://github.com/Kong/gateway-operator/tree/main/api)
43+
* YAML / manifests API which users use to apply their manifests against Kubernetes clusters.
44+
* Go API through types exported under [api/](https://github.com/Kong/gateway-operator/tree/main/api)
4545
and other exported packages.
4646

4747
This project:
4848

49-
- Follows [Kubernetes API versioning][k8s_api_versioning] for the YAML API.
50-
- This is considered part of the user contract.
51-
- Tries to not break users implementing against operator's Go API but does not
49+
* Follows [Kubernetes API versioning][k8s_api_versioning] for the YAML API.
50+
* This is considered part of the user contract.
51+
* Tries to not break users implementing against operator's Go API but does not
5252
offer a non breaking guarantee.
5353

5454
[k8s_api_versioning]: https://kubernetes.io/docs/reference/using-api/#api-versioning
@@ -63,21 +63,21 @@ detailed description of how to thoroughly use this project.
6363

6464
### Release images
6565

66-
Release builds can be found on Docker Hub in [kong/gateway-operator-oss repository][dockerhub-kgo-oss].
66+
Release builds can be found on Docker Hub in [kong/kong-operator repository][dockerhub-ko].
6767

6868
At the moment we're providing images for:
6969

70-
- Linux `amd64`
71-
- Linux `arm64`
70+
* Linux `amd64`
71+
* Linux `arm64`
7272

73-
[dockerhub-kgo-oss]: https://hub.docker.com/r/kong/gateway-operator-oss
73+
[dockerhub-ko]: https://hub.docker.com/r/kong/kong-operator
7474

7575
### `main` branch builds
7676

7777
Nightly pre-release builds of the `main` branch are available from the
78-
[kong/nightly-gateway-operator-oss repository][dockerhub-kgo-nightly] hosted on Docker Hub.
78+
[kong/nightly-kong-operator repository][dockerhub-ko-nightly] hosted on Docker Hub.
7979

80-
[dockerhub-kgo-nightly]: https://hub.docker.com/r/kong/nightly-gateway-operator-oss
80+
[dockerhub-ko-nightly]: https://hub.docker.com/r/kong/nightly-kong-operator
8181

8282
## Development
8383

@@ -106,9 +106,10 @@ machine against the cluster that you have configured via your `KUBECONFIG`.
106106
### Adding new CRDs
107107

108108
Whenever you add a new CRD:
109-
- Ensure that it is included in project's [`PROJECT`](./PROJECT) file. This is necessary for creation of
109+
110+
* Ensure that it is included in project's [`PROJECT`](./PROJECT) file. This is necessary for creation of
110111
a bundle for external hubs like [Operator Hub's community operators][community-operators].
111-
- Annotate the CRD and any new type it depends on with the right markers to make sure it will be included
112+
* Annotate the CRD and any new type it depends on with the right markers to make sure it will be included
112113
in the generated documentation. See [available markers][available-markers].
113114

114115
[community-operators]: https://github.com/k8s-operatorhub/community-operators/

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.1
1+
2.0.0-alpha.0

charts/kong-operator/ci/__snapshots__/affinity-values.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ apiVersion: v1
673673
kind: Service
674674
metadata:
675675
labels:
676-
app.kubernetes.io/component: kgo
676+
app.kubernetes.io/component: ko
677677
name: chartsnap-kong-operator
678678
namespace: default
679679
spec:
@@ -683,7 +683,7 @@ spec:
683683
protocol: TCP
684684
targetPort: https
685685
selector:
686-
app.kubernetes.io/component: kgo
686+
app.kubernetes.io/component: ko
687687
---
688688
# Source: kong-operator/templates/deployment.yaml
689689
apiVersion: apps/v1
@@ -694,15 +694,15 @@ metadata:
694694
helm.sh/chart: kong-operator-0.0.1
695695
app.kubernetes.io/instance: "chartsnap"
696696
app.kubernetes.io/version: "2.0.0-alpha.0"
697-
app.kubernetes.io/component: kgo
697+
app.kubernetes.io/component: ko
698698
name: chartsnap-kong-operator-controller-manager
699699
namespace: default
700700
spec:
701701
replicas: 1
702702
selector:
703703
matchLabels:
704704
app.kubernetes.io/name: kong-operator
705-
app.kubernetes.io/component: kgo
705+
app.kubernetes.io/component: ko
706706
app.kubernetes.io/instance: "chartsnap"
707707
strategy:
708708
type: Recreate
@@ -716,7 +716,7 @@ spec:
716716
helm.sh/chart: kong-operator-0.0.1
717717
app.kubernetes.io/instance: "chartsnap"
718718
app.kubernetes.io/version: "2.0.0-alpha.0"
719-
app.kubernetes.io/component: kgo
719+
app.kubernetes.io/component: ko
720720
app: chartsnap-kong-operator
721721
version: "2.0.0-alpha.0"
722722
spec:
@@ -743,7 +743,7 @@ spec:
743743
valueFrom:
744744
fieldRef:
745745
fieldPath: metadata.namespace
746-
image: "docker.io/kong/gateway-operator:1.6"
746+
image: "docker.io/kong/kong-operator:2.0.0-alpha.0"
747747
livenessProbe:
748748
httpGet:
749749
path: /healthz

0 commit comments

Comments
 (0)