Skip to content

Commit

Permalink
Merge branch 'main' into lint-add-actionlint
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek authored Dec 24, 2024
2 parents 2584029 + dd397cf commit 5566505
Show file tree
Hide file tree
Showing 16 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion config/samples/dataplane-bluegreen-rollout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
containers:
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
env:
- name: KONG_LOG_LEVEL
value: debug
Expand Down
2 changes: 1 addition & 1 deletion config/samples/dataplane-horizontal-autoscaling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
containers:
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
env:
- name: KONG_LOG_LEVEL
value: debug
Expand Down
2 changes: 1 addition & 1 deletion config/samples/dataplane-konnect-extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
containers:
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
readinessProbe:
initialDelaySeconds: 1
periodSeconds: 1
2 changes: 1 addition & 1 deletion config/samples/dataplane-konnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
containers:
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
env:
- name: KONG_ROLE
value: data_plane
Expand Down
2 changes: 1 addition & 1 deletion config/samples/dataplane-pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
containers:
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
env:
- name: KONG_LOG_LEVEL
value: debug
Expand Down
2 changes: 1 addition & 1 deletion config/samples/dataplane-sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
periodSeconds: 1
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
volumeMounts:
- name: proxy-logs
mountPath: /etc/kong/log/
Expand Down
2 changes: 1 addition & 1 deletion config/samples/dataplane-with-custom-ports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
containers:
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
env:
- name: KONG_LOG_LEVEL
value: debug
Expand Down
2 changes: 1 addition & 1 deletion config/samples/dataplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
containers:
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
env:
- name: KONG_LOG_LEVEL
value: debug
Expand Down
2 changes: 1 addition & 1 deletion config/samples/gateway-httproute-allowedroutes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
containers:
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
readinessProbe:
initialDelaySeconds: 1
periodSeconds: 1
Expand Down
2 changes: 1 addition & 1 deletion config/samples/gateway-httproute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ spec:
containers:
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
readinessProbe:
initialDelaySeconds: 1
periodSeconds: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
containers:
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
readinessProbe:
initialDelaySeconds: 1
periodSeconds: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
containers:
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
readinessProbe:
initialDelaySeconds: 1
periodSeconds: 1
Expand Down
2 changes: 1 addition & 1 deletion config/samples/gateway-with-gatewayconfiguration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
containers:
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
readinessProbe:
initialDelaySeconds: 1
periodSeconds: 1
Expand Down
2 changes: 1 addition & 1 deletion config/samples/gatewayconfiguration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
containers:
- name: proxy
# renovate: datasource=docker versioning=docker
image: kong/kong-gateway:3.8
image: kong/kong-gateway:3.9
readinessProbe:
initialDelaySeconds: 1
periodSeconds: 1
Expand Down
2 changes: 1 addition & 1 deletion pkg/consts/dataplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const (
// DefaultDataPlaneTag is the base container image tag that can be used
// by default for a DataPlane resource if all other attempts to dynamically
// decide an image tag fail.
DefaultDataPlaneTag = "3.8" // renovate: datasource=docker depName=kong/kong-gateway
DefaultDataPlaneTag = "3.9" // renovate: datasource=docker depName=kong/kong-gateway

// DefaultDataPlaneImage is the default container image that can be used if
// all other attempts to dynamically decide the default image fail.
Expand Down
12 changes: 6 additions & 6 deletions test/e2e/test_helm_install_upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ func TestHelmUpgrade(t *testing.T) {
},
},
{
Name: fmt.Sprintf("DataPlane deployment is patched after operator upgrade (due to change in default Kong image version to %q)", helpers.GetDefaultDataPlaneImage()),
Name: "DataPlane deployment is patched after operator upgrade (due to change in default Kong image version to kong:3.8)",
Func: func(c *assert.CollectT, cl *testutils.K8sClients) {
gatewayDataPlaneDeploymentIsPatched("gw-upgrade-onebeforelatestminor-latestminor=true")(ctx, c, cl.MgrClient)
gatewayDataPlaneDeploymentHasImageSetTo("gw-upgrade-onebeforelatestminor-latestminor=true", helpers.GetDefaultDataPlaneImage())(ctx, c, cl.MgrClient)
gatewayDataPlaneDeploymentHasImageSetTo("gw-upgrade-onebeforelatestminor-latestminor=true", "kong:3.8")(ctx, c, cl.MgrClient)
},
},
{
Expand Down Expand Up @@ -194,7 +194,7 @@ func TestHelmUpgrade(t *testing.T) {
{
Name: "DataPlane deployment is not patched after operator upgrade",
Func: func(c *assert.CollectT, cl *testutils.K8sClients) {
gatewayDataPlaneDeploymentIsNotPatched("gw-upgrade-latestminor-current=true")(ctx, c, cl.MgrClient)
gatewayDataPlaneDeploymentIsPatched("gw-upgrade-latestminor-current=true")(ctx, c, cl.MgrClient)
},
},
{
Expand Down Expand Up @@ -265,7 +265,7 @@ func TestHelmUpgrade(t *testing.T) {
{
Name: "DataPlane deployment is not patched after operator upgrade",
Func: func(c *assert.CollectT, cl *testutils.K8sClients) {
gatewayDataPlaneDeploymentIsNotPatched("gw-upgrade-nightly-to-current=true")(ctx, c, cl.MgrClient)
gatewayDataPlaneDeploymentIsPatched("gw-upgrade-nightly-to-current=true")(ctx, c, cl.MgrClient)
},
},
{
Expand Down Expand Up @@ -293,7 +293,7 @@ func TestHelmUpgrade(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
// Repository is different for OSS and Enterprise images and it should be set accordingly.
var kgoImageRepository = "docker.io/kong/gateway-operator-oss"
kgoImageRepository := "docker.io/kong/gateway-operator-oss"
if helpers.GetDefaultDataPlaneBaseImage() == consts.DefaultDataPlaneBaseEnterpriseImage {
kgoImageRepository = "docker.io/kong/gateway-operator"
}
Expand Down Expand Up @@ -518,7 +518,7 @@ func gatewayDataPlaneDeploymentHasImageSetTo(
})
}

func gatewayDataPlaneDeploymentIsNotPatched(
func gatewayDataPlaneDeploymentIsNotPatched( //nolint:unused
gatewayLabelSelector string,
) func(context.Context, *assert.CollectT, client.Client) {
return gatewayDataPlaneDeploymentCheck(gatewayLabelSelector, func(d *appsv1.Deployment) error {
Expand Down

0 comments on commit 5566505

Please sign in to comment.