From 51090cac6199b46209d9cb9fd252f709b5bdf83d Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Fri, 2 Jan 2026 23:43:33 +0800 Subject: [PATCH 1/4] feat(api): make server field optional with default --- .../streamnativecloudconnection_types.go | 16 ++++++++++++++-- .../crds/resource.streamnative.io_apikeys.yaml | 2 +- ....streamnative.io_computeflinkdeployments.yaml | 2 +- ...source.streamnative.io_computeworkspaces.yaml | 2 +- ...source.streamnative.io_pulsarconnections.yaml | 2 +- ...resource.streamnative.io_pulsarfunctions.yaml | 2 +- ...ce.streamnative.io_pulsargeoreplications.yaml | 2 +- ...esource.streamnative.io_pulsarnamespaces.yaml | 2 +- ...treamnative.io_pulsarnsisolationpolicies.yaml | 2 +- .../resource.streamnative.io_pulsarpackages.yaml | 2 +- ...source.streamnative.io_pulsarpermissions.yaml | 2 +- .../resource.streamnative.io_pulsarsinks.yaml | 2 +- .../resource.streamnative.io_pulsarsources.yaml | 2 +- .../resource.streamnative.io_pulsartenants.yaml | 2 +- .../resource.streamnative.io_pulsartopics.yaml | 2 +- .../resource.streamnative.io_rolebindings.yaml | 2 +- .../crds/resource.streamnative.io_secrets.yaml | 2 +- ...e.streamnative.io_serviceaccountbindings.yaml | 2 +- ...resource.streamnative.io_serviceaccounts.yaml | 2 +- ...amnative.io_streamnativecloudconnections.yaml | 4 ++-- .../bases/resource.streamnative.io_apikeys.yaml | 2 +- ....streamnative.io_computeflinkdeployments.yaml | 2 +- ...source.streamnative.io_computeworkspaces.yaml | 2 +- ...source.streamnative.io_pulsarconnections.yaml | 2 +- ...resource.streamnative.io_pulsarfunctions.yaml | 2 +- ...ce.streamnative.io_pulsargeoreplications.yaml | 2 +- ...esource.streamnative.io_pulsarnamespaces.yaml | 2 +- ...treamnative.io_pulsarnsisolationpolicies.yaml | 2 +- .../resource.streamnative.io_pulsarpackages.yaml | 2 +- ...source.streamnative.io_pulsarpermissions.yaml | 2 +- .../resource.streamnative.io_pulsarsinks.yaml | 2 +- .../resource.streamnative.io_pulsarsources.yaml | 2 +- .../resource.streamnative.io_pulsartenants.yaml | 2 +- .../resource.streamnative.io_pulsartopics.yaml | 2 +- .../resource.streamnative.io_rolebindings.yaml | 2 +- .../bases/resource.streamnative.io_secrets.yaml | 2 +- ...e.streamnative.io_serviceaccountbindings.yaml | 2 +- ...resource.streamnative.io_serviceaccounts.yaml | 2 +- ...amnative.io_streamnativecloudconnections.yaml | 4 ++-- pkg/streamnativecloud/api_connection.go | 6 +++--- 40 files changed, 57 insertions(+), 45 deletions(-) diff --git a/api/v1alpha1/streamnativecloudconnection_types.go b/api/v1alpha1/streamnativecloudconnection_types.go index 2e95b4f8..c74d0ee2 100644 --- a/api/v1alpha1/streamnativecloudconnection_types.go +++ b/api/v1alpha1/streamnativecloudconnection_types.go @@ -25,8 +25,9 @@ import ( // StreamNativeCloudConnectionSpec defines the desired state of StreamNativeCloudConnection type StreamNativeCloudConnectionSpec struct { // Server is the URL of the API server - // +required - Server string `json:"server"` + // +kubebuilder:default="https://api.streamnative.cloud" + // +optional + Server string `json:"server,omitempty"` // Auth defines the authentication configuration // +required @@ -42,6 +43,17 @@ type StreamNativeCloudConnectionSpec struct { Organization string `json:"organization,omitempty"` } +// DefaultStreamNativeCloudServer is the default API server URL +const DefaultStreamNativeCloudServer = "https://api.streamnative.cloud" + +// GetServer returns the server URL, using the default if not specified +func (s *StreamNativeCloudConnectionSpec) GetServer() string { + if s.Server == "" { + return DefaultStreamNativeCloudServer + } + return s.Server +} + // AuthConfig defines the authentication configuration type AuthConfig struct { // CredentialsRef is the reference to the service account credentials secret diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_apikeys.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_apikeys.yaml index 229c1597..1e265226 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_apikeys.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_apikeys.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeflinkdeployments.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeflinkdeployments.yaml index 68a7f205..e3cd0f48 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeflinkdeployments.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeflinkdeployments.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeworkspaces.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeworkspaces.yaml index ad752f83..98aa6fed 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeworkspaces.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeworkspaces.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarconnections.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarconnections.yaml index 10916619..e5eff823 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarconnections.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarconnections.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarfunctions.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarfunctions.yaml index b901e657..09583bb8 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarfunctions.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarfunctions.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsargeoreplications.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsargeoreplications.yaml index ee30cfc5..bec9a34f 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsargeoreplications.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsargeoreplications.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnamespaces.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnamespaces.yaml index 9cb7eede..5c4f426a 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnamespaces.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnamespaces.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnsisolationpolicies.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnsisolationpolicies.yaml index b7890946..58cfcbec 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnsisolationpolicies.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnsisolationpolicies.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpackages.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpackages.yaml index faa69c52..1287a05d 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpackages.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpackages.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpermissions.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpermissions.yaml index be8d325e..d74e654d 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpermissions.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpermissions.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsinks.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsinks.yaml index 1aff58a4..009afd2c 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsinks.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsinks.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsources.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsources.yaml index dcdf054d..0526f493 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsources.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsources.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartenants.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartenants.yaml index b2c6bc71..ecef9147 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartenants.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartenants.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartopics.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartopics.yaml index f4751e84..8ee290f3 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartopics.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartopics.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_rolebindings.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_rolebindings.yaml index df7e4042..4cd57fb7 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_rolebindings.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_rolebindings.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_secrets.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_secrets.yaml index 570048d6..df54eee6 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_secrets.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_secrets.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccountbindings.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccountbindings.yaml index b6b52f41..100879ae 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccountbindings.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccountbindings.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccounts.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccounts.yaml index c31df86e..ebc492ad 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccounts.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccounts.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_streamnativecloudconnections.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_streamnativecloudconnections.yaml index 51b3ae68..59986ca6 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_streamnativecloudconnections.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_streamnativecloudconnections.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -109,11 +109,11 @@ spec: If not specified, the operator will use the connection name as the organization type: string server: + default: https://api.streamnative.cloud description: Server is the URL of the API server type: string required: - auth - - server type: object status: description: StreamNativeCloudConnectionStatus defines the observed state diff --git a/config/crd/bases/resource.streamnative.io_apikeys.yaml b/config/crd/bases/resource.streamnative.io_apikeys.yaml index 229c1597..1e265226 100644 --- a/config/crd/bases/resource.streamnative.io_apikeys.yaml +++ b/config/crd/bases/resource.streamnative.io_apikeys.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_computeflinkdeployments.yaml b/config/crd/bases/resource.streamnative.io_computeflinkdeployments.yaml index 68a7f205..e3cd0f48 100644 --- a/config/crd/bases/resource.streamnative.io_computeflinkdeployments.yaml +++ b/config/crd/bases/resource.streamnative.io_computeflinkdeployments.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_computeworkspaces.yaml b/config/crd/bases/resource.streamnative.io_computeworkspaces.yaml index ad752f83..98aa6fed 100644 --- a/config/crd/bases/resource.streamnative.io_computeworkspaces.yaml +++ b/config/crd/bases/resource.streamnative.io_computeworkspaces.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarconnections.yaml b/config/crd/bases/resource.streamnative.io_pulsarconnections.yaml index 10916619..e5eff823 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarconnections.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarconnections.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarfunctions.yaml b/config/crd/bases/resource.streamnative.io_pulsarfunctions.yaml index b901e657..09583bb8 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarfunctions.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarfunctions.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsargeoreplications.yaml b/config/crd/bases/resource.streamnative.io_pulsargeoreplications.yaml index ee30cfc5..bec9a34f 100644 --- a/config/crd/bases/resource.streamnative.io_pulsargeoreplications.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsargeoreplications.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarnamespaces.yaml b/config/crd/bases/resource.streamnative.io_pulsarnamespaces.yaml index 9cb7eede..5c4f426a 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarnamespaces.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarnamespaces.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarnsisolationpolicies.yaml b/config/crd/bases/resource.streamnative.io_pulsarnsisolationpolicies.yaml index b7890946..58cfcbec 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarnsisolationpolicies.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarnsisolationpolicies.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarpackages.yaml b/config/crd/bases/resource.streamnative.io_pulsarpackages.yaml index faa69c52..1287a05d 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarpackages.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarpackages.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarpermissions.yaml b/config/crd/bases/resource.streamnative.io_pulsarpermissions.yaml index be8d325e..d74e654d 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarpermissions.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarpermissions.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarsinks.yaml b/config/crd/bases/resource.streamnative.io_pulsarsinks.yaml index 1aff58a4..009afd2c 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarsinks.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarsinks.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarsources.yaml b/config/crd/bases/resource.streamnative.io_pulsarsources.yaml index dcdf054d..0526f493 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarsources.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarsources.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsartenants.yaml b/config/crd/bases/resource.streamnative.io_pulsartenants.yaml index b2c6bc71..ecef9147 100644 --- a/config/crd/bases/resource.streamnative.io_pulsartenants.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsartenants.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsartopics.yaml b/config/crd/bases/resource.streamnative.io_pulsartopics.yaml index f4751e84..8ee290f3 100644 --- a/config/crd/bases/resource.streamnative.io_pulsartopics.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsartopics.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_rolebindings.yaml b/config/crd/bases/resource.streamnative.io_rolebindings.yaml index df7e4042..4cd57fb7 100644 --- a/config/crd/bases/resource.streamnative.io_rolebindings.yaml +++ b/config/crd/bases/resource.streamnative.io_rolebindings.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_secrets.yaml b/config/crd/bases/resource.streamnative.io_secrets.yaml index 570048d6..df54eee6 100644 --- a/config/crd/bases/resource.streamnative.io_secrets.yaml +++ b/config/crd/bases/resource.streamnative.io_secrets.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_serviceaccountbindings.yaml b/config/crd/bases/resource.streamnative.io_serviceaccountbindings.yaml index b6b52f41..100879ae 100644 --- a/config/crd/bases/resource.streamnative.io_serviceaccountbindings.yaml +++ b/config/crd/bases/resource.streamnative.io_serviceaccountbindings.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_serviceaccounts.yaml b/config/crd/bases/resource.streamnative.io_serviceaccounts.yaml index c31df86e..ebc492ad 100644 --- a/config/crd/bases/resource.streamnative.io_serviceaccounts.yaml +++ b/config/crd/bases/resource.streamnative.io_serviceaccounts.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_streamnativecloudconnections.yaml b/config/crd/bases/resource.streamnative.io_streamnativecloudconnections.yaml index 51b3ae68..59986ca6 100644 --- a/config/crd/bases/resource.streamnative.io_streamnativecloudconnections.yaml +++ b/config/crd/bases/resource.streamnative.io_streamnativecloudconnections.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 StreamNative +# Copyright 2026 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -109,11 +109,11 @@ spec: If not specified, the operator will use the connection name as the organization type: string server: + default: https://api.streamnative.cloud description: Server is the URL of the API server type: string required: - auth - - server type: object status: description: StreamNativeCloudConnectionStatus defines the observed state diff --git a/pkg/streamnativecloud/api_connection.go b/pkg/streamnativecloud/api_connection.go index 4a221b30..a68f58eb 100644 --- a/pkg/streamnativecloud/api_connection.go +++ b/pkg/streamnativecloud/api_connection.go @@ -83,7 +83,7 @@ func (c *APIConnection) connect() error { ClientSecret: c.credentials.ClientSecret, TokenURL: config.TokenEndpoint, EndpointParams: url.Values{ - "audience": []string{c.config.Spec.Server}, + "audience": []string{c.config.Spec.GetServer()}, }, } @@ -101,7 +101,7 @@ func (c *APIConnection) Test(ctx context.Context) error { if c.client == nil { return fmt.Errorf("waiting for client") } - req, err := http.NewRequestWithContext(ctx, "GET", c.config.Spec.Server+"/healthz", http.NoBody) + req, err := http.NewRequestWithContext(ctx, "GET", c.config.Spec.GetServer()+"/healthz", http.NoBody) if err != nil { return err } @@ -134,7 +134,7 @@ func (c *APIConnection) NeedsUpdate( if c.credentials == nil { return true } - return c.config.Spec.Server != config.Spec.Server || + return c.config.Spec.GetServer() != config.Spec.GetServer() || c.credentials.ClientID != creds.ClientID || c.credentials.ClientSecret != creds.ClientSecret || c.credentials.IssuerURL != creds.IssuerURL From a67aac4485adb810c16dc696fa9a88d8943c3afb Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Tue, 6 Jan 2026 21:33:29 +0800 Subject: [PATCH 2/4] revert copyright change --- .../crds/resource.streamnative.io_apikeys.yaml | 2 +- .../crds/resource.streamnative.io_computeflinkdeployments.yaml | 2 +- .../crds/resource.streamnative.io_computeworkspaces.yaml | 2 +- .../crds/resource.streamnative.io_pulsarconnections.yaml | 2 +- .../crds/resource.streamnative.io_pulsarfunctions.yaml | 2 +- .../crds/resource.streamnative.io_pulsargeoreplications.yaml | 2 +- .../crds/resource.streamnative.io_pulsarnamespaces.yaml | 2 +- .../resource.streamnative.io_pulsarnsisolationpolicies.yaml | 2 +- .../crds/resource.streamnative.io_pulsarpackages.yaml | 2 +- .../crds/resource.streamnative.io_pulsarpermissions.yaml | 2 +- .../crds/resource.streamnative.io_pulsarsinks.yaml | 2 +- .../crds/resource.streamnative.io_pulsarsources.yaml | 2 +- .../crds/resource.streamnative.io_pulsartenants.yaml | 2 +- .../crds/resource.streamnative.io_pulsartopics.yaml | 2 +- .../crds/resource.streamnative.io_rolebindings.yaml | 2 +- .../crds/resource.streamnative.io_secrets.yaml | 2 +- .../crds/resource.streamnative.io_serviceaccountbindings.yaml | 2 +- .../crds/resource.streamnative.io_serviceaccounts.yaml | 2 +- config/crd/bases/resource.streamnative.io_apikeys.yaml | 2 +- .../bases/resource.streamnative.io_computeflinkdeployments.yaml | 2 +- .../crd/bases/resource.streamnative.io_computeworkspaces.yaml | 2 +- .../crd/bases/resource.streamnative.io_pulsarconnections.yaml | 2 +- config/crd/bases/resource.streamnative.io_pulsarfunctions.yaml | 2 +- .../bases/resource.streamnative.io_pulsargeoreplications.yaml | 2 +- config/crd/bases/resource.streamnative.io_pulsarnamespaces.yaml | 2 +- .../resource.streamnative.io_pulsarnsisolationpolicies.yaml | 2 +- config/crd/bases/resource.streamnative.io_pulsarpackages.yaml | 2 +- .../crd/bases/resource.streamnative.io_pulsarpermissions.yaml | 2 +- config/crd/bases/resource.streamnative.io_pulsarsinks.yaml | 2 +- config/crd/bases/resource.streamnative.io_pulsarsources.yaml | 2 +- config/crd/bases/resource.streamnative.io_pulsartenants.yaml | 2 +- config/crd/bases/resource.streamnative.io_pulsartopics.yaml | 2 +- config/crd/bases/resource.streamnative.io_rolebindings.yaml | 2 +- config/crd/bases/resource.streamnative.io_secrets.yaml | 2 +- .../bases/resource.streamnative.io_serviceaccountbindings.yaml | 2 +- config/crd/bases/resource.streamnative.io_serviceaccounts.yaml | 2 +- 36 files changed, 36 insertions(+), 36 deletions(-) diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_apikeys.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_apikeys.yaml index 1e265226..229c1597 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_apikeys.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_apikeys.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeflinkdeployments.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeflinkdeployments.yaml index e3cd0f48..68a7f205 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeflinkdeployments.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeflinkdeployments.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeworkspaces.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeworkspaces.yaml index 98aa6fed..ad752f83 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeworkspaces.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_computeworkspaces.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarconnections.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarconnections.yaml index e5eff823..10916619 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarconnections.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarconnections.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarfunctions.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarfunctions.yaml index 09583bb8..b901e657 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarfunctions.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarfunctions.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsargeoreplications.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsargeoreplications.yaml index bec9a34f..ee30cfc5 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsargeoreplications.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsargeoreplications.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnamespaces.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnamespaces.yaml index 5c4f426a..9cb7eede 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnamespaces.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnamespaces.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnsisolationpolicies.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnsisolationpolicies.yaml index 58cfcbec..b7890946 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnsisolationpolicies.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnsisolationpolicies.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpackages.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpackages.yaml index 1287a05d..faa69c52 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpackages.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpackages.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpermissions.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpermissions.yaml index d74e654d..be8d325e 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpermissions.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpermissions.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsinks.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsinks.yaml index 009afd2c..1aff58a4 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsinks.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsinks.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsources.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsources.yaml index 0526f493..dcdf054d 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsources.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsources.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartenants.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartenants.yaml index ecef9147..b2c6bc71 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartenants.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartenants.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartopics.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartopics.yaml index 8ee290f3..f4751e84 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartopics.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartopics.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_rolebindings.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_rolebindings.yaml index 4cd57fb7..df7e4042 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_rolebindings.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_rolebindings.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_secrets.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_secrets.yaml index df54eee6..570048d6 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_secrets.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_secrets.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccountbindings.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccountbindings.yaml index 100879ae..b6b52f41 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccountbindings.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccountbindings.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccounts.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccounts.yaml index ebc492ad..c31df86e 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccounts.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_serviceaccounts.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_apikeys.yaml b/config/crd/bases/resource.streamnative.io_apikeys.yaml index 1e265226..229c1597 100644 --- a/config/crd/bases/resource.streamnative.io_apikeys.yaml +++ b/config/crd/bases/resource.streamnative.io_apikeys.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_computeflinkdeployments.yaml b/config/crd/bases/resource.streamnative.io_computeflinkdeployments.yaml index e3cd0f48..68a7f205 100644 --- a/config/crd/bases/resource.streamnative.io_computeflinkdeployments.yaml +++ b/config/crd/bases/resource.streamnative.io_computeflinkdeployments.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_computeworkspaces.yaml b/config/crd/bases/resource.streamnative.io_computeworkspaces.yaml index 98aa6fed..ad752f83 100644 --- a/config/crd/bases/resource.streamnative.io_computeworkspaces.yaml +++ b/config/crd/bases/resource.streamnative.io_computeworkspaces.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarconnections.yaml b/config/crd/bases/resource.streamnative.io_pulsarconnections.yaml index e5eff823..10916619 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarconnections.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarconnections.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarfunctions.yaml b/config/crd/bases/resource.streamnative.io_pulsarfunctions.yaml index 09583bb8..b901e657 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarfunctions.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarfunctions.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsargeoreplications.yaml b/config/crd/bases/resource.streamnative.io_pulsargeoreplications.yaml index bec9a34f..ee30cfc5 100644 --- a/config/crd/bases/resource.streamnative.io_pulsargeoreplications.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsargeoreplications.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarnamespaces.yaml b/config/crd/bases/resource.streamnative.io_pulsarnamespaces.yaml index 5c4f426a..9cb7eede 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarnamespaces.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarnamespaces.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarnsisolationpolicies.yaml b/config/crd/bases/resource.streamnative.io_pulsarnsisolationpolicies.yaml index 58cfcbec..b7890946 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarnsisolationpolicies.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarnsisolationpolicies.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarpackages.yaml b/config/crd/bases/resource.streamnative.io_pulsarpackages.yaml index 1287a05d..faa69c52 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarpackages.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarpackages.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarpermissions.yaml b/config/crd/bases/resource.streamnative.io_pulsarpermissions.yaml index d74e654d..be8d325e 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarpermissions.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarpermissions.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarsinks.yaml b/config/crd/bases/resource.streamnative.io_pulsarsinks.yaml index 009afd2c..1aff58a4 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarsinks.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarsinks.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsarsources.yaml b/config/crd/bases/resource.streamnative.io_pulsarsources.yaml index 0526f493..dcdf054d 100644 --- a/config/crd/bases/resource.streamnative.io_pulsarsources.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsarsources.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsartenants.yaml b/config/crd/bases/resource.streamnative.io_pulsartenants.yaml index ecef9147..b2c6bc71 100644 --- a/config/crd/bases/resource.streamnative.io_pulsartenants.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsartenants.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_pulsartopics.yaml b/config/crd/bases/resource.streamnative.io_pulsartopics.yaml index 8ee290f3..f4751e84 100644 --- a/config/crd/bases/resource.streamnative.io_pulsartopics.yaml +++ b/config/crd/bases/resource.streamnative.io_pulsartopics.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_rolebindings.yaml b/config/crd/bases/resource.streamnative.io_rolebindings.yaml index 4cd57fb7..df7e4042 100644 --- a/config/crd/bases/resource.streamnative.io_rolebindings.yaml +++ b/config/crd/bases/resource.streamnative.io_rolebindings.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_secrets.yaml b/config/crd/bases/resource.streamnative.io_secrets.yaml index df54eee6..570048d6 100644 --- a/config/crd/bases/resource.streamnative.io_secrets.yaml +++ b/config/crd/bases/resource.streamnative.io_secrets.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_serviceaccountbindings.yaml b/config/crd/bases/resource.streamnative.io_serviceaccountbindings.yaml index 100879ae..b6b52f41 100644 --- a/config/crd/bases/resource.streamnative.io_serviceaccountbindings.yaml +++ b/config/crd/bases/resource.streamnative.io_serviceaccountbindings.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_serviceaccounts.yaml b/config/crd/bases/resource.streamnative.io_serviceaccounts.yaml index ebc492ad..c31df86e 100644 --- a/config/crd/bases/resource.streamnative.io_serviceaccounts.yaml +++ b/config/crd/bases/resource.streamnative.io_serviceaccounts.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From 8c83c8bb59ce0839c0e41d3fc159101100fab300 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Tue, 6 Jan 2026 21:36:33 +0800 Subject: [PATCH 3/4] style(crd): correct copyright year from 2026 to 2025 --- .../resource.streamnative.io_streamnativecloudconnections.yaml | 2 +- .../resource.streamnative.io_streamnativecloudconnections.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/pulsar-resources-operator/crds/resource.streamnative.io_streamnativecloudconnections.yaml b/charts/pulsar-resources-operator/crds/resource.streamnative.io_streamnativecloudconnections.yaml index 59986ca6..acb31844 100644 --- a/charts/pulsar-resources-operator/crds/resource.streamnative.io_streamnativecloudconnections.yaml +++ b/charts/pulsar-resources-operator/crds/resource.streamnative.io_streamnativecloudconnections.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config/crd/bases/resource.streamnative.io_streamnativecloudconnections.yaml b/config/crd/bases/resource.streamnative.io_streamnativecloudconnections.yaml index 59986ca6..acb31844 100644 --- a/config/crd/bases/resource.streamnative.io_streamnativecloudconnections.yaml +++ b/config/crd/bases/resource.streamnative.io_streamnativecloudconnections.yaml @@ -1,4 +1,4 @@ -# Copyright 2026 StreamNative +# Copyright 2025 StreamNative # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From 0cf5c5c8fe2a14195c77de0540de7c45b4c85c8c Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Thu, 8 Jan 2026 14:04:26 +0800 Subject: [PATCH 4/4] ci(chart-test): specify version for helm-unittest plugin --- .github/workflows/chart-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chart-test.yml b/.github/workflows/chart-test.yml index 1aa3e083..d66d932f 100644 --- a/.github/workflows/chart-test.yml +++ b/.github/workflows/chart-test.yml @@ -63,7 +63,7 @@ jobs: - name: Install plugin unittest run: | - helm plugin install https://github.com/helm-unittest/helm-unittest + helm plugin install https://github.com/helm-unittest/helm-unittest --version 1.0.3 # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and # yamllint (https://github.com/adrienverge/yamllint) which require Python