From 36822833520b1e23159a2fa9c81ca84ee472299d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20B=C3=A4hler?= Date: Fri, 13 Jun 2025 07:31:04 +0200 Subject: [PATCH] chore: add license headers (#1504) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: add nwa Signed-off-by: Oliver Bähler * chore: update helm-schema version Signed-off-by: Oliver Bähler * chore: update helm-schema version Signed-off-by: Oliver Bähler --------- Signed-off-by: Oliver Bähler --- .golangci.yaml | 2 +- .nwa-config | 14 + Makefile | 19 +- api/v1beta1/custom_resource_quota.go | 2 +- api/v1beta1/deny_wildcard.go | 2 +- api/v1beta1/groupversion_info.go | 2 +- api/v1beta1/ingress_options.go | 2 +- api/v1beta1/namespace_options.go | 2 +- api/v1beta1/owner.go | 2 +- api/v1beta1/owner_list.go | 2 +- api/v1beta1/owner_list_test.go | 2 +- api/v1beta1/owner_role.go | 2 +- api/v1beta1/service_allowed_types.go | 2 +- api/v1beta1/service_options.go | 2 +- api/v1beta1/tenant_func.go | 2 +- api/v1beta1/tenant_status.go | 2 +- api/v1beta1/tenant_types.go | 2 +- api/v1beta1/tenant_webhook.go | 2 +- api/v1beta2/additional_role_bindings.go | 2 +- api/v1beta2/capsuleconfiguration_types.go | 2 +- api/v1beta2/custom_resource_quota.go | 2 +- api/v1beta2/gateway_options.go | 2 +- api/v1beta2/groupversion_info.go | 2 +- api/v1beta2/ingress_options.go | 2 +- api/v1beta2/namespace_options.go | 2 +- api/v1beta2/owner.go | 2 +- api/v1beta2/owner_list.go | 2 +- api/v1beta2/owner_list_test.go | 2 +- api/v1beta2/resourcepool_func.go | 2 +- api/v1beta2/resourcepool_func_test.go | 3 + api/v1beta2/resourcepool_status.go | 2 +- api/v1beta2/resourcepool_types.go | 2 +- api/v1beta2/resourcepoolclaim_func.go | 2 +- api/v1beta2/resourcepoolclaim_func_test.go | 2 +- api/v1beta2/resourcepoolclaim_types.go | 2 +- api/v1beta2/tenant_annotations.go | 2 +- api/v1beta2/tenant_conversion_hub.go | 2 +- api/v1beta2/tenant_func.go | 2 +- api/v1beta2/tenant_func_test.go | 2 +- api/v1beta2/tenant_labels.go | 2 +- api/v1beta2/tenant_status.go | 2 +- api/v1beta2/tenant_types.go | 2 +- api/v1beta2/tenantresource_global.go | 2 +- api/v1beta2/tenantresource_namespaced.go | 2 +- api/v1beta2/tenantresource_types.go | 2 +- charts/capsule/values.schema.json | 548 ++++++++++-------- cmd/main.go | 2 +- cmd/version.go | 2 +- controllers/config/manager.go | 2 +- controllers/pod/errors.go | 2 +- controllers/pod/metadata.go | 2 +- controllers/pv/controller.go | 2 +- controllers/rbac/const.go | 2 +- controllers/rbac/manager.go | 2 +- controllers/resourcepools/claim_controller.go | 2 +- controllers/resourcepools/manager.go | 2 +- controllers/resourcepools/pool_controller.go | 2 +- controllers/resources/global.go | 2 +- controllers/resources/namespaced.go | 2 +- controllers/resources/processor.go | 2 +- controllers/servicelabels/abstract.go | 2 +- controllers/servicelabels/endpoint_slices.go | 2 +- controllers/servicelabels/errors.go | 2 +- controllers/servicelabels/service.go | 2 +- controllers/tenant/annotations.go | 2 +- controllers/tenant/limitranges.go | 2 +- controllers/tenant/manager.go | 2 +- controllers/tenant/metadata.go | 2 +- controllers/tenant/namespaces.go | 2 +- controllers/tenant/networkpolicies.go | 2 +- controllers/tenant/resourcequotas.go | 2 +- controllers/tenant/resourcequotas_quota.go | 2 +- controllers/tenant/rolebindings.go | 2 +- controllers/tenant/utils.go | 2 +- controllers/tls/errors.go | 2 +- controllers/tls/manager.go | 2 +- controllers/utils/name_matching.go | 2 +- pkg/api/additional_metadata.go | 2 +- pkg/api/additional_role_bindings.go | 2 +- pkg/api/allowed_list.go | 2 +- pkg/api/allowed_list_test.go | 2 +- pkg/api/annotations.go | 2 +- pkg/api/exhaustion.go | 2 +- pkg/api/external_service_ips.go | 2 +- pkg/api/forbidden_list.go | 2 +- pkg/api/forbidden_list_test.go | 5 +- pkg/api/hostname_collision_scope.go | 2 +- pkg/api/image_pull_policy.go | 2 +- pkg/api/limit_ranges.go | 2 +- pkg/api/metadata_const.go | 2 +- pkg/api/network_policy.go | 2 +- pkg/api/pod_options.go | 2 +- pkg/api/resource_quota.go | 2 +- pkg/api/selectors.go | 2 +- pkg/api/service_allowed_types.go | 2 +- pkg/api/service_options.go | 2 +- pkg/api/status.go | 2 +- pkg/api/status_namespaces.go | 2 +- pkg/api/tenant_roles.go | 2 +- pkg/cert/ca.go | 2 +- pkg/cert/ca_test.go | 2 +- pkg/cert/errors.go | 2 +- pkg/cert/options.go | 2 +- pkg/configuration/client.go | 2 +- pkg/configuration/configuration.go | 2 +- pkg/indexer/indexer.go | 2 +- pkg/indexer/ingress/hostname_path.go | 2 +- pkg/indexer/ingress/utils.go | 2 +- pkg/indexer/namespace/namespaces.go | 2 +- pkg/indexer/resourcepool/claim.go | 2 +- pkg/indexer/resourcepool/namespaces.go | 2 +- pkg/indexer/tenant/namespaces.go | 2 +- pkg/indexer/tenant/owner.go | 2 +- pkg/indexer/tenantresource/constants.go | 2 +- pkg/indexer/tenantresource/global.go | 2 +- pkg/indexer/tenantresource/local.go | 2 +- pkg/meta/annotations.go | 2 +- pkg/meta/conditions.go | 2 +- pkg/meta/finalizers.go | 2 +- pkg/meta/labels.go | 2 +- pkg/meta/ownerreference.go | 2 +- pkg/meta/ownerreference_test.go | 3 + pkg/metrics/claim_recorder.go | 3 +- pkg/metrics/pool_recorder.go | 8 +- pkg/metrics/tenant_recorder.go | 2 +- pkg/metrics/utils.go | 2 +- pkg/utils/errors.go | 2 +- pkg/utils/names.go | 2 +- pkg/utils/namespace_selector.go | 2 +- pkg/utils/node_selector.go | 2 +- pkg/utils/owner.go | 2 +- pkg/utils/reference.go | 2 +- pkg/utils/tenant_labels.go | 2 +- pkg/utils/user_group.go | 2 +- pkg/utils/user_group_test.go | 2 +- pkg/webhook/defaults/errors.go | 2 +- pkg/webhook/defaults/gateway.go | 2 +- pkg/webhook/defaults/handler.go | 2 +- pkg/webhook/defaults/ingress.go | 2 +- pkg/webhook/defaults/pods.go | 2 +- pkg/webhook/defaults/storage.go | 2 +- pkg/webhook/gateway/errors.go | 2 +- pkg/webhook/gateway/utils.go | 2 +- pkg/webhook/gateway/validate_class.go | 2 +- pkg/webhook/handler.go | 2 +- pkg/webhook/ingress/errors.go | 2 +- pkg/webhook/ingress/types.go | 2 +- pkg/webhook/ingress/utils.go | 2 +- pkg/webhook/ingress/validate_class.go | 2 +- pkg/webhook/ingress/validate_collision.go | 2 +- pkg/webhook/ingress/validate_hostnames.go | 2 +- pkg/webhook/ingress/validate_wildcard.go | 2 +- pkg/webhook/namespace/mutation/cordoning.go | 2 +- pkg/webhook/namespace/mutation/metadata.go | 2 +- .../namespace/mutation/ownerreference.go | 2 +- pkg/webhook/namespace/mutation/utils.go | 2 +- pkg/webhook/namespace/validation/errors.go | 2 +- pkg/webhook/namespace/validation/freezed.go | 2 +- pkg/webhook/namespace/validation/patch.go | 2 +- pkg/webhook/namespace/validation/prefix.go | 2 +- pkg/webhook/namespace/validation/quota.go | 2 +- .../namespace/validation/user_metadata.go | 2 +- pkg/webhook/networkpolicy/validating.go | 2 +- pkg/webhook/node/errors.go | 2 +- pkg/webhook/node/user_metadata.go | 2 +- pkg/webhook/pod/containerregistry.go | 2 +- pkg/webhook/pod/containerregistry_errors.go | 2 +- pkg/webhook/pod/containerregistry_registry.go | 2 +- pkg/webhook/pod/imagepullpolicy.go | 2 +- pkg/webhook/pod/imagepullpolicy_errors.go | 2 +- pkg/webhook/pod/imagepullpolicy_pullpolicy.go | 2 +- pkg/webhook/pod/priorityclass.go | 2 +- pkg/webhook/pod/priorityclass_errors.go | 2 +- pkg/webhook/pod/runtimeclass.go | 2 +- pkg/webhook/pod/runtimeclass_errors.go | 2 +- pkg/webhook/pvc/errors.go | 2 +- pkg/webhook/pvc/pv.go | 2 +- pkg/webhook/pvc/validating.go | 2 +- pkg/webhook/resourcepool/claim_mutating.go | 3 +- pkg/webhook/resourcepool/claim_validating.go | 3 +- pkg/webhook/resourcepool/pool_mutating.go | 3 +- pkg/webhook/resourcepool/pool_validation.go | 3 +- pkg/webhook/route/cordoning.go | 2 +- pkg/webhook/route/customresources.go | 2 +- pkg/webhook/route/defaults.go | 2 +- pkg/webhook/route/gateway.go | 2 +- pkg/webhook/route/ingresses.go | 2 +- pkg/webhook/route/namespaces.go | 2 +- pkg/webhook/route/networkpolicies.go | 2 +- pkg/webhook/route/node.go | 2 +- pkg/webhook/route/ownerreference.go | 2 +- pkg/webhook/route/pods.go | 2 +- pkg/webhook/route/pvc.go | 2 +- pkg/webhook/route/resourcepool.go | 2 +- pkg/webhook/route/services.go | 2 +- pkg/webhook/route/tenantresource_objs.go | 2 +- pkg/webhook/route/tenants.go | 2 +- pkg/webhook/router.go | 2 +- pkg/webhook/service/errors.go | 2 +- pkg/webhook/service/validating.go | 2 +- pkg/webhook/tenant/containerregistry_regex.go | 2 +- pkg/webhook/tenant/cordoning.go | 2 +- pkg/webhook/tenant/custom_resource_quota.go | 2 +- .../tenant/custom_resource_quota_errors.go | 2 +- .../tenant/forbidden_annotations_regex.go | 2 +- pkg/webhook/tenant/freezed_emitter.go | 2 +- pkg/webhook/tenant/hostname_regex.go | 2 +- pkg/webhook/tenant/ingressclass_regex.go | 2 +- pkg/webhook/tenant/metadata.go | 2 +- pkg/webhook/tenant/name.go | 2 +- pkg/webhook/tenant/protected.go | 2 +- pkg/webhook/tenant/rolebindings_regex.go | 2 +- pkg/webhook/tenant/serviceaccount_format.go | 2 +- pkg/webhook/tenant/storageclass_regex.go | 2 +- pkg/webhook/tenantresource/objects.go | 2 +- pkg/webhook/utils/error.go | 2 +- pkg/webhook/utils/in_capsule_groups.go | 2 +- pkg/webhook/utils/is_capsule_user.go | 2 +- pkg/webhook/utils/is_tenant_owner.go | 2 +- pkg/webhook/utils/kubernetes_version.go | 2 +- pkg/webhook/utils/resources.go | 2 +- pkg/webhook/utils/tenant_by_field.go | 2 +- pkg/webhook/webhook.go | 2 +- 223 files changed, 562 insertions(+), 475 deletions(-) create mode 100644 .nwa-config diff --git a/.golangci.yaml b/.golangci.yaml index 6fac76e8..9ec935ee 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -35,7 +35,7 @@ linters: min-occurrences: 2 goheader: template: |- - Copyright 2020-2023 Project Capsule Authors. + Copyright 2020-2025 Project Capsule Authors SPDX-License-Identifier: Apache-2.0 inamedparam: skip-single-param: true diff --git a/.nwa-config b/.nwa-config new file mode 100644 index 00000000..a66d10bf --- /dev/null +++ b/.nwa-config @@ -0,0 +1,14 @@ +nwa: + cmd: "update" + holder: "Project Capsule Authors" + year: "2020-2025" + spdxids: "Apache-2.0" + path: + - "pkg/**/*.go" + - "cmd/**/*.go" + - "api/**/*.go" + - "controllers/**/*.go" + - "main.go" + mute: false + verbose: true + fuzzy: true diff --git a/Makefile b/Makefile index a1687e9e..d80cad6b 100644 --- a/Makefile +++ b/Makefile @@ -68,6 +68,11 @@ manifests: generate generate: controller-gen $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..." + +# Generate License Header +license-headers: nwa + $(NWA) config + # Helm SRC_ROOT = $(shell git rev-parse --show-toplevel) @@ -82,7 +87,7 @@ helm-lint: ct @$(CT) lint --config .github/configs/ct.yaml --validate-yaml=false --all --debug helm-schema: helm-plugin-schema - cd charts/capsule && $(HELM) schema -output values.schema.json + cd charts/capsule && $(HELM) schema --use-helm-docs helm-test: HELM_KIND_CONFIG ?= "" helm-test: kind @@ -218,8 +223,13 @@ goimports: # Linting code as PR is expecting .PHONY: golint golint: golangci-lint + $(GOLANGCI_LINT) run -c .golangci.yaml --verbose + +.PHONY: golint-fix +golint-fix: golangci-lint $(GOLANGCI_LINT) run -c .golangci.yaml --verbose --fix + # Running e2e tests in a KinD instance .PHONY: e2e e2e: ginkgo @@ -365,6 +375,13 @@ ko: @test -s $(KO) && $(KO) -h | grep -q $(KO_VERSION) || \ $(call go-install-tool,$(KO),github.com/$(KO_LOOKUP)@$(KO_VERSION)) +NWA := $(LOCALBIN)/nwa +NWA_VERSION := v0.7.3 +NWA_LOOKUP := B1NARY-GR0UP/nwa +nwa: + @test -s $(NWA) && $(NWA) -h | grep -q $(NWA_VERSION) || \ + $(call go-install-tool,$(NWA),github.com/$(NWA_LOOKUP)@$(NWA_VERSION)) + GOLANGCI_LINT := $(LOCALBIN)/golangci-lint GOLANGCI_LINT_VERSION := v2.1.6 GOLANGCI_LINT_LOOKUP := golangci/golangci-lint diff --git a/api/v1beta1/custom_resource_quota.go b/api/v1beta1/custom_resource_quota.go index 3f836b40..d8991686 100644 --- a/api/v1beta1/custom_resource_quota.go +++ b/api/v1beta1/custom_resource_quota.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta1/deny_wildcard.go b/api/v1beta1/deny_wildcard.go index 61668da4..3e20bae9 100644 --- a/api/v1beta1/deny_wildcard.go +++ b/api/v1beta1/deny_wildcard.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta1/groupversion_info.go b/api/v1beta1/groupversion_info.go index dae55b6a..4882f2d1 100644 --- a/api/v1beta1/groupversion_info.go +++ b/api/v1beta1/groupversion_info.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 // Package v1beta1 contains API Schema definitions for the capsule v1beta1 API group diff --git a/api/v1beta1/ingress_options.go b/api/v1beta1/ingress_options.go index 5e584424..0028212c 100644 --- a/api/v1beta1/ingress_options.go +++ b/api/v1beta1/ingress_options.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta1/namespace_options.go b/api/v1beta1/namespace_options.go index f924f322..5128dbd9 100644 --- a/api/v1beta1/namespace_options.go +++ b/api/v1beta1/namespace_options.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta1/owner.go b/api/v1beta1/owner.go index ca2f89a0..aec851ae 100644 --- a/api/v1beta1/owner.go +++ b/api/v1beta1/owner.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta1/owner_list.go b/api/v1beta1/owner_list.go index daa0ba9b..37b455b7 100644 --- a/api/v1beta1/owner_list.go +++ b/api/v1beta1/owner_list.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta1/owner_list_test.go b/api/v1beta1/owner_list_test.go index 296cce15..d2d4fd9f 100644 --- a/api/v1beta1/owner_list_test.go +++ b/api/v1beta1/owner_list_test.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta1/owner_role.go b/api/v1beta1/owner_role.go index 9cc4f5cc..e1f2f862 100644 --- a/api/v1beta1/owner_role.go +++ b/api/v1beta1/owner_role.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta1/service_allowed_types.go b/api/v1beta1/service_allowed_types.go index 8e3cfe4a..a28b90da 100644 --- a/api/v1beta1/service_allowed_types.go +++ b/api/v1beta1/service_allowed_types.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta1/service_options.go b/api/v1beta1/service_options.go index 4322588e..04a23b29 100644 --- a/api/v1beta1/service_options.go +++ b/api/v1beta1/service_options.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta1/tenant_func.go b/api/v1beta1/tenant_func.go index 03e898b4..a99bc54e 100644 --- a/api/v1beta1/tenant_func.go +++ b/api/v1beta1/tenant_func.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta1/tenant_status.go b/api/v1beta1/tenant_status.go index edbc85ac..69df9a5e 100644 --- a/api/v1beta1/tenant_status.go +++ b/api/v1beta1/tenant_status.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta1/tenant_types.go b/api/v1beta1/tenant_types.go index 5f9de077..86a939b5 100644 --- a/api/v1beta1/tenant_types.go +++ b/api/v1beta1/tenant_types.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta1/tenant_webhook.go b/api/v1beta1/tenant_webhook.go index 2c21925a..34e352a1 100644 --- a/api/v1beta1/tenant_webhook.go +++ b/api/v1beta1/tenant_webhook.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta1 diff --git a/api/v1beta2/additional_role_bindings.go b/api/v1beta2/additional_role_bindings.go index dd2f5cbe..bfc85880 100644 --- a/api/v1beta2/additional_role_bindings.go +++ b/api/v1beta2/additional_role_bindings.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/capsuleconfiguration_types.go b/api/v1beta2/capsuleconfiguration_types.go index c1273457..9f1f2e3d 100644 --- a/api/v1beta2/capsuleconfiguration_types.go +++ b/api/v1beta2/capsuleconfiguration_types.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/custom_resource_quota.go b/api/v1beta2/custom_resource_quota.go index 3be69020..dd68d2fd 100644 --- a/api/v1beta2/custom_resource_quota.go +++ b/api/v1beta2/custom_resource_quota.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/gateway_options.go b/api/v1beta2/gateway_options.go index 148d712c..296a0238 100644 --- a/api/v1beta2/gateway_options.go +++ b/api/v1beta2/gateway_options.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/groupversion_info.go b/api/v1beta2/groupversion_info.go index 61fe96f8..6ddda2b2 100644 --- a/api/v1beta2/groupversion_info.go +++ b/api/v1beta2/groupversion_info.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 // Package v1beta2 contains API Schema definitions for the capsule v1beta2 API group diff --git a/api/v1beta2/ingress_options.go b/api/v1beta2/ingress_options.go index 29c09c0d..3779372a 100644 --- a/api/v1beta2/ingress_options.go +++ b/api/v1beta2/ingress_options.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/namespace_options.go b/api/v1beta2/namespace_options.go index e0a872c5..0818890d 100644 --- a/api/v1beta2/namespace_options.go +++ b/api/v1beta2/namespace_options.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/owner.go b/api/v1beta2/owner.go index fd746853..75956f3a 100644 --- a/api/v1beta2/owner.go +++ b/api/v1beta2/owner.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/owner_list.go b/api/v1beta2/owner_list.go index 7e8fa23e..5584ad85 100644 --- a/api/v1beta2/owner_list.go +++ b/api/v1beta2/owner_list.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/owner_list_test.go b/api/v1beta2/owner_list_test.go index 5c286f0d..27f404fb 100644 --- a/api/v1beta2/owner_list_test.go +++ b/api/v1beta2/owner_list_test.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/resourcepool_func.go b/api/v1beta2/resourcepool_func.go index e6a1d021..a1bb5be6 100644 --- a/api/v1beta2/resourcepool_func.go +++ b/api/v1beta2/resourcepool_func.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/resourcepool_func_test.go b/api/v1beta2/resourcepool_func_test.go index 6bee6995..9fe6ef65 100644 --- a/api/v1beta2/resourcepool_func_test.go +++ b/api/v1beta2/resourcepool_func_test.go @@ -1,3 +1,6 @@ +// Copyright 2020-2025 Project Capsule Authors +// SPDX-License-Identifier: Apache-2.0 + package v1beta2 import ( diff --git a/api/v1beta2/resourcepool_status.go b/api/v1beta2/resourcepool_status.go index e722a243..5442e0f6 100644 --- a/api/v1beta2/resourcepool_status.go +++ b/api/v1beta2/resourcepool_status.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/resourcepool_types.go b/api/v1beta2/resourcepool_types.go index a3a11206..c411aee9 100644 --- a/api/v1beta2/resourcepool_types.go +++ b/api/v1beta2/resourcepool_types.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/resourcepoolclaim_func.go b/api/v1beta2/resourcepoolclaim_func.go index 7ff9a880..e0ded520 100644 --- a/api/v1beta2/resourcepoolclaim_func.go +++ b/api/v1beta2/resourcepoolclaim_func.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/resourcepoolclaim_func_test.go b/api/v1beta2/resourcepoolclaim_func_test.go index 35ddc069..01e969f7 100644 --- a/api/v1beta2/resourcepoolclaim_func_test.go +++ b/api/v1beta2/resourcepoolclaim_func_test.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/resourcepoolclaim_types.go b/api/v1beta2/resourcepoolclaim_types.go index c7eff4d8..afe6ce98 100644 --- a/api/v1beta2/resourcepoolclaim_types.go +++ b/api/v1beta2/resourcepoolclaim_types.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/tenant_annotations.go b/api/v1beta2/tenant_annotations.go index 21093693..b3f4e77b 100644 --- a/api/v1beta2/tenant_annotations.go +++ b/api/v1beta2/tenant_annotations.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/tenant_conversion_hub.go b/api/v1beta2/tenant_conversion_hub.go index dd632255..9e008832 100644 --- a/api/v1beta2/tenant_conversion_hub.go +++ b/api/v1beta2/tenant_conversion_hub.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/tenant_func.go b/api/v1beta2/tenant_func.go index 9c7932ce..fb27d901 100644 --- a/api/v1beta2/tenant_func.go +++ b/api/v1beta2/tenant_func.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/tenant_func_test.go b/api/v1beta2/tenant_func_test.go index 5b675970..de384768 100644 --- a/api/v1beta2/tenant_func_test.go +++ b/api/v1beta2/tenant_func_test.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/tenant_labels.go b/api/v1beta2/tenant_labels.go index e5c74f73..52ba3720 100644 --- a/api/v1beta2/tenant_labels.go +++ b/api/v1beta2/tenant_labels.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/tenant_status.go b/api/v1beta2/tenant_status.go index 81e3c046..e438f0eb 100644 --- a/api/v1beta2/tenant_status.go +++ b/api/v1beta2/tenant_status.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/tenant_types.go b/api/v1beta2/tenant_types.go index cdff3200..bfc95597 100644 --- a/api/v1beta2/tenant_types.go +++ b/api/v1beta2/tenant_types.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/tenantresource_global.go b/api/v1beta2/tenantresource_global.go index 068e5ab4..2b7f724a 100644 --- a/api/v1beta2/tenantresource_global.go +++ b/api/v1beta2/tenantresource_global.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/tenantresource_namespaced.go b/api/v1beta2/tenantresource_namespaced.go index 766cd758..027da759 100644 --- a/api/v1beta2/tenantresource_namespaced.go +++ b/api/v1beta2/tenantresource_namespaced.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/api/v1beta2/tenantresource_types.go b/api/v1beta2/tenantresource_types.go index a1f191ea..e5cedd36 100644 --- a/api/v1beta2/tenantresource_types.go +++ b/api/v1beta2/tenantresource_types.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package v1beta2 diff --git a/charts/capsule/values.schema.json b/charts/capsule/values.schema.json index 9617622d..c49c08f2 100644 --- a/charts/capsule/values.schema.json +++ b/charts/capsule/values.schema.json @@ -1,130 +1,146 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", "properties": { "affinity": { - "properties": {}, + "description": "Set affinity rules for the Capsule pod", "type": "object" }, "certManager": { + "type": "object", "properties": { "additionalSANS": { + "description": "Specify additional SANS to add to the certificate", "type": "array" }, "generateCertificates": { + "description": "Specifies whether capsule webhooks certificates should be generated using cert-manager", "type": "boolean" } - }, - "type": "object" + } }, "crds": { + "type": "object", "properties": { "annnotations": { - "properties": {}, + "description": "Extra Annotations for CRDs", "type": "object" }, "exclusive": { + "description": "Only install the CRDs, no other primitives", "type": "boolean" }, "install": { + "description": "Install the CustomResourceDefinitions (This also manages the lifecycle of the CRDs for update operations)", "type": "boolean" }, "labels": { - "properties": {}, + "description": "Extra Labels for CRDs", "type": "object" } - }, - "type": "object" + } }, "customAnnotations": { - "properties": {}, + "description": "Additional annotations which will be added to all resources created by Capsule helm chart", "type": "object" }, "customLabels": { - "properties": {}, + "description": "Additional labels which will be added to all resources created by Capsule helm chart", "type": "object" }, - "fullnameOverride": { - "type": "string" - }, "global": { + "type": "object", "properties": { "jobs": { + "type": "object", "properties": { "kubectl": { + "type": "object", "properties": { "affinity": { - "properties": {}, + "description": "Set affinity rules", "type": "object" }, "annotations": { - "properties": {}, + "description": "Annotations to add to the certgen job.", "type": "object" }, "backoffLimit": { + "description": "Backofflimit for jobs", "type": "integer" }, "image": { + "type": "object", "properties": { "pullPolicy": { + "description": "Set the image pull policy of the helm chart job", "type": "string" }, "registry": { + "description": "Set the image repository of the helm chart job", "type": "string" }, "repository": { + "description": "Set the image repository of the helm chart job", "type": "string" }, "tag": { + "description": "Set the image tag of the helm chart job", "type": "string" } - }, - "type": "object" + } }, "imagePullSecrets": { + "description": "ImagePullSecrets", "type": "array" }, "nodeSelector": { - "properties": {}, + "description": "Set the node selector", "type": "object" }, "podSecurityContext": { + "description": "Security context for the job pods.", + "type": "object", "properties": { "seccompProfile": { + "type": "object", "properties": { "type": { "type": "string" } - }, - "type": "object" + } } - }, - "type": "object" + } }, "priorityClassName": { + "description": "Set a pod priorityClassName", "type": "string" }, "resources": { - "properties": {}, + "description": "Job resources", "type": "object" }, "restartPolicy": { + "description": "Set the restartPolicy", "type": "string" }, "securityContext": { + "description": "Security context for the job containers.", + "type": "object", "properties": { "allowPrivilegeEscalation": { "type": "boolean" }, "capabilities": { + "type": "object", "properties": { "drop": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } - }, - "type": "object" + } }, "readOnlyRootFilesystem": { "type": "boolean" @@ -138,65 +154,76 @@ "runAsUser": { "type": "integer" } - }, - "type": "object" + } }, "tolerations": { + "description": "Set list of tolerations", "type": "array" }, "topologySpreadConstraints": { + "description": "Set Topology Spread Constraints", "type": "array" }, "ttlSecondsAfterFinished": { + "description": "Sets the ttl in seconds after a finished certgen job is deleted. Set to -1 to never delete.", "type": "integer" } - }, - "type": "object" + } } - }, - "type": "object" + } } - }, - "type": "object" + } }, "imagePullSecrets": { + "description": "Configuration for `imagePullSecrets` so that you can use a private images registry.", "type": "array" }, "jobs": { - "properties": {}, + "description": "Deprecated, use .global.jobs.kubectl instead", "type": "object" }, "manager": { + "type": "object", "properties": { "hostNetwork": { + "description": "Specifies if the container should be started in hostNetwork mode. Required for use in some managed kubernetes clusters (such as AWS EKS) with custom CNI (such as calico), because control-plane managed by AWS cannot communicate with pods' IP CIDR and admission webhooks are not working", "type": "boolean" }, "hostPID": { + "description": "Specifies if the container should be started in hostPID mode.", "type": "boolean" }, "image": { + "type": "object", "properties": { "pullPolicy": { + "description": "Set the image pull policy.", "type": "string" }, "registry": { + "description": "Set the image registry of capsule.", "type": "string" }, "repository": { + "description": "Set the image repository of capsule.", "type": "string" }, "tag": { + "description": "Overrides the image tag whose default is the chart appVersion.", "type": "string" } - }, - "type": "object" + } }, "kind": { + "description": "Set the controller deployment mode as `Deployment` or `DaemonSet`.", "type": "string" }, "livenessProbe": { + "description": "Configure the liveness probe using Deployment probe spec", + "type": "object", "properties": { "httpGet": { + "type": "object", "properties": { "path": { "type": "string" @@ -204,35 +231,42 @@ "port": { "type": "integer" } - }, - "type": "object" + } } - }, - "type": "object" + } }, "options": { + "type": "object", "properties": { "capsuleConfiguration": { + "description": "Change the default name of the capsule configuration name", "type": "string" }, "capsuleUserGroups": { + "description": "Override the Capsule user groups", + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "forceTenantPrefix": { + "description": "Boolean, enforces the Tenant owner, during Namespace creation, to name it using the selected Tenant name as prefix, separated by a dash", "type": "boolean" }, "generateCertificates": { + "description": "Specifies whether capsule webhooks certificates should be generated by capsule operator", "type": "boolean" }, "logLevel": { + "description": "Set the log verbosity of the capsule with a value from 1 to 10", "type": "string" }, "nodeMetadata": { + "description": "Allows to set the forbidden metadata for the worker nodes that could be patched by a Tenant", + "type": "object", "properties": { "forbiddenAnnotations": { + "type": "object", "properties": { "denied": { "type": "array" @@ -240,10 +274,10 @@ "deniedRegex": { "type": "string" } - }, - "type": "object" + } }, "forbiddenLabels": { + "type": "object", "properties": { "denied": { "type": "array" @@ -251,41 +285,39 @@ "deniedRegex": { "type": "string" } - }, - "type": "object" + } } - }, - "type": "object" + } }, "protectedNamespaceRegex": { + "description": "If specified, disallows creation of namespaces matching the passed regexp", "type": "string" } - }, - "type": "object" + } }, "rbac": { + "type": "object", "properties": { "create": { + "description": "Specifies whether RBAC resources should be created.", "type": "boolean" }, "existingClusterRoles": { - "items": { - "type": "string" - }, + "description": "Specifies further cluster roles to be added to the Capsule manager service account.", "type": "array" }, "existingRoles": { - "items": { - "type": "string" - }, + "description": "Specifies further cluster roles to be added to the Capsule manager service account.", "type": "array" } - }, - "type": "object" + } }, "readinessProbe": { + "description": "Configure the readiness probe using Deployment probe spec", + "type": "object", "properties": { "httpGet": { + "type": "object", "properties": { "path": { "type": "string" @@ -293,141 +325,144 @@ "port": { "type": "integer" } - }, - "type": "object" + } } - }, - "type": "object" + } }, "resources": { - "properties": { - "requests": { - "properties": { - "cpu": { - "type": "string" - }, - "memory": { - "type": "string" - } - }, - "type": "object" - } - }, + "description": "Set the resource requests/limits for the Capsule manager container", "type": "object" }, "securityContext": { - "properties": {}, + "description": "Set the securityContext for the Capsule container", "type": "object" }, "volumeMounts": { + "description": "Set the additional volumeMounts needed for the Capsule manager container", "type": "array" }, "volumes": { + "description": "Set the additional volumes needed for the Capsule manager container", "type": "array" }, "webhookPort": { + "description": "Set an alternative to the default container port. Useful for use in some kubernetes clusters (such as GKE Private) with aggregator routing turned on, because pod ports have to be opened manually on the firewall side", "type": "integer" } - }, - "type": "object" + } }, "monitoring": { + "type": "object", "properties": { "dashboards": { + "type": "object", "properties": { "annotations": { - "properties": {}, + "description": "Annotations for dashboard configmaps", "type": "object" }, "enabled": { + "description": "Enable Dashboards to be deployed", "type": "boolean" }, "labels": { - "properties": {}, + "description": "Labels for dashboard configmaps", "type": "object" }, "namespace": { + "description": "Custom namespace for dashboard configmaps", "type": "string" }, "operator": { + "type": "object", "properties": { "allowCrossNamespaceImport": { + "description": "Allow the Operator to match this resource with Grafanas outside the current namespace", "type": "boolean" }, "enabled": { + "description": "Enable Operator Resources (GrafanaDashboard)", "type": "boolean" }, "folder": { + "description": "folder assignment for dashboard", "type": "string" }, "instanceSelector": { - "properties": {}, + "description": "Selects Grafana instances for import", "type": "object" }, "resyncPeriod": { + "description": "How often the resource is synced, defaults to 10m0s if not set", "type": "string" } - }, - "type": "object" + } } - }, - "type": "object" + } }, "serviceMonitor": { + "type": "object", "properties": { "annotations": { - "properties": {}, + "description": "Assign additional Annotations", "type": "object" }, "enabled": { + "description": "Enable ServiceMonitor", "type": "boolean" }, "endpoint": { + "type": "object", "properties": { "interval": { + "description": "Set the scrape interval for the endpoint of the serviceMonitor", "type": "string" }, "metricRelabelings": { + "description": "Set metricRelabelings for the endpoint of the serviceMonitor", "type": "array" }, "relabelings": { + "description": "Set relabelings for the endpoint of the serviceMonitor", "type": "array" }, "scrapeTimeout": { + "description": "Set the scrape timeout for the endpoint of the serviceMonitor", "type": "string" } - }, - "type": "object" + } }, "labels": { - "properties": {}, + "description": "Assign additional labels according to Prometheus' serviceMonitorSelector matching labels", "type": "object" }, "matchLabels": { - "properties": {}, + "description": "Change matching labels", "type": "object" }, "namespace": { + "description": "Install the ServiceMonitor into a different Namespace, as the monitoring stack one (default: the release one)", "type": "string" }, "targetLabels": { + "description": "Set targetLabels for the serviceMonitor", "type": "array" } - }, - "type": "object" + } } - }, - "type": "object" + } }, "nodeSelector": { - "properties": {}, + "description": "Set the node selector for the Capsule pod", "type": "object" }, "podAnnotations": { - "properties": {}, + "description": "Annotations to add to the capsule pod.", "type": "object" }, "podSecurityContext": { + "description": "Set the securityContext for the Capsule pod", + "type": "object", "properties": { "runAsGroup": { "type": "integer" @@ -439,143 +474,161 @@ "type": "integer" }, "seccompProfile": { + "type": "object", "properties": { "type": { "type": "string" } - }, - "type": "object" + } } - }, - "type": "object" + } }, "ports": { + "description": "Set additional ports for the deployment", "type": "array" }, "priorityClassName": { + "description": "Set the priority class name of the Capsule pod", "type": "string" }, "proxy": { + "type": "object", "properties": { "enabled": { + "description": "Enable Installation of Capsule Proxy", "type": "boolean" } - }, - "type": "object" + } }, "rbac": { + "type": "object", "properties": { "resourcepoolclaims": { + "type": "object", "properties": { "create": { "type": "boolean" }, "labels": { + "type": "object", "properties": { "rbac.authorization.k8s.io/aggregate-to-admin": { "type": "string" } - }, - "type": "object" + } } - }, - "type": "object" + } }, "resources": { + "type": "object", "properties": { "create": { "type": "boolean" }, "labels": { + "type": "object", "properties": { "rbac.authorization.k8s.io/aggregate-to-admin": { "type": "string" } - }, - "type": "object" + } } - }, - "type": "object" + } } - }, - "type": "object" + } }, "replicaCount": { + "description": "Set the replica count for capsule pod", "type": "integer" }, "securityContext": { + "description": "Set the securityContext for the Capsule container", + "type": "object", "properties": { "allowPrivilegeEscalation": { "type": "boolean" }, "capabilities": { + "type": "object", "properties": { "drop": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } - }, - "type": "object" + } }, "readOnlyRootFilesystem": { "type": "boolean" } - }, - "type": "object" + } }, "serviceAccount": { + "type": "object", "properties": { "annotations": { - "properties": {}, + "description": "Annotations to add to the service account.", "type": "object" }, "create": { + "description": "Specifies whether a service account should be created.", "type": "boolean" }, "name": { + "description": "The name of the service account to use. If not set and `serviceAccount.create=true`, a name is generated using the fullname template", "type": "string" } - }, - "type": "object" + } }, "tls": { + "type": "object", "properties": { "create": { + "description": "When cert-manager is disabled, Capsule will generate the TLS certificate for webhook and CRDs conversion.", "type": "boolean" }, "enableController": { + "description": "Start the Capsule controller that injects the CA into mutating and validating webhooks, and CRD as well.", "type": "boolean" }, "name": { + "description": "Override name of the Capsule TLS Secret name when externally managed.", "type": "string" } - }, - "type": "object" + } }, "tolerations": { + "description": "Set list of tolerations for the Capsule pod", "type": "array" }, "topologySpreadConstraints": { + "description": "Set topology spread constraints for the Capsule pod", "type": "array" }, "webhooks": { + "type": "object", "properties": { "exclusive": { + "description": "When `crds.exclusive` is `true` the webhooks will be installed", "type": "boolean" }, "hooks": { + "type": "object", "properties": { "cordoning": { + "type": "object", "properties": { "failurePolicy": { "type": "string" }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -583,26 +636,26 @@ "operator": { "type": "string" } - }, - "type": "object" - }, - "type": "array" + } + } } - }, - "type": "object" + } } - }, - "type": "object" + } }, "customresources": { + "type": "object", "properties": { "failurePolicy": { "type": "string" }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -610,32 +663,32 @@ "operator": { "type": "string" } - }, - "type": "object" - }, - "type": "array" + } + } } - }, - "type": "object" + } }, "objectSelector": { - "properties": {}, "type": "object" } - }, - "type": "object" + } }, "defaults": { + "type": "object", "properties": { "ingress": { + "type": "object", "properties": { "failurePolicy": { "type": "string" }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -643,26 +696,26 @@ "operator": { "type": "string" } - }, - "type": "object" - }, - "type": "array" + } + } } - }, - "type": "object" + } } - }, - "type": "object" + } }, "pods": { + "type": "object", "properties": { "failurePolicy": { "type": "string" }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -670,26 +723,26 @@ "operator": { "type": "string" } - }, - "type": "object" - }, - "type": "array" + } + } } - }, - "type": "object" + } } - }, - "type": "object" + } }, "pvc": { + "type": "object", "properties": { "failurePolicy": { "type": "string" }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -697,29 +750,28 @@ "operator": { "type": "string" } - }, - "type": "object" - }, - "type": "array" + } + } } - }, - "type": "object" + } } - }, - "type": "object" + } } - }, - "type": "object" + } }, "gateways": { + "type": "object", "properties": { "failurePolicy": { "type": "string" }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -727,26 +779,26 @@ "operator": { "type": "string" } - }, - "type": "object" - }, - "type": "array" + } + } } - }, - "type": "object" + } } - }, - "type": "object" + } }, "ingresses": { + "type": "object", "properties": { "failurePolicy": { "type": "string" }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -754,71 +806,69 @@ "operator": { "type": "string" } - }, - "type": "object" - }, - "type": "array" + } + } } - }, - "type": "object" + } } - }, - "type": "object" + } }, "namespace": { + "type": "object", "properties": { "mutation": { + "type": "object", "properties": { "failurePolicy": { "type": "string" }, "namespaceSelector": { - "properties": {}, "type": "object" }, "objectSelector": { - "properties": {}, "type": "object" } - }, - "type": "object" + } }, "validation": { + "type": "object", "properties": { "failurePolicy": { "type": "string" } - }, - "type": "object" + } } - }, - "type": "object" + } }, "namespaceOwnerReference": { + "type": "object", "properties": { "failurePolicy": { "type": "string" } - }, - "type": "object" + } }, "namespaces": { + "type": "object", "properties": { "failurePolicy": { "type": "string" } - }, - "type": "object" + } }, "networkpolicies": { + "type": "object", "properties": { "failurePolicy": { "type": "string" }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -826,34 +876,34 @@ "operator": { "type": "string" } - }, - "type": "object" - }, - "type": "array" + } + } } - }, - "type": "object" + } } - }, - "type": "object" + } }, "nodes": { + "type": "object", "properties": { "failurePolicy": { "type": "string" } - }, - "type": "object" + } }, "persistentvolumeclaims": { + "type": "object", "properties": { "failurePolicy": { "type": "string" }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -861,26 +911,26 @@ "operator": { "type": "string" } - }, - "type": "object" - }, - "type": "array" + } + } } - }, - "type": "object" + } } - }, - "type": "object" + } }, "pods": { + "type": "object", "properties": { "failurePolicy": { "type": "string" }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -888,20 +938,18 @@ "operator": { "type": "string" } - }, - "type": "object" - }, - "type": "array" + } + } } - }, - "type": "object" + } } - }, - "type": "object" + } }, "resourcepools": { + "type": "object", "properties": { "claims": { + "type": "object", "properties": { "failurePolicy": { "type": "string" @@ -910,20 +958,18 @@ "type": "string" }, "namespaceSelector": { - "properties": {}, "type": "object" }, "objectSelector": { - "properties": {}, "type": "object" }, "reinvocationPolicy": { "type": "string" } - }, - "type": "object" + } }, "pools": { + "type": "object", "properties": { "failurePolicy": { "type": "string" @@ -932,31 +978,31 @@ "type": "string" }, "namespaceSelector": { - "properties": {}, "type": "object" }, "objectSelector": { - "properties": {}, "type": "object" }, "reinvocationPolicy": { "type": "string" } - }, - "type": "object" + } } - }, - "type": "object" + } }, "services": { + "type": "object", "properties": { "failurePolicy": { "type": "string" }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -964,65 +1010,65 @@ "operator": { "type": "string" } - }, - "type": "object" - }, - "type": "array" + } + } } - }, - "type": "object" + } } - }, - "type": "object" + } }, "tenantResourceObjects": { + "type": "object", "properties": { "failurePolicy": { "type": "string" } - }, - "type": "object" + } }, "tenants": { + "type": "object", "properties": { "failurePolicy": { "type": "string" } - }, - "type": "object" + } } - }, - "type": "object" + } }, "mutatingWebhooksTimeoutSeconds": { + "description": "Timeout in seconds for mutating webhooks", "type": "integer" }, "service": { + "type": "object", "properties": { "caBundle": { + "description": "CABundle for the webhook service", "type": "string" }, "name": { + "description": "Custom service name for the webhook service", "type": "string" }, "namespace": { + "description": "Custom service namespace for the webhook service", "type": "string" }, "port": { + "description": "Custom service port for the webhook service", "type": "null" }, "url": { + "description": "The URL where the capsule webhook services are running (Overwrites cluster scoped service definition)", "type": "string" } - }, - "type": "object" + } }, "validatingWebhooksTimeoutSeconds": { + "description": "Timeout in seconds for validating webhooks", "type": "integer" } - }, - "type": "object" + } } - }, - "type": "object" + } } diff --git a/cmd/main.go b/cmd/main.go index 00a79278..e8ba60a3 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/version.go b/cmd/version.go index dbe6c7fa..05a8b5a1 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package main diff --git a/controllers/config/manager.go b/controllers/config/manager.go index cf565f9e..eee0bc95 100644 --- a/controllers/config/manager.go +++ b/controllers/config/manager.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package config diff --git a/controllers/pod/errors.go b/controllers/pod/errors.go index ceafff4a..e7971065 100644 --- a/controllers/pod/errors.go +++ b/controllers/pod/errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pod diff --git a/controllers/pod/metadata.go b/controllers/pod/metadata.go index e1c27d94..5822b019 100644 --- a/controllers/pod/metadata.go +++ b/controllers/pod/metadata.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pod diff --git a/controllers/pv/controller.go b/controllers/pv/controller.go index b4753b74..ec361e83 100644 --- a/controllers/pv/controller.go +++ b/controllers/pv/controller.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pv diff --git a/controllers/rbac/const.go b/controllers/rbac/const.go index 362cd539..0bf129b7 100644 --- a/controllers/rbac/const.go +++ b/controllers/rbac/const.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package rbac diff --git a/controllers/rbac/manager.go b/controllers/rbac/manager.go index cb01ffba..79fb9223 100644 --- a/controllers/rbac/manager.go +++ b/controllers/rbac/manager.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package rbac diff --git a/controllers/resourcepools/claim_controller.go b/controllers/resourcepools/claim_controller.go index 4e102deb..2b05b4ff 100644 --- a/controllers/resourcepools/claim_controller.go +++ b/controllers/resourcepools/claim_controller.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package resourcepools diff --git a/controllers/resourcepools/manager.go b/controllers/resourcepools/manager.go index b63e6265..c88daa8a 100644 --- a/controllers/resourcepools/manager.go +++ b/controllers/resourcepools/manager.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package resourcepools diff --git a/controllers/resourcepools/pool_controller.go b/controllers/resourcepools/pool_controller.go index 6fa0fca5..248778c7 100644 --- a/controllers/resourcepools/pool_controller.go +++ b/controllers/resourcepools/pool_controller.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package resourcepools diff --git a/controllers/resources/global.go b/controllers/resources/global.go index 674c5a94..f3c464c0 100644 --- a/controllers/resources/global.go +++ b/controllers/resources/global.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package resources diff --git a/controllers/resources/namespaced.go b/controllers/resources/namespaced.go index 96d32649..b266722f 100644 --- a/controllers/resources/namespaced.go +++ b/controllers/resources/namespaced.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package resources diff --git a/controllers/resources/processor.go b/controllers/resources/processor.go index 2aa9f5ae..538a72df 100644 --- a/controllers/resources/processor.go +++ b/controllers/resources/processor.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package resources diff --git a/controllers/servicelabels/abstract.go b/controllers/servicelabels/abstract.go index b55fe87e..427bf954 100644 --- a/controllers/servicelabels/abstract.go +++ b/controllers/servicelabels/abstract.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package servicelabels diff --git a/controllers/servicelabels/endpoint_slices.go b/controllers/servicelabels/endpoint_slices.go index 946698a0..66077d06 100644 --- a/controllers/servicelabels/endpoint_slices.go +++ b/controllers/servicelabels/endpoint_slices.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package servicelabels diff --git a/controllers/servicelabels/errors.go b/controllers/servicelabels/errors.go index 807b8275..5903d2f1 100644 --- a/controllers/servicelabels/errors.go +++ b/controllers/servicelabels/errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package servicelabels diff --git a/controllers/servicelabels/service.go b/controllers/servicelabels/service.go index 74d1368b..ecd583e4 100644 --- a/controllers/servicelabels/service.go +++ b/controllers/servicelabels/service.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package servicelabels diff --git a/controllers/tenant/annotations.go b/controllers/tenant/annotations.go index fb758eed..f933af24 100644 --- a/controllers/tenant/annotations.go +++ b/controllers/tenant/annotations.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/controllers/tenant/limitranges.go b/controllers/tenant/limitranges.go index 6b5590da..f8301aea 100644 --- a/controllers/tenant/limitranges.go +++ b/controllers/tenant/limitranges.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/controllers/tenant/manager.go b/controllers/tenant/manager.go index fec372c9..9ae0bd32 100644 --- a/controllers/tenant/manager.go +++ b/controllers/tenant/manager.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/controllers/tenant/metadata.go b/controllers/tenant/metadata.go index c6b700f5..8b63a842 100644 --- a/controllers/tenant/metadata.go +++ b/controllers/tenant/metadata.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/controllers/tenant/namespaces.go b/controllers/tenant/namespaces.go index 408d8005..11dd93e0 100644 --- a/controllers/tenant/namespaces.go +++ b/controllers/tenant/namespaces.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/controllers/tenant/networkpolicies.go b/controllers/tenant/networkpolicies.go index e64cc131..1dd83601 100644 --- a/controllers/tenant/networkpolicies.go +++ b/controllers/tenant/networkpolicies.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/controllers/tenant/resourcequotas.go b/controllers/tenant/resourcequotas.go index 05b63eb7..1d7eab92 100644 --- a/controllers/tenant/resourcequotas.go +++ b/controllers/tenant/resourcequotas.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/controllers/tenant/resourcequotas_quota.go b/controllers/tenant/resourcequotas_quota.go index 3986a719..014175be 100644 --- a/controllers/tenant/resourcequotas_quota.go +++ b/controllers/tenant/resourcequotas_quota.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/controllers/tenant/rolebindings.go b/controllers/tenant/rolebindings.go index 79389792..a37e6dae 100644 --- a/controllers/tenant/rolebindings.go +++ b/controllers/tenant/rolebindings.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/controllers/tenant/utils.go b/controllers/tenant/utils.go index f94eed13..f5a3a513 100644 --- a/controllers/tenant/utils.go +++ b/controllers/tenant/utils.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/controllers/tls/errors.go b/controllers/tls/errors.go index 471b8b2b..de14123d 100644 --- a/controllers/tls/errors.go +++ b/controllers/tls/errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tls diff --git a/controllers/tls/manager.go b/controllers/tls/manager.go index 0cef8c49..5fd0e7ee 100644 --- a/controllers/tls/manager.go +++ b/controllers/tls/manager.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tls diff --git a/controllers/utils/name_matching.go b/controllers/utils/name_matching.go index 98fd1a68..4b5ae3b2 100644 --- a/controllers/utils/name_matching.go +++ b/controllers/utils/name_matching.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/api/additional_metadata.go b/pkg/api/additional_metadata.go index 95612e12..24561797 100644 --- a/pkg/api/additional_metadata.go +++ b/pkg/api/additional_metadata.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/additional_role_bindings.go b/pkg/api/additional_role_bindings.go index 38901f0e..3631c219 100644 --- a/pkg/api/additional_role_bindings.go +++ b/pkg/api/additional_role_bindings.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/allowed_list.go b/pkg/api/allowed_list.go index 5b56192d..52665e17 100644 --- a/pkg/api/allowed_list.go +++ b/pkg/api/allowed_list.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/allowed_list_test.go b/pkg/api/allowed_list_test.go index a8912aca..762c7443 100644 --- a/pkg/api/allowed_list_test.go +++ b/pkg/api/allowed_list_test.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 //nolint:dupl diff --git a/pkg/api/annotations.go b/pkg/api/annotations.go index 922b404b..913ecc32 100644 --- a/pkg/api/annotations.go +++ b/pkg/api/annotations.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/exhaustion.go b/pkg/api/exhaustion.go index 61d99183..1ec59053 100644 --- a/pkg/api/exhaustion.go +++ b/pkg/api/exhaustion.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/external_service_ips.go b/pkg/api/external_service_ips.go index af4f389e..6ba63342 100644 --- a/pkg/api/external_service_ips.go +++ b/pkg/api/external_service_ips.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/forbidden_list.go b/pkg/api/forbidden_list.go index 7bffbec5..cfd74286 100644 --- a/pkg/api/forbidden_list.go +++ b/pkg/api/forbidden_list.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/forbidden_list_test.go b/pkg/api/forbidden_list_test.go index daefb7d4..e96e8947 100644 --- a/pkg/api/forbidden_list_test.go +++ b/pkg/api/forbidden_list_test.go @@ -1,7 +1,6 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 -// -//nolint:dupl + package api import ( diff --git a/pkg/api/hostname_collision_scope.go b/pkg/api/hostname_collision_scope.go index 243540a8..dfede8a5 100644 --- a/pkg/api/hostname_collision_scope.go +++ b/pkg/api/hostname_collision_scope.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/image_pull_policy.go b/pkg/api/image_pull_policy.go index 4304b357..02f43154 100644 --- a/pkg/api/image_pull_policy.go +++ b/pkg/api/image_pull_policy.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/limit_ranges.go b/pkg/api/limit_ranges.go index b9edd863..a7998d54 100644 --- a/pkg/api/limit_ranges.go +++ b/pkg/api/limit_ranges.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/metadata_const.go b/pkg/api/metadata_const.go index 110fd993..ef41acd4 100644 --- a/pkg/api/metadata_const.go +++ b/pkg/api/metadata_const.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/network_policy.go b/pkg/api/network_policy.go index 92324b57..329dc7e7 100644 --- a/pkg/api/network_policy.go +++ b/pkg/api/network_policy.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/pod_options.go b/pkg/api/pod_options.go index 4c122e02..56bbd1ed 100644 --- a/pkg/api/pod_options.go +++ b/pkg/api/pod_options.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/resource_quota.go b/pkg/api/resource_quota.go index e5398eb3..a9a7c18a 100644 --- a/pkg/api/resource_quota.go +++ b/pkg/api/resource_quota.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/selectors.go b/pkg/api/selectors.go index e3a20b05..7d72ad6f 100644 --- a/pkg/api/selectors.go +++ b/pkg/api/selectors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/service_allowed_types.go b/pkg/api/service_allowed_types.go index a962d5d9..dc889c51 100644 --- a/pkg/api/service_allowed_types.go +++ b/pkg/api/service_allowed_types.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/service_options.go b/pkg/api/service_options.go index 21127d0f..68f52b98 100644 --- a/pkg/api/service_options.go +++ b/pkg/api/service_options.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/status.go b/pkg/api/status.go index 04c7fea8..3f3b4def 100644 --- a/pkg/api/status.go +++ b/pkg/api/status.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/status_namespaces.go b/pkg/api/status_namespaces.go index e3799ce3..69ab177d 100644 --- a/pkg/api/status_namespaces.go +++ b/pkg/api/status_namespaces.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/api/tenant_roles.go b/pkg/api/tenant_roles.go index e3bb81a4..a31f9244 100644 --- a/pkg/api/tenant_roles.go +++ b/pkg/api/tenant_roles.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package api diff --git a/pkg/cert/ca.go b/pkg/cert/ca.go index da6bf947..4f2dfeae 100644 --- a/pkg/cert/ca.go +++ b/pkg/cert/ca.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package cert diff --git a/pkg/cert/ca_test.go b/pkg/cert/ca_test.go index 619007da..42d6e2e2 100644 --- a/pkg/cert/ca_test.go +++ b/pkg/cert/ca_test.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package cert diff --git a/pkg/cert/errors.go b/pkg/cert/errors.go index f699ab70..61cc2b58 100644 --- a/pkg/cert/errors.go +++ b/pkg/cert/errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package cert diff --git a/pkg/cert/options.go b/pkg/cert/options.go index f437778f..9b875c6f 100644 --- a/pkg/cert/options.go +++ b/pkg/cert/options.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package cert diff --git a/pkg/configuration/client.go b/pkg/configuration/client.go index b829c971..71358b35 100644 --- a/pkg/configuration/client.go +++ b/pkg/configuration/client.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package configuration diff --git a/pkg/configuration/configuration.go b/pkg/configuration/configuration.go index e75f71d6..264a1bd9 100644 --- a/pkg/configuration/configuration.go +++ b/pkg/configuration/configuration.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package configuration diff --git a/pkg/indexer/indexer.go b/pkg/indexer/indexer.go index ea36a622..deb76ee6 100644 --- a/pkg/indexer/indexer.go +++ b/pkg/indexer/indexer.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package indexer diff --git a/pkg/indexer/ingress/hostname_path.go b/pkg/indexer/ingress/hostname_path.go index 0ce2333a..3ec6cf4c 100644 --- a/pkg/indexer/ingress/hostname_path.go +++ b/pkg/indexer/ingress/hostname_path.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package ingress diff --git a/pkg/indexer/ingress/utils.go b/pkg/indexer/ingress/utils.go index 45776b1e..87a43986 100644 --- a/pkg/indexer/ingress/utils.go +++ b/pkg/indexer/ingress/utils.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package ingress diff --git a/pkg/indexer/namespace/namespaces.go b/pkg/indexer/namespace/namespaces.go index 551cc0d4..3c803398 100644 --- a/pkg/indexer/namespace/namespaces.go +++ b/pkg/indexer/namespace/namespaces.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package namespace diff --git a/pkg/indexer/resourcepool/claim.go b/pkg/indexer/resourcepool/claim.go index 3f6c58c9..f397131f 100644 --- a/pkg/indexer/resourcepool/claim.go +++ b/pkg/indexer/resourcepool/claim.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package resourcepool diff --git a/pkg/indexer/resourcepool/namespaces.go b/pkg/indexer/resourcepool/namespaces.go index aaf1c7df..28e60c67 100644 --- a/pkg/indexer/resourcepool/namespaces.go +++ b/pkg/indexer/resourcepool/namespaces.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package resourcepool diff --git a/pkg/indexer/tenant/namespaces.go b/pkg/indexer/tenant/namespaces.go index c73dcf6d..3268d9ec 100644 --- a/pkg/indexer/tenant/namespaces.go +++ b/pkg/indexer/tenant/namespaces.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/pkg/indexer/tenant/owner.go b/pkg/indexer/tenant/owner.go index a5e57830..e2ff6fba 100644 --- a/pkg/indexer/tenant/owner.go +++ b/pkg/indexer/tenant/owner.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/pkg/indexer/tenantresource/constants.go b/pkg/indexer/tenantresource/constants.go index 5c5ef791..87fb3f9c 100644 --- a/pkg/indexer/tenantresource/constants.go +++ b/pkg/indexer/tenantresource/constants.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenantresource diff --git a/pkg/indexer/tenantresource/global.go b/pkg/indexer/tenantresource/global.go index fd1656e7..075824a2 100644 --- a/pkg/indexer/tenantresource/global.go +++ b/pkg/indexer/tenantresource/global.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 //nolint:dupl diff --git a/pkg/indexer/tenantresource/local.go b/pkg/indexer/tenantresource/local.go index 467de07d..48132a19 100644 --- a/pkg/indexer/tenantresource/local.go +++ b/pkg/indexer/tenantresource/local.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 //nolint:dupl diff --git a/pkg/meta/annotations.go b/pkg/meta/annotations.go index 93849c6a..ffcb3977 100644 --- a/pkg/meta/annotations.go +++ b/pkg/meta/annotations.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package meta diff --git a/pkg/meta/conditions.go b/pkg/meta/conditions.go index 9c695a65..7034a84d 100644 --- a/pkg/meta/conditions.go +++ b/pkg/meta/conditions.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package meta diff --git a/pkg/meta/finalizers.go b/pkg/meta/finalizers.go index 9e951fcb..ffbc0b5e 100644 --- a/pkg/meta/finalizers.go +++ b/pkg/meta/finalizers.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package meta diff --git a/pkg/meta/labels.go b/pkg/meta/labels.go index a1ee6677..a021f4ef 100644 --- a/pkg/meta/labels.go +++ b/pkg/meta/labels.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package meta diff --git a/pkg/meta/ownerreference.go b/pkg/meta/ownerreference.go index 0e6703a6..6a6e2734 100644 --- a/pkg/meta/ownerreference.go +++ b/pkg/meta/ownerreference.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package meta diff --git a/pkg/meta/ownerreference_test.go b/pkg/meta/ownerreference_test.go index 6fa9d623..a520409a 100644 --- a/pkg/meta/ownerreference_test.go +++ b/pkg/meta/ownerreference_test.go @@ -1,3 +1,6 @@ +// Copyright 2020-2025 Project Capsule Authors +// SPDX-License-Identifier: Apache-2.0 + package meta import ( diff --git a/pkg/metrics/claim_recorder.go b/pkg/metrics/claim_recorder.go index a981bc45..afcc28a3 100644 --- a/pkg/metrics/claim_recorder.go +++ b/pkg/metrics/claim_recorder.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package metrics @@ -63,6 +63,7 @@ func (r *ClaimRecorder) RecordClaimCondition(claim *capsulev1beta2.ResourcePoolC if claim.Status.Condition.Status == metav1.ConditionTrue { value = 1 } + r.claimConditionGauge.WithLabelValues( claim.Name, claim.Namespace, diff --git a/pkg/metrics/pool_recorder.go b/pkg/metrics/pool_recorder.go index f9526a77..73b733bc 100644 --- a/pkg/metrics/pool_recorder.go +++ b/pkg/metrics/pool_recorder.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package metrics @@ -169,7 +169,7 @@ func (r *ResourcePoolRecorder) ResourceUsageMetrics(pool *capsulev1beta2.Resourc r.resourceUsageMetricsByNamespace(pool) } -// Emit exhaustion metrics +// Emit exhaustion metrics. func (r *ResourcePoolRecorder) CalculateExhaustions( pool *capsulev1beta2.ResourcePool, current map[string]api.PoolExhaustionResource, @@ -242,7 +242,7 @@ func (r *ResourcePoolRecorder) resourceUsageMetricsByNamespace(pool *capsulev1be resourceName.String(), ).Set(float64(quantity.MilliValue()) / 1000) - availble, ok := pool.Status.Allocation.Hard[resourceName] + available, ok := pool.Status.Allocation.Hard[resourceName] if !ok { continue } @@ -251,7 +251,7 @@ func (r *ResourcePoolRecorder) resourceUsageMetricsByNamespace(pool *capsulev1be pool.Name, namespace, resourceName.String(), - ).Set((float64(quantity.MilliValue()) / float64(availble.MilliValue())) * 100) + ).Set((float64(quantity.MilliValue()) / float64(available.MilliValue())) * 100) } } } diff --git a/pkg/metrics/tenant_recorder.go b/pkg/metrics/tenant_recorder.go index dab824bb..6609c7a3 100644 --- a/pkg/metrics/tenant_recorder.go +++ b/pkg/metrics/tenant_recorder.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package metrics diff --git a/pkg/metrics/utils.go b/pkg/metrics/utils.go index ebd5564d..95db2c96 100644 --- a/pkg/metrics/utils.go +++ b/pkg/metrics/utils.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package metrics diff --git a/pkg/utils/errors.go b/pkg/utils/errors.go index 843c4ab0..8cf888b4 100644 --- a/pkg/utils/errors.go +++ b/pkg/utils/errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/utils/names.go b/pkg/utils/names.go index ea4c072d..1558786a 100644 --- a/pkg/utils/names.go +++ b/pkg/utils/names.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/utils/namespace_selector.go b/pkg/utils/namespace_selector.go index b10679c5..483d1974 100644 --- a/pkg/utils/namespace_selector.go +++ b/pkg/utils/namespace_selector.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/utils/node_selector.go b/pkg/utils/node_selector.go index 97ceaf1b..1725e0a8 100644 --- a/pkg/utils/node_selector.go +++ b/pkg/utils/node_selector.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/utils/owner.go b/pkg/utils/owner.go index 0293eb59..bcdcbdf5 100644 --- a/pkg/utils/owner.go +++ b/pkg/utils/owner.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/utils/reference.go b/pkg/utils/reference.go index a06a0a70..eed75542 100644 --- a/pkg/utils/reference.go +++ b/pkg/utils/reference.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/utils/tenant_labels.go b/pkg/utils/tenant_labels.go index cb43bcbb..840687c8 100644 --- a/pkg/utils/tenant_labels.go +++ b/pkg/utils/tenant_labels.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/utils/user_group.go b/pkg/utils/user_group.go index 0472519d..aed5045a 100644 --- a/pkg/utils/user_group.go +++ b/pkg/utils/user_group.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/utils/user_group_test.go b/pkg/utils/user_group_test.go index 2182d672..aecb8fad 100644 --- a/pkg/utils/user_group_test.go +++ b/pkg/utils/user_group_test.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/webhook/defaults/errors.go b/pkg/webhook/defaults/errors.go index 1fabe180..2890c464 100644 --- a/pkg/webhook/defaults/errors.go +++ b/pkg/webhook/defaults/errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package defaults diff --git a/pkg/webhook/defaults/gateway.go b/pkg/webhook/defaults/gateway.go index eda8baf2..d18adfba 100644 --- a/pkg/webhook/defaults/gateway.go +++ b/pkg/webhook/defaults/gateway.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package defaults diff --git a/pkg/webhook/defaults/handler.go b/pkg/webhook/defaults/handler.go index 260327dc..3887066d 100644 --- a/pkg/webhook/defaults/handler.go +++ b/pkg/webhook/defaults/handler.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package defaults diff --git a/pkg/webhook/defaults/ingress.go b/pkg/webhook/defaults/ingress.go index 9f1c74cc..3db4f7ac 100644 --- a/pkg/webhook/defaults/ingress.go +++ b/pkg/webhook/defaults/ingress.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package defaults diff --git a/pkg/webhook/defaults/pods.go b/pkg/webhook/defaults/pods.go index 2ca8dcde..ad49713e 100644 --- a/pkg/webhook/defaults/pods.go +++ b/pkg/webhook/defaults/pods.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package defaults diff --git a/pkg/webhook/defaults/storage.go b/pkg/webhook/defaults/storage.go index e7da3d1f..0423e2fe 100644 --- a/pkg/webhook/defaults/storage.go +++ b/pkg/webhook/defaults/storage.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package defaults diff --git a/pkg/webhook/gateway/errors.go b/pkg/webhook/gateway/errors.go index d21f379b..33a15672 100644 --- a/pkg/webhook/gateway/errors.go +++ b/pkg/webhook/gateway/errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package gateway diff --git a/pkg/webhook/gateway/utils.go b/pkg/webhook/gateway/utils.go index f4c23ecf..969cd27d 100644 --- a/pkg/webhook/gateway/utils.go +++ b/pkg/webhook/gateway/utils.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package gateway diff --git a/pkg/webhook/gateway/validate_class.go b/pkg/webhook/gateway/validate_class.go index a5ecd0f0..47cec014 100644 --- a/pkg/webhook/gateway/validate_class.go +++ b/pkg/webhook/gateway/validate_class.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package gateway diff --git a/pkg/webhook/handler.go b/pkg/webhook/handler.go index 689b3682..85fdc433 100644 --- a/pkg/webhook/handler.go +++ b/pkg/webhook/handler.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package webhook diff --git a/pkg/webhook/ingress/errors.go b/pkg/webhook/ingress/errors.go index 75ad4882..6c50d25c 100644 --- a/pkg/webhook/ingress/errors.go +++ b/pkg/webhook/ingress/errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package ingress diff --git a/pkg/webhook/ingress/types.go b/pkg/webhook/ingress/types.go index 6ad24a1e..4b8447d0 100644 --- a/pkg/webhook/ingress/types.go +++ b/pkg/webhook/ingress/types.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package ingress diff --git a/pkg/webhook/ingress/utils.go b/pkg/webhook/ingress/utils.go index dc475916..4ce21d52 100644 --- a/pkg/webhook/ingress/utils.go +++ b/pkg/webhook/ingress/utils.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package ingress diff --git a/pkg/webhook/ingress/validate_class.go b/pkg/webhook/ingress/validate_class.go index 84206f43..420abc37 100644 --- a/pkg/webhook/ingress/validate_class.go +++ b/pkg/webhook/ingress/validate_class.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package ingress diff --git a/pkg/webhook/ingress/validate_collision.go b/pkg/webhook/ingress/validate_collision.go index 897a7a48..0fde7f3e 100644 --- a/pkg/webhook/ingress/validate_collision.go +++ b/pkg/webhook/ingress/validate_collision.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package ingress diff --git a/pkg/webhook/ingress/validate_hostnames.go b/pkg/webhook/ingress/validate_hostnames.go index 5a75bb47..a03db925 100644 --- a/pkg/webhook/ingress/validate_hostnames.go +++ b/pkg/webhook/ingress/validate_hostnames.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package ingress diff --git a/pkg/webhook/ingress/validate_wildcard.go b/pkg/webhook/ingress/validate_wildcard.go index 33ed4296..30fa6bc3 100644 --- a/pkg/webhook/ingress/validate_wildcard.go +++ b/pkg/webhook/ingress/validate_wildcard.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package ingress diff --git a/pkg/webhook/namespace/mutation/cordoning.go b/pkg/webhook/namespace/mutation/cordoning.go index 4b7bf228..2abd452c 100644 --- a/pkg/webhook/namespace/mutation/cordoning.go +++ b/pkg/webhook/namespace/mutation/cordoning.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package mutation diff --git a/pkg/webhook/namespace/mutation/metadata.go b/pkg/webhook/namespace/mutation/metadata.go index fcdbe961..0b72cef8 100644 --- a/pkg/webhook/namespace/mutation/metadata.go +++ b/pkg/webhook/namespace/mutation/metadata.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package mutation diff --git a/pkg/webhook/namespace/mutation/ownerreference.go b/pkg/webhook/namespace/mutation/ownerreference.go index 7bd0555a..c51ab022 100644 --- a/pkg/webhook/namespace/mutation/ownerreference.go +++ b/pkg/webhook/namespace/mutation/ownerreference.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package mutation diff --git a/pkg/webhook/namespace/mutation/utils.go b/pkg/webhook/namespace/mutation/utils.go index 185be3ed..1c13b6df 100644 --- a/pkg/webhook/namespace/mutation/utils.go +++ b/pkg/webhook/namespace/mutation/utils.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package mutation diff --git a/pkg/webhook/namespace/validation/errors.go b/pkg/webhook/namespace/validation/errors.go index 1377f49a..667c3c4b 100644 --- a/pkg/webhook/namespace/validation/errors.go +++ b/pkg/webhook/namespace/validation/errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package validation diff --git a/pkg/webhook/namespace/validation/freezed.go b/pkg/webhook/namespace/validation/freezed.go index f01b6ab2..4a930127 100644 --- a/pkg/webhook/namespace/validation/freezed.go +++ b/pkg/webhook/namespace/validation/freezed.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package validation diff --git a/pkg/webhook/namespace/validation/patch.go b/pkg/webhook/namespace/validation/patch.go index e0718962..0f30858e 100644 --- a/pkg/webhook/namespace/validation/patch.go +++ b/pkg/webhook/namespace/validation/patch.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package validation diff --git a/pkg/webhook/namespace/validation/prefix.go b/pkg/webhook/namespace/validation/prefix.go index a1371a96..32549d45 100644 --- a/pkg/webhook/namespace/validation/prefix.go +++ b/pkg/webhook/namespace/validation/prefix.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package validation diff --git a/pkg/webhook/namespace/validation/quota.go b/pkg/webhook/namespace/validation/quota.go index ff2df194..dc8b9031 100644 --- a/pkg/webhook/namespace/validation/quota.go +++ b/pkg/webhook/namespace/validation/quota.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package validation diff --git a/pkg/webhook/namespace/validation/user_metadata.go b/pkg/webhook/namespace/validation/user_metadata.go index e3d0c8fd..74c64f91 100644 --- a/pkg/webhook/namespace/validation/user_metadata.go +++ b/pkg/webhook/namespace/validation/user_metadata.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package validation diff --git a/pkg/webhook/networkpolicy/validating.go b/pkg/webhook/networkpolicy/validating.go index e452394f..62fdffea 100644 --- a/pkg/webhook/networkpolicy/validating.go +++ b/pkg/webhook/networkpolicy/validating.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package networkpolicy diff --git a/pkg/webhook/node/errors.go b/pkg/webhook/node/errors.go index 3c76207e..7afe35e8 100644 --- a/pkg/webhook/node/errors.go +++ b/pkg/webhook/node/errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package node diff --git a/pkg/webhook/node/user_metadata.go b/pkg/webhook/node/user_metadata.go index d824d6a0..fa75aba0 100644 --- a/pkg/webhook/node/user_metadata.go +++ b/pkg/webhook/node/user_metadata.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package node diff --git a/pkg/webhook/pod/containerregistry.go b/pkg/webhook/pod/containerregistry.go index d13faa6a..f84aed85 100644 --- a/pkg/webhook/pod/containerregistry.go +++ b/pkg/webhook/pod/containerregistry.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pod diff --git a/pkg/webhook/pod/containerregistry_errors.go b/pkg/webhook/pod/containerregistry_errors.go index e955937f..144b37a4 100644 --- a/pkg/webhook/pod/containerregistry_errors.go +++ b/pkg/webhook/pod/containerregistry_errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pod diff --git a/pkg/webhook/pod/containerregistry_registry.go b/pkg/webhook/pod/containerregistry_registry.go index 74a6a4b6..d80b6e97 100644 --- a/pkg/webhook/pod/containerregistry_registry.go +++ b/pkg/webhook/pod/containerregistry_registry.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pod diff --git a/pkg/webhook/pod/imagepullpolicy.go b/pkg/webhook/pod/imagepullpolicy.go index 7d7600d6..42b7f72e 100644 --- a/pkg/webhook/pod/imagepullpolicy.go +++ b/pkg/webhook/pod/imagepullpolicy.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pod diff --git a/pkg/webhook/pod/imagepullpolicy_errors.go b/pkg/webhook/pod/imagepullpolicy_errors.go index 306e5be6..002ba48a 100644 --- a/pkg/webhook/pod/imagepullpolicy_errors.go +++ b/pkg/webhook/pod/imagepullpolicy_errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pod diff --git a/pkg/webhook/pod/imagepullpolicy_pullpolicy.go b/pkg/webhook/pod/imagepullpolicy_pullpolicy.go index 8eb84348..ae19c1a0 100644 --- a/pkg/webhook/pod/imagepullpolicy_pullpolicy.go +++ b/pkg/webhook/pod/imagepullpolicy_pullpolicy.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pod diff --git a/pkg/webhook/pod/priorityclass.go b/pkg/webhook/pod/priorityclass.go index 6b306a02..1bca1917 100644 --- a/pkg/webhook/pod/priorityclass.go +++ b/pkg/webhook/pod/priorityclass.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pod diff --git a/pkg/webhook/pod/priorityclass_errors.go b/pkg/webhook/pod/priorityclass_errors.go index 48f342e8..cde702d9 100644 --- a/pkg/webhook/pod/priorityclass_errors.go +++ b/pkg/webhook/pod/priorityclass_errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pod diff --git a/pkg/webhook/pod/runtimeclass.go b/pkg/webhook/pod/runtimeclass.go index c1810dce..70eb995f 100644 --- a/pkg/webhook/pod/runtimeclass.go +++ b/pkg/webhook/pod/runtimeclass.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pod diff --git a/pkg/webhook/pod/runtimeclass_errors.go b/pkg/webhook/pod/runtimeclass_errors.go index cae23663..cf1c7571 100644 --- a/pkg/webhook/pod/runtimeclass_errors.go +++ b/pkg/webhook/pod/runtimeclass_errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pod diff --git a/pkg/webhook/pvc/errors.go b/pkg/webhook/pvc/errors.go index 50eb493e..69575c89 100644 --- a/pkg/webhook/pvc/errors.go +++ b/pkg/webhook/pvc/errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pvc diff --git a/pkg/webhook/pvc/pv.go b/pkg/webhook/pvc/pv.go index faad2984..4415b2c0 100644 --- a/pkg/webhook/pvc/pv.go +++ b/pkg/webhook/pvc/pv.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pvc diff --git a/pkg/webhook/pvc/validating.go b/pkg/webhook/pvc/validating.go index ccbb5119..98e7993b 100644 --- a/pkg/webhook/pvc/validating.go +++ b/pkg/webhook/pvc/validating.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package pvc diff --git a/pkg/webhook/resourcepool/claim_mutating.go b/pkg/webhook/resourcepool/claim_mutating.go index c4131bb3..8b4d3049 100644 --- a/pkg/webhook/resourcepool/claim_mutating.go +++ b/pkg/webhook/resourcepool/claim_mutating.go @@ -1,5 +1,6 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 + package resourcepool import ( diff --git a/pkg/webhook/resourcepool/claim_validating.go b/pkg/webhook/resourcepool/claim_validating.go index 0455a22b..aaa41411 100644 --- a/pkg/webhook/resourcepool/claim_validating.go +++ b/pkg/webhook/resourcepool/claim_validating.go @@ -1,5 +1,6 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 + package resourcepool import ( diff --git a/pkg/webhook/resourcepool/pool_mutating.go b/pkg/webhook/resourcepool/pool_mutating.go index 61db8762..df061fb3 100644 --- a/pkg/webhook/resourcepool/pool_mutating.go +++ b/pkg/webhook/resourcepool/pool_mutating.go @@ -1,5 +1,6 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 + package resourcepool import ( diff --git a/pkg/webhook/resourcepool/pool_validation.go b/pkg/webhook/resourcepool/pool_validation.go index 270da08f..2135fb92 100644 --- a/pkg/webhook/resourcepool/pool_validation.go +++ b/pkg/webhook/resourcepool/pool_validation.go @@ -1,5 +1,6 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 + package resourcepool import ( diff --git a/pkg/webhook/route/cordoning.go b/pkg/webhook/route/cordoning.go index b7377739..13774f45 100644 --- a/pkg/webhook/route/cordoning.go +++ b/pkg/webhook/route/cordoning.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/customresources.go b/pkg/webhook/route/customresources.go index 6efac49f..2d7bce1d 100644 --- a/pkg/webhook/route/customresources.go +++ b/pkg/webhook/route/customresources.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/defaults.go b/pkg/webhook/route/defaults.go index 9fecc49e..54489e3a 100644 --- a/pkg/webhook/route/defaults.go +++ b/pkg/webhook/route/defaults.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/gateway.go b/pkg/webhook/route/gateway.go index 3dc972be..66c3f6b2 100644 --- a/pkg/webhook/route/gateway.go +++ b/pkg/webhook/route/gateway.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/ingresses.go b/pkg/webhook/route/ingresses.go index e7f33006..aaf234a8 100644 --- a/pkg/webhook/route/ingresses.go +++ b/pkg/webhook/route/ingresses.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/namespaces.go b/pkg/webhook/route/namespaces.go index 673a76a6..6ee7b9ed 100644 --- a/pkg/webhook/route/namespaces.go +++ b/pkg/webhook/route/namespaces.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/networkpolicies.go b/pkg/webhook/route/networkpolicies.go index 8fb9976c..27c78a48 100644 --- a/pkg/webhook/route/networkpolicies.go +++ b/pkg/webhook/route/networkpolicies.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/node.go b/pkg/webhook/route/node.go index f7472167..c50445dc 100644 --- a/pkg/webhook/route/node.go +++ b/pkg/webhook/route/node.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/ownerreference.go b/pkg/webhook/route/ownerreference.go index 0c1be5c1..b2c68022 100644 --- a/pkg/webhook/route/ownerreference.go +++ b/pkg/webhook/route/ownerreference.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/pods.go b/pkg/webhook/route/pods.go index ac53e138..9ed8e91f 100644 --- a/pkg/webhook/route/pods.go +++ b/pkg/webhook/route/pods.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/pvc.go b/pkg/webhook/route/pvc.go index faa5da52..142bea23 100644 --- a/pkg/webhook/route/pvc.go +++ b/pkg/webhook/route/pvc.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/resourcepool.go b/pkg/webhook/route/resourcepool.go index 6a668712..cfbe0410 100644 --- a/pkg/webhook/route/resourcepool.go +++ b/pkg/webhook/route/resourcepool.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/services.go b/pkg/webhook/route/services.go index d697faab..a93b02b5 100644 --- a/pkg/webhook/route/services.go +++ b/pkg/webhook/route/services.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/tenantresource_objs.go b/pkg/webhook/route/tenantresource_objs.go index 647d9bfd..c745dbf0 100644 --- a/pkg/webhook/route/tenantresource_objs.go +++ b/pkg/webhook/route/tenantresource_objs.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/route/tenants.go b/pkg/webhook/route/tenants.go index 92d428e4..0bae2f6c 100644 --- a/pkg/webhook/route/tenants.go +++ b/pkg/webhook/route/tenants.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package route diff --git a/pkg/webhook/router.go b/pkg/webhook/router.go index b722173b..1f30bfb4 100644 --- a/pkg/webhook/router.go +++ b/pkg/webhook/router.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package webhook diff --git a/pkg/webhook/service/errors.go b/pkg/webhook/service/errors.go index 3b302968..dd3c1bcd 100644 --- a/pkg/webhook/service/errors.go +++ b/pkg/webhook/service/errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package service diff --git a/pkg/webhook/service/validating.go b/pkg/webhook/service/validating.go index cfc4d966..c99ed21f 100644 --- a/pkg/webhook/service/validating.go +++ b/pkg/webhook/service/validating.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package service diff --git a/pkg/webhook/tenant/containerregistry_regex.go b/pkg/webhook/tenant/containerregistry_regex.go index ee2b81ea..de47db0e 100644 --- a/pkg/webhook/tenant/containerregistry_regex.go +++ b/pkg/webhook/tenant/containerregistry_regex.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 //nolint:dupl diff --git a/pkg/webhook/tenant/cordoning.go b/pkg/webhook/tenant/cordoning.go index 1244b0eb..6cfc5f33 100644 --- a/pkg/webhook/tenant/cordoning.go +++ b/pkg/webhook/tenant/cordoning.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/pkg/webhook/tenant/custom_resource_quota.go b/pkg/webhook/tenant/custom_resource_quota.go index da945e03..4f73e7e7 100644 --- a/pkg/webhook/tenant/custom_resource_quota.go +++ b/pkg/webhook/tenant/custom_resource_quota.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/pkg/webhook/tenant/custom_resource_quota_errors.go b/pkg/webhook/tenant/custom_resource_quota_errors.go index 56857883..91fe878a 100644 --- a/pkg/webhook/tenant/custom_resource_quota_errors.go +++ b/pkg/webhook/tenant/custom_resource_quota_errors.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/pkg/webhook/tenant/forbidden_annotations_regex.go b/pkg/webhook/tenant/forbidden_annotations_regex.go index 10cd8f6a..3c6a41b9 100644 --- a/pkg/webhook/tenant/forbidden_annotations_regex.go +++ b/pkg/webhook/tenant/forbidden_annotations_regex.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/pkg/webhook/tenant/freezed_emitter.go b/pkg/webhook/tenant/freezed_emitter.go index 8f6d06a8..aa587a2a 100644 --- a/pkg/webhook/tenant/freezed_emitter.go +++ b/pkg/webhook/tenant/freezed_emitter.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/pkg/webhook/tenant/hostname_regex.go b/pkg/webhook/tenant/hostname_regex.go index 86d925cc..7666de56 100644 --- a/pkg/webhook/tenant/hostname_regex.go +++ b/pkg/webhook/tenant/hostname_regex.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 //nolint:dupl diff --git a/pkg/webhook/tenant/ingressclass_regex.go b/pkg/webhook/tenant/ingressclass_regex.go index e3dc6663..13767c7c 100644 --- a/pkg/webhook/tenant/ingressclass_regex.go +++ b/pkg/webhook/tenant/ingressclass_regex.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 //nolint:dupl diff --git a/pkg/webhook/tenant/metadata.go b/pkg/webhook/tenant/metadata.go index 6a1fe762..7425ec9a 100644 --- a/pkg/webhook/tenant/metadata.go +++ b/pkg/webhook/tenant/metadata.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/pkg/webhook/tenant/name.go b/pkg/webhook/tenant/name.go index 0bf4b52f..469ddbef 100644 --- a/pkg/webhook/tenant/name.go +++ b/pkg/webhook/tenant/name.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/pkg/webhook/tenant/protected.go b/pkg/webhook/tenant/protected.go index 57fc1ea0..3600c275 100644 --- a/pkg/webhook/tenant/protected.go +++ b/pkg/webhook/tenant/protected.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/pkg/webhook/tenant/rolebindings_regex.go b/pkg/webhook/tenant/rolebindings_regex.go index 25b7fbba..c26ecebd 100644 --- a/pkg/webhook/tenant/rolebindings_regex.go +++ b/pkg/webhook/tenant/rolebindings_regex.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/pkg/webhook/tenant/serviceaccount_format.go b/pkg/webhook/tenant/serviceaccount_format.go index 00b6a052..6bca2147 100644 --- a/pkg/webhook/tenant/serviceaccount_format.go +++ b/pkg/webhook/tenant/serviceaccount_format.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/pkg/webhook/tenant/storageclass_regex.go b/pkg/webhook/tenant/storageclass_regex.go index 955ac58e..e08ff96b 100644 --- a/pkg/webhook/tenant/storageclass_regex.go +++ b/pkg/webhook/tenant/storageclass_regex.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 //nolint:dupl diff --git a/pkg/webhook/tenantresource/objects.go b/pkg/webhook/tenantresource/objects.go index 42c0735a..1040b00f 100644 --- a/pkg/webhook/tenantresource/objects.go +++ b/pkg/webhook/tenantresource/objects.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package tenant diff --git a/pkg/webhook/utils/error.go b/pkg/webhook/utils/error.go index 8d4c081c..5c8b5f79 100644 --- a/pkg/webhook/utils/error.go +++ b/pkg/webhook/utils/error.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/webhook/utils/in_capsule_groups.go b/pkg/webhook/utils/in_capsule_groups.go index b1422e9a..176ba561 100644 --- a/pkg/webhook/utils/in_capsule_groups.go +++ b/pkg/webhook/utils/in_capsule_groups.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/webhook/utils/is_capsule_user.go b/pkg/webhook/utils/is_capsule_user.go index 8072abc2..9739c881 100644 --- a/pkg/webhook/utils/is_capsule_user.go +++ b/pkg/webhook/utils/is_capsule_user.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/webhook/utils/is_tenant_owner.go b/pkg/webhook/utils/is_tenant_owner.go index f1d1c488..9174a07a 100644 --- a/pkg/webhook/utils/is_tenant_owner.go +++ b/pkg/webhook/utils/is_tenant_owner.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/webhook/utils/kubernetes_version.go b/pkg/webhook/utils/kubernetes_version.go index 031106bd..9ad5762f 100644 --- a/pkg/webhook/utils/kubernetes_version.go +++ b/pkg/webhook/utils/kubernetes_version.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/webhook/utils/resources.go b/pkg/webhook/utils/resources.go index 9f5a73e6..974acc7b 100644 --- a/pkg/webhook/utils/resources.go +++ b/pkg/webhook/utils/resources.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/webhook/utils/tenant_by_field.go b/pkg/webhook/utils/tenant_by_field.go index f2b23026..ea8a895d 100644 --- a/pkg/webhook/utils/tenant_by_field.go +++ b/pkg/webhook/utils/tenant_by_field.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package utils diff --git a/pkg/webhook/webhook.go b/pkg/webhook/webhook.go index eb0bcf81..a14255d9 100644 --- a/pkg/webhook/webhook.go +++ b/pkg/webhook/webhook.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 Project Capsule Authors. +// Copyright 2020-2025 Project Capsule Authors // SPDX-License-Identifier: Apache-2.0 package webhook