Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump kong/kubernetes-configuration to v0.0.43 #859

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ install: manifests kustomize install-gateway-api-crds

KUBERNETES_CONFIGURATION_CRDS_PACKAGE ?= github.com/kong/kubernetes-configuration
KUBERNETES_CONFIGURATION_CRDS_VERSION ?= $(shell go list -m -f '{{ .Version }}' $(KUBERNETES_CONFIGURATION_CRDS_PACKAGE))
KUBERNETES_CONFIGURATION_CRDS_CRDS_LOCAL_PATH = $(shell go env GOPATH)/pkg/mod/$(KUBERNETES_CONFIGURATION_CRDS_PACKAGE)@$(KUBERNETES_CONFIGURATION_CRDS_VERSION)/config/crd
KUBERNETES_CONFIGURATION_CRDS_CRDS_LOCAL_PATH = $(shell go env GOPATH)/pkg/mod/$(KUBERNETES_CONFIGURATION_CRDS_PACKAGE)@$(KUBERNETES_CONFIGURATION_CRDS_VERSION)/config/crd/gateway-operator

# Install kubernetes-configuration CRDs into the K8s cluster specified in ~/.kube/config.
.PHONY: install.kubernetes-configuration-crds
Expand Down
2 changes: 1 addition & 1 deletion controller/konnect/ops/ops_kongroute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestKongRouteToSDKRouteInput_Tags(t *testing.T) {
Spec: configurationv1alpha1.KongRouteSpec{
ServiceRef: &configurationv1alpha1.ServiceRef{
Type: configurationv1alpha1.ServiceRefNamespacedRef,
NamespacedRef: &configurationv1alpha1.NamespacedServiceRef{
NamespacedRef: &configurationv1alpha1.KongObjectRef{
Name: "service-1",
},
},
Expand Down
12 changes: 6 additions & 6 deletions controller/konnect/reconciler_kongplugin_combinations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func TestGetCombinations(t *testing.T) {
Spec: configurationv1alpha1.KongRouteSpec{
ServiceRef: &configurationv1alpha1.ServiceRef{
Type: configurationv1alpha1.ServiceRefNamespacedRef,
NamespacedRef: &configurationv1alpha1.NamespacedServiceRef{
NamespacedRef: &configurationv1alpha1.KongObjectRef{
Name: "s1",
},
},
Expand Down Expand Up @@ -302,7 +302,7 @@ func TestGetCombinations(t *testing.T) {
Spec: configurationv1alpha1.KongRouteSpec{
ServiceRef: &configurationv1alpha1.ServiceRef{
Type: configurationv1alpha1.ServiceRefNamespacedRef,
NamespacedRef: &configurationv1alpha1.NamespacedServiceRef{
NamespacedRef: &configurationv1alpha1.KongObjectRef{
Name: "s1",
},
},
Expand Down Expand Up @@ -371,7 +371,7 @@ func TestGetCombinations(t *testing.T) {
Spec: configurationv1alpha1.KongRouteSpec{
ServiceRef: &configurationv1alpha1.ServiceRef{
Type: configurationv1alpha1.ServiceRefNamespacedRef,
NamespacedRef: &configurationv1alpha1.NamespacedServiceRef{
NamespacedRef: &configurationv1alpha1.KongObjectRef{
Name: "s1",
},
},
Expand Down Expand Up @@ -417,7 +417,7 @@ func TestGetCombinations(t *testing.T) {
Spec: configurationv1alpha1.KongRouteSpec{
ServiceRef: &configurationv1alpha1.ServiceRef{
Type: configurationv1alpha1.ServiceRefNamespacedRef,
NamespacedRef: &configurationv1alpha1.NamespacedServiceRef{
NamespacedRef: &configurationv1alpha1.KongObjectRef{
Name: "s1",
},
},
Expand Down Expand Up @@ -653,7 +653,7 @@ func TestGroupByControlPlane(t *testing.T) {
Spec: configurationv1alpha1.KongRouteSpec{
ServiceRef: &configurationv1alpha1.ServiceRef{
Type: configurationv1alpha1.ServiceRefNamespacedRef,
NamespacedRef: &configurationv1alpha1.NamespacedServiceRef{
NamespacedRef: &configurationv1alpha1.KongObjectRef{
Name: "s1",
},
},
Expand Down Expand Up @@ -695,7 +695,7 @@ func TestGroupByControlPlane(t *testing.T) {
Spec: configurationv1alpha1.KongRouteSpec{
ServiceRef: &configurationv1alpha1.ServiceRef{
Type: configurationv1alpha1.ServiceRefNamespacedRef,
NamespacedRef: &configurationv1alpha1.NamespacedServiceRef{
NamespacedRef: &configurationv1alpha1.KongObjectRef{
Name: "s1",
},
},
Expand Down
8 changes: 4 additions & 4 deletions controller/konnect/reconciler_serviceref_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func TestHandleServiceRef(t *testing.T) {
Spec: configurationv1alpha1.KongRouteSpec{
ServiceRef: &configurationv1alpha1.ServiceRef{
Type: configurationv1alpha1.ServiceRefNamespacedRef,
NamespacedRef: &configurationv1alpha1.NamespacedServiceRef{
NamespacedRef: &configurationv1alpha1.KongObjectRef{
Name: "svc-ok",
},
},
Expand Down Expand Up @@ -173,7 +173,7 @@ func TestHandleServiceRef(t *testing.T) {
Spec: configurationv1alpha1.KongRouteSpec{
ServiceRef: &configurationv1alpha1.ServiceRef{
Type: configurationv1alpha1.ServiceRefNamespacedRef,
NamespacedRef: &configurationv1alpha1.NamespacedServiceRef{
NamespacedRef: &configurationv1alpha1.KongObjectRef{
Name: "svc-ok",
},
},
Expand All @@ -196,7 +196,7 @@ func TestHandleServiceRef(t *testing.T) {
Spec: configurationv1alpha1.KongRouteSpec{
ServiceRef: &configurationv1alpha1.ServiceRef{
Type: configurationv1alpha1.ServiceRefNamespacedRef,
NamespacedRef: &configurationv1alpha1.NamespacedServiceRef{
NamespacedRef: &configurationv1alpha1.KongObjectRef{
Name: "svc-not-programmed",
},
},
Expand Down Expand Up @@ -235,7 +235,7 @@ func TestHandleServiceRef(t *testing.T) {
Spec: configurationv1alpha1.KongRouteSpec{
ServiceRef: &configurationv1alpha1.ServiceRef{
Type: configurationv1alpha1.ServiceRefNamespacedRef,
NamespacedRef: &configurationv1alpha1.NamespacedServiceRef{
NamespacedRef: &configurationv1alpha1.KongObjectRef{
Name: "svc-with-cp-ref-unprogrammed",
},
},
Expand Down
25 changes: 4 additions & 21 deletions docs/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1134,19 +1134,18 @@ _Appears in:_
#### KongObjectRef


KongObjectRef is a reference to another object representing a Kong entity with deterministic type.<br /><br />
TODO: https://github.com/Kong/kubernetes-configuration/issues/96
change other types to use the generic `KongObjectRef` and move it to a common package to prevent possible import cycles.
KongObjectRef is a reference to another object representing a Kong entity with deterministic type.



| Field | Description |
| --- | --- |
| `name` _string_ | Name is the name of the entity.<br /><br /> NOTE: the `Required` validation rule does not reject empty strings so we use `MinLength` to reject empty string here. |
| `name` _string_ | Name is the name of the entity. |


_Appears in:_
- [KongSNISpec](#kongsnispec)
- [ServiceRef](#serviceref)

#### KongPluginBindingSpec

Expand Down Expand Up @@ -1600,22 +1599,6 @@ Namespace refers to a Kubernetes namespace. It must be a RFC 1123 label.
_Appears in:_
- [ControllerReference](#controllerreference)

#### NamespacedServiceRef


NamespacedServiceRef is a namespaced reference to a KongService.<br /><br />
NOTE: currently cross namespace references are not supported.



| Field | Description |
| --- | --- |
| `name` _string_ | |


_Appears in:_
- [ServiceRef](#serviceref)

#### ObjectName
_Underlying type:_ `string`

Expand Down Expand Up @@ -1673,7 +1656,7 @@ ServiceRef is a reference to a KongService.
| Field | Description |
| --- | --- |
| `type` _string_ | Type can be one of: - namespacedRef |
| `namespacedRef` _[NamespacedServiceRef](#namespacedserviceref)_ | NamespacedRef is a reference to a KongService. |
| `namespacedRef` _[KongObjectRef](#kongobjectref)_ | NamespacedRef is a reference to a KongService. |


_Appears in:_
Expand Down
6 changes: 2 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/kong/gateway-operator

go 1.22.7

toolchain go1.23.2
go 1.23.2

// 1.2.2 was released on main branch with a breaking change that was not
// intended to be released in 1.2.x:
Expand All @@ -17,7 +15,7 @@ require (
github.com/go-logr/logr v1.4.2
github.com/google/go-containerregistry v0.20.2
github.com/google/uuid v1.6.0
github.com/kong/kubernetes-configuration v0.0.41
github.com/kong/kubernetes-configuration v0.0.43
github.com/kong/kubernetes-telemetry v0.1.7
github.com/kong/kubernetes-testing-framework v0.47.2
github.com/kong/semver/v4 v4.0.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2
github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw=
github.com/kong/go-kong v0.59.1 h1:AJZtyCD+Zyqe/mF/m+x3/qN/GPVxAH7jq9zGJTHRfjc=
github.com/kong/go-kong v0.59.1/go.mod h1:8Vt6HmtgLNgL/7bSwAlz3DIWqBtzG7qEt9+OnMiQOa0=
github.com/kong/kubernetes-configuration v0.0.41 h1:ELdPFCpN8+VmWU2eEL8kj+8PzaMYYAlKfVJDXA13pTw=
github.com/kong/kubernetes-configuration v0.0.41/go.mod h1:zo835UJG2Rd9M8OcdkrbbelHLXsjh8fg71P77PZX2iU=
github.com/kong/kubernetes-configuration v0.0.43 h1:CzMP38+aMjhRTsE+xwAbq2I3nXgWvLlxhcoUZ4BQ+LY=
github.com/kong/kubernetes-configuration v0.0.43/go.mod h1:ym++Oygj/wZjaCanK8a+mjZ1jttPF7gPP1OBV0aqI00=
github.com/kong/kubernetes-telemetry v0.1.7 h1:R4NUpvbF5uZ+5kgSQsIcf/oulRBGQCHsffFRDE4wxV4=
github.com/kong/kubernetes-telemetry v0.1.7/go.mod h1:USy5pcD1+Mm9NtKuz3Pb/rSx71VN76gHCFhdbAB4/lg=
github.com/kong/kubernetes-testing-framework v0.47.2 h1:+2Z9anTpbV/hwNeN+NFQz53BMU+g3QJydkweBp3tULo=
Expand Down
4 changes: 1 addition & 3 deletions hack/generators/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/kong/gateway-operator/hack/generators

go 1.22.7

toolchain go1.23.2
go 1.23.2

replace github.com/kong/gateway-operator => ../../

Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/test/setup_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func DeployCRDs(ctx context.Context, crdPath string, operatorClient *operatorcli
}
// Then install CRDs from the module found in `$GOPATH`.
kongCRDPath := filepath.Join(build.Default.GOPATH, "pkg", "mod", "github.com", "kong",
"kubernetes-configuration@"+kongCRDVersion, "config", "crd")
"kubernetes-configuration@"+kongCRDVersion, "config", "crd", "gateway-operator")
fmt.Printf("INFO: deploying Kong (kubernetes-configuration) CRDs: %s\n", kongCRDPath)
if err := clusters.KustomizeDeployForCluster(ctx, env.Cluster(), kongCRDPath); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion test/envtest/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func Setup(t *testing.T, ctx context.Context, scheme *k8sruntime.Scheme) (*rest.
kongConfVersion, err := testutil.ExtractModuleVersion(testutil.KubernetesConfigurationModuleName)
require.NoError(t, err)
kongCRDPath := filepath.Join(build.Default.GOPATH, "pkg", "mod", "github.com", "kong", "kubernetes-configuration@"+kongConfVersion, "config", "crd")
kongBaseCRDPath := kongCRDPath + "/bases"
kongBaseCRDPath := kongCRDPath + "/gateway-operator"
// we do not deal with incubator resources here, so we only install base CRDs.
t.Logf("install Kong CRDs from path %s", kongCRDPath)
_, err = envtest.InstallCRDs(cfg, envtest.CRDInstallOptions{
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/deploy/deploy_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func KongRouteAttachedToService(
},
ServiceRef: &configurationv1alpha1.ServiceRef{
Type: configurationv1alpha1.ServiceRefNamespacedRef,
NamespacedRef: &configurationv1alpha1.NamespacedServiceRef{
NamespacedRef: &configurationv1alpha1.KongObjectRef{
Name: kongService.Name,
},
},
Expand Down
Loading