From 03270ec5b765049215007fed0ee15f8929065df2 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Mon, 20 Jan 2025 17:20:04 +0100 Subject: [PATCH] chore: add license header to all files --- api/common.go | 16 ++++++++++ api/v1alpha1/common_types.go | 2 +- api/v1alpha1/core_types.go | 2 +- api/v1alpha1/dashboard_types.go | 2 +- api/v1alpha1/groupversion_info.go | 2 +- assets/migrations/migrations.go | 16 ++++++++++ cmd/main.go | 2 +- cmd/manager.go | 2 +- .../controller/apigateway_controller_test.go | 2 +- .../controller/core_db_controller_test.go | 2 +- internal/controller/core_gotrue_controller.go | 16 ++++++++++ internal/controller/core_jwt_controller.go | 2 +- .../controller/core_postgrest_controller.go | 16 ++++++++++ .../controller/dashboard_controller_test.go | 2 +- .../dashboard_pg-meta_controller.go | 2 +- .../controller/dashboard_studio_controller.go | 2 +- internal/controller/object_meta.go | 16 ++++++++++ internal/controller/permissions.go | 16 ++++++++++ internal/controller/pwgen.go | 30 +++++++++---------- internal/controller/suite_test.go | 2 +- internal/controller/utils.go | 16 ++++++++++ internal/controlplane/auth_filters.go | 16 ++++++++++ internal/controlplane/cors.go | 16 ++++++++++ internal/controlplane/endpoints.go | 16 ++++++++++ internal/controlplane/filters.go | 16 ++++++++++ internal/controlplane/gotrue.go | 16 ++++++++++ internal/controlplane/pg-meta.go | 16 ++++++++++ internal/controlplane/postgrest.go | 16 ++++++++++ internal/controlplane/snapshot.go | 16 ++++++++++ internal/controlplane/studio.go | 16 ++++++++++ internal/controlplane/utils.go | 16 ++++++++++ internal/db/migrator.go | 16 ++++++++++ internal/db/roles_manager.go | 16 ++++++++++ internal/errx/closing.go | 16 ++++++++++ internal/jwk/key.go | 16 ++++++++++ internal/jwk/set.go | 16 ++++++++++ internal/meta/labels.go | 2 +- internal/supabase/db_roles.go | 16 ++++++++++ internal/supabase/env.go | 16 ++++++++++ internal/supabase/env_types.go | 16 ++++++++++ internal/supabase/jwt.go | 16 ++++++++++ .../v1alpha1/apigateway_webhook_defaulter.go | 2 +- .../v1alpha1/apigateway_webhook_test.go | 2 +- .../v1alpha1/apigateway_webhook_validator.go | 2 +- .../v1alpha1/core_webhook_defaulter.go | 2 +- .../webhook/v1alpha1/core_webhook_test.go | 2 +- .../v1alpha1/core_webhook_validator.go | 2 +- .../webhook/v1alpha1/dashboard_webhook.go | 2 +- .../v1alpha1/dashboard_webhook_test.go | 2 +- internal/webhook/v1alpha1/setup.go | 16 ++++++++++ .../webhook/v1alpha1/webhook_suite_test.go | 2 +- magefiles/build.go | 16 ++++++++++ magefiles/cleanup.go | 16 ++++++++++ magefiles/commands.go | 16 ++++++++++ magefiles/common.go | 16 ++++++++++ magefiles/generate.go | 16 ++++++++++ magefiles/github.go | 16 ++++++++++ test/e2e/e2e_suite_test.go | 2 +- test/e2e/e2e_test.go | 14 ++++----- test/utils/utils.go | 2 +- 60 files changed, 575 insertions(+), 47 deletions(-) diff --git a/api/common.go b/api/common.go index 4cfaa18..1d0f577 100644 --- a/api/common.go +++ b/api/common.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package api import ( diff --git a/api/v1alpha1/common_types.go b/api/v1alpha1/common_types.go index 181ca0d..512415e 100644 --- a/api/v1alpha1/common_types.go +++ b/api/v1alpha1/common_types.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/api/v1alpha1/core_types.go b/api/v1alpha1/core_types.go index 5cc8899..4f2fe2c 100644 --- a/api/v1alpha1/core_types.go +++ b/api/v1alpha1/core_types.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/api/v1alpha1/dashboard_types.go b/api/v1alpha1/dashboard_types.go index b175405..91e805a 100644 --- a/api/v1alpha1/dashboard_types.go +++ b/api/v1alpha1/dashboard_types.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/api/v1alpha1/groupversion_info.go b/api/v1alpha1/groupversion_info.go index ab473f4..e4068f2 100644 --- a/api/v1alpha1/groupversion_info.go +++ b/api/v1alpha1/groupversion_info.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/assets/migrations/migrations.go b/assets/migrations/migrations.go index 1c800fc..d6f97bb 100644 --- a/assets/migrations/migrations.go +++ b/assets/migrations/migrations.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package migrations import ( diff --git a/cmd/main.go b/cmd/main.go index b298498..7f35392 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/cmd/manager.go b/cmd/manager.go index 8b96828..37edf3c 100644 --- a/cmd/manager.go +++ b/cmd/manager.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/controller/apigateway_controller_test.go b/internal/controller/apigateway_controller_test.go index f92a783..601044e 100644 --- a/internal/controller/apigateway_controller_test.go +++ b/internal/controller/apigateway_controller_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/controller/core_db_controller_test.go b/internal/controller/core_db_controller_test.go index 9a2aa5c..8fdba71 100644 --- a/internal/controller/core_db_controller_test.go +++ b/internal/controller/core_db_controller_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/controller/core_gotrue_controller.go b/internal/controller/core_gotrue_controller.go index 5d92bd6..33052d0 100644 --- a/internal/controller/core_gotrue_controller.go +++ b/internal/controller/core_gotrue_controller.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controller import ( diff --git a/internal/controller/core_jwt_controller.go b/internal/controller/core_jwt_controller.go index d0db24e..ffd93e5 100644 --- a/internal/controller/core_jwt_controller.go +++ b/internal/controller/core_jwt_controller.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/controller/core_postgrest_controller.go b/internal/controller/core_postgrest_controller.go index dbc1751..4acb962 100644 --- a/internal/controller/core_postgrest_controller.go +++ b/internal/controller/core_postgrest_controller.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controller import ( diff --git a/internal/controller/dashboard_controller_test.go b/internal/controller/dashboard_controller_test.go index 97bc3b9..110852d 100644 --- a/internal/controller/dashboard_controller_test.go +++ b/internal/controller/dashboard_controller_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/controller/dashboard_pg-meta_controller.go b/internal/controller/dashboard_pg-meta_controller.go index 0ca6db3..1e9e9e5 100644 --- a/internal/controller/dashboard_pg-meta_controller.go +++ b/internal/controller/dashboard_pg-meta_controller.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/controller/dashboard_studio_controller.go b/internal/controller/dashboard_studio_controller.go index 097ed38..544556b 100644 --- a/internal/controller/dashboard_studio_controller.go +++ b/internal/controller/dashboard_studio_controller.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/controller/object_meta.go b/internal/controller/object_meta.go index dfb805e..53a52c0 100644 --- a/internal/controller/object_meta.go +++ b/internal/controller/object_meta.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controller import ( diff --git a/internal/controller/permissions.go b/internal/controller/permissions.go index 2f332c8..5a704b0 100644 --- a/internal/controller/permissions.go +++ b/internal/controller/permissions.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controller // +kubebuilder:rbac:groups=supabase.k8s.icb4dc0.de,resources=cores,verbs=get;list;watch;create;update;patch;delete diff --git a/internal/controller/pwgen.go b/internal/controller/pwgen.go index d59f0bc..5c7d762 100644 --- a/internal/controller/pwgen.go +++ b/internal/controller/pwgen.go @@ -1,18 +1,18 @@ -// /* -// Copyright 2025 Peter Kurfer. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// */ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package controller diff --git a/internal/controller/suite_test.go b/internal/controller/suite_test.go index 8f2fde0..d3f0304 100644 --- a/internal/controller/suite_test.go +++ b/internal/controller/suite_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/controller/utils.go b/internal/controller/utils.go index cdcd1d1..8d9c249 100644 --- a/internal/controller/utils.go +++ b/internal/controller/utils.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controller import ( diff --git a/internal/controlplane/auth_filters.go b/internal/controlplane/auth_filters.go index 31a4995..7305080 100644 --- a/internal/controlplane/auth_filters.go +++ b/internal/controlplane/auth_filters.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controlplane import ( diff --git a/internal/controlplane/cors.go b/internal/controlplane/cors.go index 447e2b1..5a2512e 100644 --- a/internal/controlplane/cors.go +++ b/internal/controlplane/cors.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controlplane import ( diff --git a/internal/controlplane/endpoints.go b/internal/controlplane/endpoints.go index c7149bc..355cfb0 100644 --- a/internal/controlplane/endpoints.go +++ b/internal/controlplane/endpoints.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controlplane import ( diff --git a/internal/controlplane/filters.go b/internal/controlplane/filters.go index 2e58761..1c2b1ed 100644 --- a/internal/controlplane/filters.go +++ b/internal/controlplane/filters.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controlplane const ( diff --git a/internal/controlplane/gotrue.go b/internal/controlplane/gotrue.go index 00dd1a7..53a8ad8 100644 --- a/internal/controlplane/gotrue.go +++ b/internal/controlplane/gotrue.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controlplane import ( diff --git a/internal/controlplane/pg-meta.go b/internal/controlplane/pg-meta.go index 1b5b857..932ca52 100644 --- a/internal/controlplane/pg-meta.go +++ b/internal/controlplane/pg-meta.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controlplane import ( diff --git a/internal/controlplane/postgrest.go b/internal/controlplane/postgrest.go index 078d8da..cdbbd62 100644 --- a/internal/controlplane/postgrest.go +++ b/internal/controlplane/postgrest.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controlplane import ( diff --git a/internal/controlplane/snapshot.go b/internal/controlplane/snapshot.go index 004ebd5..1351562 100644 --- a/internal/controlplane/snapshot.go +++ b/internal/controlplane/snapshot.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controlplane import ( diff --git a/internal/controlplane/studio.go b/internal/controlplane/studio.go index eea2c3a..1aff3b3 100644 --- a/internal/controlplane/studio.go +++ b/internal/controlplane/studio.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controlplane type StudioCluster struct { diff --git a/internal/controlplane/utils.go b/internal/controlplane/utils.go index eca6f79..eecf77d 100644 --- a/internal/controlplane/utils.go +++ b/internal/controlplane/utils.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controlplane import ( diff --git a/internal/db/migrator.go b/internal/db/migrator.go index a42c478..b1eeafa 100644 --- a/internal/db/migrator.go +++ b/internal/db/migrator.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package db import ( diff --git a/internal/db/roles_manager.go b/internal/db/roles_manager.go index 19ede6c..6480d40 100644 --- a/internal/db/roles_manager.go +++ b/internal/db/roles_manager.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package db import ( diff --git a/internal/errx/closing.go b/internal/errx/closing.go index 0fa7b7f..df4ac83 100644 --- a/internal/errx/closing.go +++ b/internal/errx/closing.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package errx import ( diff --git a/internal/jwk/key.go b/internal/jwk/key.go index c02efbc..d1ef11c 100644 --- a/internal/jwk/key.go +++ b/internal/jwk/key.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package jwk import ( diff --git a/internal/jwk/set.go b/internal/jwk/set.go index 4b7d971..5c316a7 100644 --- a/internal/jwk/set.go +++ b/internal/jwk/set.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package jwk type Key interface { diff --git a/internal/meta/labels.go b/internal/meta/labels.go index feda623..ecb0ebf 100644 --- a/internal/meta/labels.go +++ b/internal/meta/labels.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/supabase/db_roles.go b/internal/supabase/db_roles.go index f0ccd60..91df1b6 100644 --- a/internal/supabase/db_roles.go +++ b/internal/supabase/db_roles.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package supabase import "strings" diff --git a/internal/supabase/env.go b/internal/supabase/env.go index f863f12..78d39f2 100644 --- a/internal/supabase/env.go +++ b/internal/supabase/env.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package supabase import ( diff --git a/internal/supabase/env_types.go b/internal/supabase/env_types.go index 9932f5b..04bcadc 100644 --- a/internal/supabase/env_types.go +++ b/internal/supabase/env_types.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package supabase import ( diff --git a/internal/supabase/jwt.go b/internal/supabase/jwt.go index 8139692..6cd74a7 100644 --- a/internal/supabase/jwt.go +++ b/internal/supabase/jwt.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package supabase import ( diff --git a/internal/webhook/v1alpha1/apigateway_webhook_defaulter.go b/internal/webhook/v1alpha1/apigateway_webhook_defaulter.go index 5619448..fd12df3 100644 --- a/internal/webhook/v1alpha1/apigateway_webhook_defaulter.go +++ b/internal/webhook/v1alpha1/apigateway_webhook_defaulter.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/webhook/v1alpha1/apigateway_webhook_test.go b/internal/webhook/v1alpha1/apigateway_webhook_test.go index 2867512..75a6215 100644 --- a/internal/webhook/v1alpha1/apigateway_webhook_test.go +++ b/internal/webhook/v1alpha1/apigateway_webhook_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/webhook/v1alpha1/apigateway_webhook_validator.go b/internal/webhook/v1alpha1/apigateway_webhook_validator.go index 20469d6..77b9350 100644 --- a/internal/webhook/v1alpha1/apigateway_webhook_validator.go +++ b/internal/webhook/v1alpha1/apigateway_webhook_validator.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/webhook/v1alpha1/core_webhook_defaulter.go b/internal/webhook/v1alpha1/core_webhook_defaulter.go index 410fb4c..f588bcd 100644 --- a/internal/webhook/v1alpha1/core_webhook_defaulter.go +++ b/internal/webhook/v1alpha1/core_webhook_defaulter.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/webhook/v1alpha1/core_webhook_test.go b/internal/webhook/v1alpha1/core_webhook_test.go index 8a77d64..b297861 100644 --- a/internal/webhook/v1alpha1/core_webhook_test.go +++ b/internal/webhook/v1alpha1/core_webhook_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/webhook/v1alpha1/core_webhook_validator.go b/internal/webhook/v1alpha1/core_webhook_validator.go index e609e14..ebaed8a 100644 --- a/internal/webhook/v1alpha1/core_webhook_validator.go +++ b/internal/webhook/v1alpha1/core_webhook_validator.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/webhook/v1alpha1/dashboard_webhook.go b/internal/webhook/v1alpha1/dashboard_webhook.go index 02df0e6..c7de5d5 100644 --- a/internal/webhook/v1alpha1/dashboard_webhook.go +++ b/internal/webhook/v1alpha1/dashboard_webhook.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/webhook/v1alpha1/dashboard_webhook_test.go b/internal/webhook/v1alpha1/dashboard_webhook_test.go index 07f4f99..fa3673a 100644 --- a/internal/webhook/v1alpha1/dashboard_webhook_test.go +++ b/internal/webhook/v1alpha1/dashboard_webhook_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/internal/webhook/v1alpha1/setup.go b/internal/webhook/v1alpha1/setup.go index 34e17fa..685ec21 100644 --- a/internal/webhook/v1alpha1/setup.go +++ b/internal/webhook/v1alpha1/setup.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1alpha1 import ( diff --git a/internal/webhook/v1alpha1/webhook_suite_test.go b/internal/webhook/v1alpha1/webhook_suite_test.go index 6f104d5..c0d6967 100644 --- a/internal/webhook/v1alpha1/webhook_suite_test.go +++ b/internal/webhook/v1alpha1/webhook_suite_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/magefiles/build.go b/magefiles/build.go index eae23d8..d01b75b 100644 --- a/magefiles/build.go +++ b/magefiles/build.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/magefiles/cleanup.go b/magefiles/cleanup.go index 0e9ae0a..f14573d 100644 --- a/magefiles/cleanup.go +++ b/magefiles/cleanup.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import "github.com/magefile/mage/mg" diff --git a/magefiles/commands.go b/magefiles/commands.go index f0946b0..f014dd9 100644 --- a/magefiles/commands.go +++ b/magefiles/commands.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/magefiles/common.go b/magefiles/common.go index 0827ae1..a1854a4 100644 --- a/magefiles/common.go +++ b/magefiles/common.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/magefiles/generate.go b/magefiles/generate.go index 868bca8..b74515e 100644 --- a/magefiles/generate.go +++ b/magefiles/generate.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/magefiles/github.go b/magefiles/github.go index c6d5198..d7bcc78 100644 --- a/magefiles/github.go +++ b/magefiles/github.go @@ -1,3 +1,19 @@ +/* +Copyright 2025 Peter Kurfer. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/test/e2e/e2e_suite_test.go b/test/e2e/e2e_suite_test.go index 87d3a6b..b5e4381 100644 --- a/test/e2e/e2e_suite_test.go +++ b/test/e2e/e2e_suite_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. 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/test/e2e/e2e_test.go b/test/e2e/e2e_test.go index 5efc501..4cfe033 100644 --- a/test/e2e/e2e_test.go +++ b/test/e2e/e2e_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -93,27 +93,27 @@ var _ = Describe("Manager", Ordered, func() { cmd := exec.Command("kubectl", "logs", controllerPodName, "-n", namespace) controllerLogs, err := utils.Run(cmd) if err == nil { - _, _ = fmt.Fprintf(GinkgoWriter, fmt.Sprintf("Controller logs:\n %s", controllerLogs)) + _, _ = fmt.Fprint(GinkgoWriter, "%s", fmt.Sprintf("Controller logs:\n %s", controllerLogs)) } else { - _, _ = fmt.Fprintf(GinkgoWriter, fmt.Sprintf("Failed to get Controller logs: %s", err)) + _, _ = fmt.Fprint(GinkgoWriter, "%s", fmt.Sprintf("Failed to get Controller logs: %s", err)) } By("Fetching Kubernetes events") cmd = exec.Command("kubectl", "get", "events", "-n", namespace, "--sort-by=.lastTimestamp") eventsOutput, err := utils.Run(cmd) if err == nil { - _, _ = fmt.Fprintf(GinkgoWriter, fmt.Sprintf("Kubernetes events:\n%s", eventsOutput)) + _, _ = fmt.Fprint(GinkgoWriter, "%s", fmt.Sprintf("Kubernetes events:\n%s", eventsOutput)) } else { - _, _ = fmt.Fprintf(GinkgoWriter, fmt.Sprintf("Failed to get Kubernetes events: %s", err)) + _, _ = fmt.Fprint(GinkgoWriter, "%s", fmt.Sprintf("Failed to get Kubernetes events: %s", err)) } By("Fetching curl-metrics logs") cmd = exec.Command("kubectl", "logs", "curl-metrics", "-n", namespace) metricsOutput, err := utils.Run(cmd) if err == nil { - _, _ = fmt.Fprintf(GinkgoWriter, fmt.Sprintf("Metrics logs:\n %s", metricsOutput)) + _, _ = fmt.Fprint(GinkgoWriter, "%s", fmt.Sprintf("Metrics logs:\n %s", metricsOutput)) } else { - _, _ = fmt.Fprintf(GinkgoWriter, fmt.Sprintf("Failed to get curl-metrics logs: %s", err)) + _, _ = fmt.Fprint(GinkgoWriter, "%s", fmt.Sprintf("Failed to get curl-metrics logs: %s", err)) } By("Fetching controller manager pod description") diff --git a/test/utils/utils.go b/test/utils/utils.go index 528c6d7..a6f6a70 100644 --- a/test/utils/utils.go +++ b/test/utils/utils.go @@ -1,5 +1,5 @@ /* -Copyright 2024 Peter Kurfer. +Copyright 2025 Peter Kurfer. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.