diff --git a/.github/workflows/controllers.yml b/.github/workflows/controllers.yml index 5d0c5eea7c8..97adce75396 100644 --- a/.github/workflows/controllers.yml +++ b/.github/workflows/controllers.yml @@ -93,7 +93,6 @@ jobs: - { name: terminal, path: terminal } - { name: account, path: account } - { name: app, path: app } - - { name: db-bytebase, path: db/bytebase } - { name: db-adminer, path: db/adminer } - { name: license, path: license } - { name: job-init, path: job/init } @@ -196,7 +195,6 @@ jobs: - { name: terminal, path: terminal } - { name: account, path: account } - { name: app, path: app } - - { name: db-bytebase, path: db/bytebase } - { name: db-adminer, path: db/adminer } - { name: license, path: license } - { name: job-init, path: job/init } diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 87cc9dce5bf..896e2760cc8 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -61,8 +61,6 @@ jobs: providers/template, providers/adminer, providers/applaunchpad, - providers/bytebase, - providers/imagehub, providers/terminal, providers/dbprovider, providers/costcenter, @@ -158,8 +156,6 @@ jobs: providers/template, providers/adminer, providers/applaunchpad, - providers/bytebase, - providers/imagehub, providers/terminal, providers/dbprovider, providers/costcenter, diff --git a/controllers/account/Dockerfile b/controllers/account/Dockerfile index 17e7dd6e647..4c040165948 100644 --- a/controllers/account/Dockerfile +++ b/controllers/account/Dockerfile @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM gcr.io/distroless/static:nonroot ARG TARGETARCH diff --git a/controllers/account/config/certmanager/certificate.yaml b/controllers/account/config/certmanager/certificate.yaml index 52d866183c7..54c78b15e6b 100644 --- a/controllers/account/config/certmanager/certificate.yaml +++ b/controllers/account/config/certmanager/certificate.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following manifests contain a self-signed issuer CR and a certificate CR. # More document can be found at https://docs.cert-manager.io # WARNING: Targets CertManager v1.0. Check https://cert-manager.io/docs/installation/upgrading/ for breaking changes. diff --git a/controllers/account/config/certmanager/kustomization.yaml b/controllers/account/config/certmanager/kustomization.yaml index bebea5a595e..27b9b3c0745 100644 --- a/controllers/account/config/certmanager/kustomization.yaml +++ b/controllers/account/config/certmanager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - certificate.yaml diff --git a/controllers/account/config/certmanager/kustomizeconfig.yaml b/controllers/account/config/certmanager/kustomizeconfig.yaml index 90d7c313ca1..a6f7e14c39f 100644 --- a/controllers/account/config/certmanager/kustomizeconfig.yaml +++ b/controllers/account/config/certmanager/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This configuration is for teaching kustomize how to update name ref and var substitution nameReference: - kind: Issuer diff --git a/controllers/account/config/crd/bases/account.sealos.io_accounts.yaml b/controllers/account/config/crd/bases/account.sealos.io_accounts.yaml index 7c95f390cc2..588e3916c40 100644 --- a/controllers/account/config/crd/bases/account.sealos.io_accounts.yaml +++ b/controllers/account/config/crd/bases/account.sealos.io_accounts.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/bases/account.sealos.io_billinginfoqueries.yaml b/controllers/account/config/crd/bases/account.sealos.io_billinginfoqueries.yaml index c554805de54..e5fcd756538 100644 --- a/controllers/account/config/crd/bases/account.sealos.io_billinginfoqueries.yaml +++ b/controllers/account/config/crd/bases/account.sealos.io_billinginfoqueries.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/bases/account.sealos.io_billingrecordqueries.yaml b/controllers/account/config/crd/bases/account.sealos.io_billingrecordqueries.yaml index 3ef8669ae6b..30138ea24ed 100644 --- a/controllers/account/config/crd/bases/account.sealos.io_billingrecordqueries.yaml +++ b/controllers/account/config/crd/bases/account.sealos.io_billingrecordqueries.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/bases/account.sealos.io_debts.yaml b/controllers/account/config/crd/bases/account.sealos.io_debts.yaml index 7c424eb4d4c..d5ede59e2bb 100644 --- a/controllers/account/config/crd/bases/account.sealos.io_debts.yaml +++ b/controllers/account/config/crd/bases/account.sealos.io_debts.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/bases/account.sealos.io_namespacebillinghistories.yaml b/controllers/account/config/crd/bases/account.sealos.io_namespacebillinghistories.yaml index fc20b39aba6..33d310f9169 100644 --- a/controllers/account/config/crd/bases/account.sealos.io_namespacebillinghistories.yaml +++ b/controllers/account/config/crd/bases/account.sealos.io_namespacebillinghistories.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/bases/account.sealos.io_payments.yaml b/controllers/account/config/crd/bases/account.sealos.io_payments.yaml index 06f05ed14bb..410b07ba695 100644 --- a/controllers/account/config/crd/bases/account.sealos.io_payments.yaml +++ b/controllers/account/config/crd/bases/account.sealos.io_payments.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/bases/account.sealos.io_pricequeries.yaml b/controllers/account/config/crd/bases/account.sealos.io_pricequeries.yaml index 800d00d981e..b73fddd52f5 100644 --- a/controllers/account/config/crd/bases/account.sealos.io_pricequeries.yaml +++ b/controllers/account/config/crd/bases/account.sealos.io_pricequeries.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/bases/account.sealos.io_transfers.yaml b/controllers/account/config/crd/bases/account.sealos.io_transfers.yaml index da28f973f1e..f746906d384 100644 --- a/controllers/account/config/crd/bases/account.sealos.io_transfers.yaml +++ b/controllers/account/config/crd/bases/account.sealos.io_transfers.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/kustomization.yaml b/controllers/account/config/crd/kustomization.yaml index 05087ff8ff4..2fecd447f98 100644 --- a/controllers/account/config/crd/kustomization.yaml +++ b/controllers/account/config/crd/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This kustomization.yaml is not intended to be run by itself, # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default diff --git a/controllers/account/config/crd/kustomizeconfig.yaml b/controllers/account/config/crd/kustomizeconfig.yaml index ec5c150a9df..9c99fc52fb2 100644 --- a/controllers/account/config/crd/kustomizeconfig.yaml +++ b/controllers/account/config/crd/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This file is for teaching kustomize how to substitute name and namespace reference in CRD nameReference: - kind: Service diff --git a/controllers/account/config/crd/patches/cainjection_in_accounts.yaml b/controllers/account/config/crd/patches/cainjection_in_accounts.yaml index 37e0ce30463..09928ba1060 100644 --- a/controllers/account/config/crd/patches/cainjection_in_accounts.yaml +++ b/controllers/account/config/crd/patches/cainjection_in_accounts.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/patches/cainjection_in_billinginfoqueries.yaml b/controllers/account/config/crd/patches/cainjection_in_billinginfoqueries.yaml index 34ca64dd99f..bf5da442df1 100644 --- a/controllers/account/config/crd/patches/cainjection_in_billinginfoqueries.yaml +++ b/controllers/account/config/crd/patches/cainjection_in_billinginfoqueries.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/patches/cainjection_in_billingrecordqueries.yaml b/controllers/account/config/crd/patches/cainjection_in_billingrecordqueries.yaml index 64d6959f587..086f6fb6228 100644 --- a/controllers/account/config/crd/patches/cainjection_in_billingrecordqueries.yaml +++ b/controllers/account/config/crd/patches/cainjection_in_billingrecordqueries.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/patches/cainjection_in_debts.yaml b/controllers/account/config/crd/patches/cainjection_in_debts.yaml index 88a87e35162..d043830010c 100644 --- a/controllers/account/config/crd/patches/cainjection_in_debts.yaml +++ b/controllers/account/config/crd/patches/cainjection_in_debts.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/patches/cainjection_in_namespacebillinghistories.yaml b/controllers/account/config/crd/patches/cainjection_in_namespacebillinghistories.yaml index a2b66be19b6..e7849ccc4d8 100644 --- a/controllers/account/config/crd/patches/cainjection_in_namespacebillinghistories.yaml +++ b/controllers/account/config/crd/patches/cainjection_in_namespacebillinghistories.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/patches/cainjection_in_payments.yaml b/controllers/account/config/crd/patches/cainjection_in_payments.yaml index a1ce81efcc1..a92537b0320 100644 --- a/controllers/account/config/crd/patches/cainjection_in_payments.yaml +++ b/controllers/account/config/crd/patches/cainjection_in_payments.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/patches/cainjection_in_pricequeries.yaml b/controllers/account/config/crd/patches/cainjection_in_pricequeries.yaml index 8fb0aab4477..58fb3e5702c 100644 --- a/controllers/account/config/crd/patches/cainjection_in_pricequeries.yaml +++ b/controllers/account/config/crd/patches/cainjection_in_pricequeries.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/patches/webhook_in_accounts.yaml b/controllers/account/config/crd/patches/webhook_in_accounts.yaml index 38577a357b9..695982badb6 100644 --- a/controllers/account/config/crd/patches/webhook_in_accounts.yaml +++ b/controllers/account/config/crd/patches/webhook_in_accounts.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/patches/webhook_in_billinginfoqueries.yaml b/controllers/account/config/crd/patches/webhook_in_billinginfoqueries.yaml index 4513cb89771..fd3f8f8fcd0 100644 --- a/controllers/account/config/crd/patches/webhook_in_billinginfoqueries.yaml +++ b/controllers/account/config/crd/patches/webhook_in_billinginfoqueries.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/patches/webhook_in_billingrecordqueries.yaml b/controllers/account/config/crd/patches/webhook_in_billingrecordqueries.yaml index 653bd55c558..54615e7aac6 100644 --- a/controllers/account/config/crd/patches/webhook_in_billingrecordqueries.yaml +++ b/controllers/account/config/crd/patches/webhook_in_billingrecordqueries.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/patches/webhook_in_debts.yaml b/controllers/account/config/crd/patches/webhook_in_debts.yaml index 19f695bd4de..8140f778e0e 100644 --- a/controllers/account/config/crd/patches/webhook_in_debts.yaml +++ b/controllers/account/config/crd/patches/webhook_in_debts.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/patches/webhook_in_namespacebillinghistories.yaml b/controllers/account/config/crd/patches/webhook_in_namespacebillinghistories.yaml index 789a3d1586e..3361858e04c 100644 --- a/controllers/account/config/crd/patches/webhook_in_namespacebillinghistories.yaml +++ b/controllers/account/config/crd/patches/webhook_in_namespacebillinghistories.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/patches/webhook_in_payments.yaml b/controllers/account/config/crd/patches/webhook_in_payments.yaml index 77b58d4de45..dff1cddf5ce 100644 --- a/controllers/account/config/crd/patches/webhook_in_payments.yaml +++ b/controllers/account/config/crd/patches/webhook_in_payments.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/crd/patches/webhook_in_pricequeries.yaml b/controllers/account/config/crd/patches/webhook_in_pricequeries.yaml index 27613b14626..5740f4c8963 100644 --- a/controllers/account/config/crd/patches/webhook_in_pricequeries.yaml +++ b/controllers/account/config/crd/patches/webhook_in_pricequeries.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/account/config/default/kustomization.yaml b/controllers/account/config/default/kustomization.yaml index 2fe0d3748f1..d04178cc383 100644 --- a/controllers/account/config/default/kustomization.yaml +++ b/controllers/account/config/default/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Adds namespace to all resources. namespace: account-system diff --git a/controllers/account/config/default/manager_auth_proxy_patch.yaml b/controllers/account/config/default/manager_auth_proxy_patch.yaml index 4bb68896566..1c6178f5870 100644 --- a/controllers/account/config/default/manager_auth_proxy_patch.yaml +++ b/controllers/account/config/default/manager_auth_proxy_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This patch inject a sidecar container which is a HTTP proxy for the # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews. apiVersion: apps/v1 diff --git a/controllers/account/config/default/manager_config_patch.yaml b/controllers/account/config/default/manager_config_patch.yaml index 6c400155cfb..ca4883fc5ce 100644 --- a/controllers/account/config/default/manager_config_patch.yaml +++ b/controllers/account/config/default/manager_config_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/controllers/account/config/default/manager_webhook_patch.yaml b/controllers/account/config/default/manager_webhook_patch.yaml index 738de350b71..ade33aa9d5f 100644 --- a/controllers/account/config/default/manager_webhook_patch.yaml +++ b/controllers/account/config/default/manager_webhook_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/controllers/account/config/default/webhookcainjection_patch.yaml b/controllers/account/config/default/webhookcainjection_patch.yaml index 9ce0d73a49b..bcaf743f52c 100644 --- a/controllers/account/config/default/webhookcainjection_patch.yaml +++ b/controllers/account/config/default/webhookcainjection_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This patch add annotation to admission webhook config and # the variables $(CERTIFICATE_NAMESPACE) and $(CERTIFICATE_NAME) will be substituted by kustomize. apiVersion: admissionregistration.k8s.io/v1 diff --git a/controllers/account/config/manager/controller_manager_config.yaml b/controllers/account/config/manager/controller_manager_config.yaml index 7461595f2a5..fd68e304ee2 100644 --- a/controllers/account/config/manager/controller_manager_config.yaml +++ b/controllers/account/config/manager/controller_manager_config.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 kind: ControllerManagerConfig health: diff --git a/controllers/account/config/manager/kustomization.yaml b/controllers/account/config/manager/kustomization.yaml index bdd5af0c36d..1a40d7e4e6b 100644 --- a/controllers/account/config/manager/kustomization.yaml +++ b/controllers/account/config/manager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - manager.yaml diff --git a/controllers/account/config/manager/manager.yaml b/controllers/account/config/manager/manager.yaml index 8c968e8ce43..72cbbeb7963 100644 --- a/controllers/account/config/manager/manager.yaml +++ b/controllers/account/config/manager/manager.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/account/config/prometheus/kustomization.yaml b/controllers/account/config/prometheus/kustomization.yaml index ed137168a1d..a32baf71b1b 100644 --- a/controllers/account/config/prometheus/kustomization.yaml +++ b/controllers/account/config/prometheus/kustomization.yaml @@ -1,2 +1,16 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - monitor.yaml diff --git a/controllers/account/config/prometheus/monitor.yaml b/controllers/account/config/prometheus/monitor.yaml index d19136ae710..32401c3d7fd 100644 --- a/controllers/account/config/prometheus/monitor.yaml +++ b/controllers/account/config/prometheus/monitor.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 diff --git a/controllers/account/config/rbac/account_editor_role.yaml b/controllers/account/config/rbac/account_editor_role.yaml index 99a02ac7876..925bae1772e 100644 --- a/controllers/account/config/rbac/account_editor_role.yaml +++ b/controllers/account/config/rbac/account_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit accounts. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/account_viewer_role.yaml b/controllers/account/config/rbac/account_viewer_role.yaml index 810f86aae1e..7a25a6a23e0 100644 --- a/controllers/account/config/rbac/account_viewer_role.yaml +++ b/controllers/account/config/rbac/account_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view accounts. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/auth_proxy_client_clusterrole.yaml b/controllers/account/config/rbac/auth_proxy_client_clusterrole.yaml index 51a75db47a5..0e421adaba5 100644 --- a/controllers/account/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/controllers/account/config/rbac/auth_proxy_client_clusterrole.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/account/config/rbac/auth_proxy_role.yaml b/controllers/account/config/rbac/auth_proxy_role.yaml index 80e1857c594..7539c6cd1e8 100644 --- a/controllers/account/config/rbac/auth_proxy_role.yaml +++ b/controllers/account/config/rbac/auth_proxy_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/account/config/rbac/auth_proxy_role_binding.yaml b/controllers/account/config/rbac/auth_proxy_role_binding.yaml index ec7acc0a1b7..84c16ebd8d6 100644 --- a/controllers/account/config/rbac/auth_proxy_role_binding.yaml +++ b/controllers/account/config/rbac/auth_proxy_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/account/config/rbac/auth_proxy_service.yaml b/controllers/account/config/rbac/auth_proxy_service.yaml index 71f1797279e..70e47bf6783 100644 --- a/controllers/account/config/rbac/auth_proxy_service.yaml +++ b/controllers/account/config/rbac/auth_proxy_service.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Service metadata: diff --git a/controllers/account/config/rbac/billinginfoquery_editor_role.yaml b/controllers/account/config/rbac/billinginfoquery_editor_role.yaml index 25cf9e5fb80..3e53d63f1ed 100644 --- a/controllers/account/config/rbac/billinginfoquery_editor_role.yaml +++ b/controllers/account/config/rbac/billinginfoquery_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit billinginfoqueries. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/billinginfoquery_viewer_role.yaml b/controllers/account/config/rbac/billinginfoquery_viewer_role.yaml index f700a088fb8..0c779bd3971 100644 --- a/controllers/account/config/rbac/billinginfoquery_viewer_role.yaml +++ b/controllers/account/config/rbac/billinginfoquery_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view billinginfoqueries. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/billingrecordquery_editor_role.yaml b/controllers/account/config/rbac/billingrecordquery_editor_role.yaml index dec8134c79c..c4fca751b42 100644 --- a/controllers/account/config/rbac/billingrecordquery_editor_role.yaml +++ b/controllers/account/config/rbac/billingrecordquery_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit billingrecordqueries. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/billingrecordquery_viewer_role.yaml b/controllers/account/config/rbac/billingrecordquery_viewer_role.yaml index fb450521596..e9edac3624f 100644 --- a/controllers/account/config/rbac/billingrecordquery_viewer_role.yaml +++ b/controllers/account/config/rbac/billingrecordquery_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view billingrecordqueries. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/debt_editor_role.yaml b/controllers/account/config/rbac/debt_editor_role.yaml index 17169e551c5..afc3d5ca66f 100644 --- a/controllers/account/config/rbac/debt_editor_role.yaml +++ b/controllers/account/config/rbac/debt_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit debts. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/debt_viewer_role.yaml b/controllers/account/config/rbac/debt_viewer_role.yaml index 0d645bd722e..c2611da02c9 100644 --- a/controllers/account/config/rbac/debt_viewer_role.yaml +++ b/controllers/account/config/rbac/debt_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view debts. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/kustomization.yaml b/controllers/account/config/rbac/kustomization.yaml index 731832a6ac3..9ea536e0fd4 100644 --- a/controllers/account/config/rbac/kustomization.yaml +++ b/controllers/account/config/rbac/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource diff --git a/controllers/account/config/rbac/leader_election_role.yaml b/controllers/account/config/rbac/leader_election_role.yaml index 4190ec8059e..7ccba03c976 100644 --- a/controllers/account/config/rbac/leader_election_role.yaml +++ b/controllers/account/config/rbac/leader_election_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/controllers/account/config/rbac/leader_election_role_binding.yaml b/controllers/account/config/rbac/leader_election_role_binding.yaml index 1d1321ed4f0..493b75ed399 100644 --- a/controllers/account/config/rbac/leader_election_role_binding.yaml +++ b/controllers/account/config/rbac/leader_election_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/controllers/account/config/rbac/namespacebillinghistory_editor_role.yaml b/controllers/account/config/rbac/namespacebillinghistory_editor_role.yaml index c67751d0243..4a3625eff72 100644 --- a/controllers/account/config/rbac/namespacebillinghistory_editor_role.yaml +++ b/controllers/account/config/rbac/namespacebillinghistory_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit namespacebillinghistories. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/namespacebillinghistory_viewer_role.yaml b/controllers/account/config/rbac/namespacebillinghistory_viewer_role.yaml index 3e14d94addf..4bb420e4cc1 100644 --- a/controllers/account/config/rbac/namespacebillinghistory_viewer_role.yaml +++ b/controllers/account/config/rbac/namespacebillinghistory_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view namespacebillinghistories. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/payment_editor_role.yaml b/controllers/account/config/rbac/payment_editor_role.yaml index 9982a58c7b8..589d87ae1dc 100644 --- a/controllers/account/config/rbac/payment_editor_role.yaml +++ b/controllers/account/config/rbac/payment_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit payments. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/payment_viewer_role.yaml b/controllers/account/config/rbac/payment_viewer_role.yaml index e8e591b9503..936aa75ded0 100644 --- a/controllers/account/config/rbac/payment_viewer_role.yaml +++ b/controllers/account/config/rbac/payment_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view payments. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/pricequery_editor_role.yaml b/controllers/account/config/rbac/pricequery_editor_role.yaml index 0ff70670c21..56c1e4dfa04 100644 --- a/controllers/account/config/rbac/pricequery_editor_role.yaml +++ b/controllers/account/config/rbac/pricequery_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit pricequeries. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/pricequery_viewer_role.yaml b/controllers/account/config/rbac/pricequery_viewer_role.yaml index 1d5eeaded8b..218a7dfeb77 100644 --- a/controllers/account/config/rbac/pricequery_viewer_role.yaml +++ b/controllers/account/config/rbac/pricequery_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view pricequeries. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/role.yaml b/controllers/account/config/rbac/role.yaml index 4f6d785de98..64e79f9144a 100644 --- a/controllers/account/config/rbac/role.yaml +++ b/controllers/account/config/rbac/role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/role_binding.yaml b/controllers/account/config/rbac/role_binding.yaml index 2070ede4462..749383ffe1e 100644 --- a/controllers/account/config/rbac/role_binding.yaml +++ b/controllers/account/config/rbac/role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/account/config/rbac/service_account.yaml b/controllers/account/config/rbac/service_account.yaml index 7cd6025bfc4..b8ca78e010b 100644 --- a/controllers/account/config/rbac/service_account.yaml +++ b/controllers/account/config/rbac/service_account.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/controllers/account/config/rbac/transfer_editor_role.yaml b/controllers/account/config/rbac/transfer_editor_role.yaml index 25ec128cf60..6c8bfffef57 100644 --- a/controllers/account/config/rbac/transfer_editor_role.yaml +++ b/controllers/account/config/rbac/transfer_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit transfers. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/rbac/transfer_viewer_role.yaml b/controllers/account/config/rbac/transfer_viewer_role.yaml index a73a9e13538..253667def01 100644 --- a/controllers/account/config/rbac/transfer_viewer_role.yaml +++ b/controllers/account/config/rbac/transfer_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view transfers. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/account/config/samples/account_v1_account.yaml b/controllers/account/config/samples/account_v1_account.yaml index 5cbd25bb349..5133a1b896a 100644 --- a/controllers/account/config/samples/account_v1_account.yaml +++ b/controllers/account/config/samples/account_v1_account.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: account.sealos.io/v1 kind: Account metadata: diff --git a/controllers/account/config/samples/account_v1_billinginfoquery.yaml b/controllers/account/config/samples/account_v1_billinginfoquery.yaml index cf7ab88b9d4..9a728da77b6 100644 --- a/controllers/account/config/samples/account_v1_billinginfoquery.yaml +++ b/controllers/account/config/samples/account_v1_billinginfoquery.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: account.sealos.io/v1 kind: BillingInfoQuery metadata: diff --git a/controllers/account/config/samples/account_v1_billingrecordquery.yaml b/controllers/account/config/samples/account_v1_billingrecordquery.yaml index fd4e3cba71a..524b569511a 100644 --- a/controllers/account/config/samples/account_v1_billingrecordquery.yaml +++ b/controllers/account/config/samples/account_v1_billingrecordquery.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: account.sealos.io/v1 kind: BillingRecordQuery metadata: diff --git a/controllers/account/config/samples/account_v1_debt.yaml b/controllers/account/config/samples/account_v1_debt.yaml index d22539a7f89..b359c82ae4e 100644 --- a/controllers/account/config/samples/account_v1_debt.yaml +++ b/controllers/account/config/samples/account_v1_debt.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: account.sealos.io/v1 kind: Debt metadata: diff --git a/controllers/account/config/samples/account_v1_namespacebillinghistory.yaml b/controllers/account/config/samples/account_v1_namespacebillinghistory.yaml index 023829ea78c..de10eb0c693 100644 --- a/controllers/account/config/samples/account_v1_namespacebillinghistory.yaml +++ b/controllers/account/config/samples/account_v1_namespacebillinghistory.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: account.sealos.io/v1 kind: NamespaceBillingHistory metadata: diff --git a/controllers/account/config/samples/account_v1_payment.yaml b/controllers/account/config/samples/account_v1_payment.yaml index bd23ad06adb..dfb2e701d47 100644 --- a/controllers/account/config/samples/account_v1_payment.yaml +++ b/controllers/account/config/samples/account_v1_payment.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/account/config/samples/account_v1_pricequery.yaml b/controllers/account/config/samples/account_v1_pricequery.yaml index 88ab4d372d1..23da8793581 100644 --- a/controllers/account/config/samples/account_v1_pricequery.yaml +++ b/controllers/account/config/samples/account_v1_pricequery.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: account.sealos.io/v1 kind: PriceQuery metadata: diff --git a/controllers/account/config/samples/account_v1_transfer.yaml b/controllers/account/config/samples/account_v1_transfer.yaml index 0de98376130..dc584ca24cc 100644 --- a/controllers/account/config/samples/account_v1_transfer.yaml +++ b/controllers/account/config/samples/account_v1_transfer.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: account.sealos.io/v1 kind: Transfer metadata: diff --git a/controllers/account/config/webhook/kustomization.yaml b/controllers/account/config/webhook/kustomization.yaml index 9cf26134e4d..1bf9427c242 100644 --- a/controllers/account/config/webhook/kustomization.yaml +++ b/controllers/account/config/webhook/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - manifests.yaml - service.yaml diff --git a/controllers/account/config/webhook/kustomizeconfig.yaml b/controllers/account/config/webhook/kustomizeconfig.yaml index e809f78208e..24bbc5440aa 100644 --- a/controllers/account/config/webhook/kustomizeconfig.yaml +++ b/controllers/account/config/webhook/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # the following config is for teaching kustomize where to look at when substituting vars. # It requires kustomize v2.1.0 or newer to work properly. nameReference: diff --git a/controllers/account/config/webhook/manifests.yaml b/controllers/account/config/webhook/manifests.yaml index fe87541c706..fe4fb619f2c 100644 --- a/controllers/account/config/webhook/manifests.yaml +++ b/controllers/account/config/webhook/manifests.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration diff --git a/controllers/account/config/webhook/service.yaml b/controllers/account/config/webhook/service.yaml index 3f638bd9c68..03198124dd5 100644 --- a/controllers/account/config/webhook/service.yaml +++ b/controllers/account/config/webhook/service.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Service diff --git a/controllers/account/controllers/billing_controller.go b/controllers/account/controllers/billing_controller.go index e8049713838..39f5bbf82d7 100644 --- a/controllers/account/controllers/billing_controller.go +++ b/controllers/account/controllers/billing_controller.go @@ -25,21 +25,23 @@ import ( "github.com/labring/sealos/controllers/pkg/resources" "github.com/labring/sealos/controllers/pkg/utils/env" - "github.com/labring/sealos/controllers/pkg/crypto" "k8s.io/apimachinery/pkg/types" + "github.com/labring/sealos/controllers/pkg/crypto" + v12 "github.com/labring/sealos/controllers/account/api/v1" "sigs.k8s.io/controller-runtime/pkg/controller" "github.com/go-logr/logr" - "github.com/labring/sealos/controllers/pkg/database" - v1 "github.com/labring/sealos/controllers/user/api/v1" corev1 "k8s.io/api/core/v1" "sigs.k8s.io/controller-runtime/pkg/builder" "sigs.k8s.io/controller-runtime/pkg/event" "sigs.k8s.io/controller-runtime/pkg/predicate" + "github.com/labring/sealos/controllers/pkg/database" + v1 "github.com/labring/sealos/controllers/user/api/v1" + "k8s.io/apimachinery/pkg/runtime" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" diff --git a/controllers/account/controllers/billinginfoquery_controller.go b/controllers/account/controllers/billinginfoquery_controller.go index ccfad83245a..a84c94589fb 100644 --- a/controllers/account/controllers/billinginfoquery_controller.go +++ b/controllers/account/controllers/billinginfoquery_controller.go @@ -31,10 +31,11 @@ import ( "github.com/labring/sealos/controllers/pkg/database" - accountv1 "github.com/labring/sealos/controllers/account/api/v1" "k8s.io/apimachinery/pkg/runtime" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" + + accountv1 "github.com/labring/sealos/controllers/account/api/v1" ) // BillingInfoQueryReconciler reconciles a BillingInfoQuery object diff --git a/controllers/account/controllers/cache/cache.go b/controllers/account/controllers/cache/cache.go index 43eb38565d1..4498c2d0d08 100644 --- a/controllers/account/controllers/cache/cache.go +++ b/controllers/account/controllers/cache/cache.go @@ -19,10 +19,11 @@ import ( v1 "github.com/labring/sealos/controllers/user/api/v1" - accountv1 "github.com/labring/sealos/controllers/account/api/v1" corev1 "k8s.io/api/core/v1" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" + + accountv1 "github.com/labring/sealos/controllers/account/api/v1" ) func SetupCache(mgr ctrl.Manager) error { diff --git a/controllers/account/controllers/debt_controller.go b/controllers/account/controllers/debt_controller.go index 4d0cb9eaba3..6a2e077206b 100644 --- a/controllers/account/controllers/debt_controller.go +++ b/controllers/account/controllers/debt_controller.go @@ -23,6 +23,7 @@ import ( "time" "github.com/go-logr/logr" + accountv1 "github.com/labring/sealos/controllers/account/api/v1" v1 "github.com/labring/sealos/controllers/pkg/notification/api/v1" "github.com/labring/sealos/controllers/pkg/utils/env" diff --git a/controllers/account/controllers/namespacebillinghistory_controller.go b/controllers/account/controllers/namespacebillinghistory_controller.go index f11f6d6ef76..d3ae83d1b40 100644 --- a/controllers/account/controllers/namespacebillinghistory_controller.go +++ b/controllers/account/controllers/namespacebillinghistory_controller.go @@ -25,13 +25,15 @@ import ( userv1 "github.com/labring/sealos/controllers/user/api/v1" "github.com/go-logr/logr" - "github.com/labring/sealos/controllers/pkg/database" "sigs.k8s.io/controller-runtime/pkg/log" - accountv1 "github.com/labring/sealos/controllers/account/api/v1" + "github.com/labring/sealos/controllers/pkg/database" + "k8s.io/apimachinery/pkg/runtime" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" + + accountv1 "github.com/labring/sealos/controllers/account/api/v1" ) // NamespaceBillingHistoryReconciler reconciles a NamespaceBillingHistory object diff --git a/controllers/account/controllers/payment_controller.go b/controllers/account/controllers/payment_controller.go index 0ab83f26dd2..c6a5ab44738 100644 --- a/controllers/account/controllers/payment_controller.go +++ b/controllers/account/controllers/payment_controller.go @@ -20,9 +20,10 @@ import ( "context" "time" - "github.com/labring/sealos/controllers/pkg/pay" "sigs.k8s.io/controller-runtime/pkg/controller" + "github.com/labring/sealos/controllers/pkg/pay" + "sigs.k8s.io/controller-runtime/pkg/builder" "github.com/go-logr/logr" diff --git a/controllers/account/controllers/pod_controller.go b/controllers/account/controllers/pod_controller.go index 036c642fb60..1a775744291 100644 --- a/controllers/account/controllers/pod_controller.go +++ b/controllers/account/controllers/pod_controller.go @@ -21,10 +21,11 @@ import ( "os" "strconv" - v1 "github.com/labring/sealos/controllers/account/api/v1" "k8s.io/apimachinery/pkg/api/errors" "sigs.k8s.io/controller-runtime/pkg/reconcile" + v1 "github.com/labring/sealos/controllers/account/api/v1" + "github.com/go-logr/logr" "sigs.k8s.io/controller-runtime/pkg/controller" diff --git a/controllers/account/controllers/transfer_controller.go b/controllers/account/controllers/transfer_controller.go index 785f4dd9201..5665f7840f3 100644 --- a/controllers/account/controllers/transfer_controller.go +++ b/controllers/account/controllers/transfer_controller.go @@ -30,15 +30,17 @@ import ( "github.com/labring/sealos/controllers/pkg/crypto" "github.com/go-logr/logr" - v1 "github.com/labring/sealos/controllers/pkg/notification/api/v1" gonanoid "github.com/matoous/go-nanoid/v2" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/builder" - accountv1 "github.com/labring/sealos/controllers/account/api/v1" + v1 "github.com/labring/sealos/controllers/pkg/notification/api/v1" + "k8s.io/apimachinery/pkg/runtime" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" + + accountv1 "github.com/labring/sealos/controllers/account/api/v1" ) var MinBalance int64 = 10_000000 diff --git a/controllers/admission/Dockerfile b/controllers/admission/Dockerfile index 565ff40d7f2..f46e2e963ba 100644 --- a/controllers/admission/Dockerfile +++ b/controllers/admission/Dockerfile @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM gcr.io/distroless/static:nonroot ARG TARGETARCH diff --git a/controllers/admission/api/v1/icp.go b/controllers/admission/api/v1/icp.go index 145473ab990..7367f8955ab 100644 --- a/controllers/admission/api/v1/icp.go +++ b/controllers/admission/api/v1/icp.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package v1 import ( diff --git a/controllers/admission/api/v1/icp_test.go b/controllers/admission/api/v1/icp_test.go index 4daa9f9c9bb..699c43e7c8a 100644 --- a/controllers/admission/api/v1/icp_test.go +++ b/controllers/admission/api/v1/icp_test.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package v1 import ( diff --git a/controllers/admission/config/certmanager/certificate.yaml b/controllers/admission/config/certmanager/certificate.yaml index 4fdef9fcf08..6ce36a726ae 100644 --- a/controllers/admission/config/certmanager/certificate.yaml +++ b/controllers/admission/config/certmanager/certificate.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following manifests contain a self-signed issuer CR and a certificate CR. # More document can be found at https://docs.cert-manager.io # WARNING: Targets CertManager v1.0. Check https://cert-manager.io/docs/installation/upgrading/ for breaking changes. diff --git a/controllers/admission/config/certmanager/kustomization.yaml b/controllers/admission/config/certmanager/kustomization.yaml index bebea5a595e..27b9b3c0745 100644 --- a/controllers/admission/config/certmanager/kustomization.yaml +++ b/controllers/admission/config/certmanager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - certificate.yaml diff --git a/controllers/admission/config/certmanager/kustomizeconfig.yaml b/controllers/admission/config/certmanager/kustomizeconfig.yaml index cf6f89e8892..16a49d9d4d5 100644 --- a/controllers/admission/config/certmanager/kustomizeconfig.yaml +++ b/controllers/admission/config/certmanager/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This configuration is for teaching kustomize how to update name ref substitution nameReference: - kind: Issuer diff --git a/controllers/admission/config/default/kustomization.yaml b/controllers/admission/config/default/kustomization.yaml index 9192822fd2a..110411fb860 100644 --- a/controllers/admission/config/default/kustomization.yaml +++ b/controllers/admission/config/default/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Adds namespace to all resources. namespace: sealos-system diff --git a/controllers/admission/config/default/manager_auth_proxy_patch.yaml b/controllers/admission/config/default/manager_auth_proxy_patch.yaml index 73fad2a6754..52d57cd15fd 100644 --- a/controllers/admission/config/default/manager_auth_proxy_patch.yaml +++ b/controllers/admission/config/default/manager_auth_proxy_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This patch inject a sidecar container which is a HTTP proxy for the # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews. apiVersion: apps/v1 diff --git a/controllers/admission/config/default/manager_config_patch.yaml b/controllers/admission/config/default/manager_config_patch.yaml index f6f58916922..c03d201a433 100644 --- a/controllers/admission/config/default/manager_config_patch.yaml +++ b/controllers/admission/config/default/manager_config_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/controllers/admission/config/default/manager_webhook_patch.yaml b/controllers/admission/config/default/manager_webhook_patch.yaml index e95086224d8..7bdf128a988 100644 --- a/controllers/admission/config/default/manager_webhook_patch.yaml +++ b/controllers/admission/config/default/manager_webhook_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/controllers/admission/config/default/webhookcainjection_patch.yaml b/controllers/admission/config/default/webhookcainjection_patch.yaml index ae31c646291..0004feaa686 100644 --- a/controllers/admission/config/default/webhookcainjection_patch.yaml +++ b/controllers/admission/config/default/webhookcainjection_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This patch add annotation to admission webhook config and # CERTIFICATE_NAMESPACE and CERTIFICATE_NAME will be substituted by kustomize apiVersion: admissionregistration.k8s.io/v1 diff --git a/controllers/admission/config/manager/kustomization.yaml b/controllers/admission/config/manager/kustomization.yaml index e348e082441..5dc9ffb9588 100644 --- a/controllers/admission/config/manager/kustomization.yaml +++ b/controllers/admission/config/manager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - manager.yaml apiVersion: kustomize.config.k8s.io/v1beta1 diff --git a/controllers/admission/config/manager/manager.yaml b/controllers/admission/config/manager/manager.yaml index 3813933264f..f581754d99a 100644 --- a/controllers/admission/config/manager/manager.yaml +++ b/controllers/admission/config/manager/manager.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/admission/config/prometheus/kustomization.yaml b/controllers/admission/config/prometheus/kustomization.yaml index ed137168a1d..a32baf71b1b 100644 --- a/controllers/admission/config/prometheus/kustomization.yaml +++ b/controllers/admission/config/prometheus/kustomization.yaml @@ -1,2 +1,16 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - monitor.yaml diff --git a/controllers/admission/config/prometheus/monitor.yaml b/controllers/admission/config/prometheus/monitor.yaml index 883f30f3ed3..0c1c0a9c5f6 100644 --- a/controllers/admission/config/prometheus/monitor.yaml +++ b/controllers/admission/config/prometheus/monitor.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 diff --git a/controllers/admission/config/rbac/auth_proxy_client_clusterrole.yaml b/controllers/admission/config/rbac/auth_proxy_client_clusterrole.yaml index 628ada6b711..1c0a0307566 100644 --- a/controllers/admission/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/controllers/admission/config/rbac/auth_proxy_client_clusterrole.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/admission/config/rbac/auth_proxy_role.yaml b/controllers/admission/config/rbac/auth_proxy_role.yaml index bc2e4a2640a..897e695e58b 100644 --- a/controllers/admission/config/rbac/auth_proxy_role.yaml +++ b/controllers/admission/config/rbac/auth_proxy_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/admission/config/rbac/auth_proxy_role_binding.yaml b/controllers/admission/config/rbac/auth_proxy_role_binding.yaml index da89849fbc6..921855f2a7e 100644 --- a/controllers/admission/config/rbac/auth_proxy_role_binding.yaml +++ b/controllers/admission/config/rbac/auth_proxy_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/admission/config/rbac/auth_proxy_service.yaml b/controllers/admission/config/rbac/auth_proxy_service.yaml index f8ea97c6dbb..ec8a56f25c4 100644 --- a/controllers/admission/config/rbac/auth_proxy_service.yaml +++ b/controllers/admission/config/rbac/auth_proxy_service.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Service metadata: diff --git a/controllers/admission/config/rbac/kustomization.yaml b/controllers/admission/config/rbac/kustomization.yaml index 731832a6ac3..9ea536e0fd4 100644 --- a/controllers/admission/config/rbac/kustomization.yaml +++ b/controllers/admission/config/rbac/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource diff --git a/controllers/admission/config/rbac/leader_election_role.yaml b/controllers/admission/config/rbac/leader_election_role.yaml index 409410321c7..531892850f5 100644 --- a/controllers/admission/config/rbac/leader_election_role.yaml +++ b/controllers/admission/config/rbac/leader_election_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/controllers/admission/config/rbac/leader_election_role_binding.yaml b/controllers/admission/config/rbac/leader_election_role_binding.yaml index 9e9ebd45387..602d9c0efde 100644 --- a/controllers/admission/config/rbac/leader_election_role_binding.yaml +++ b/controllers/admission/config/rbac/leader_election_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/controllers/admission/config/rbac/role.yaml b/controllers/admission/config/rbac/role.yaml index aa4f60c028b..b1431168f5d 100644 --- a/controllers/admission/config/rbac/role.yaml +++ b/controllers/admission/config/rbac/role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/admission/config/rbac/role_binding.yaml b/controllers/admission/config/rbac/role_binding.yaml index 5810802df9b..58cb4943345 100644 --- a/controllers/admission/config/rbac/role_binding.yaml +++ b/controllers/admission/config/rbac/role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/admission/config/rbac/service_account.yaml b/controllers/admission/config/rbac/service_account.yaml index e25b13a52b9..878a7825502 100644 --- a/controllers/admission/config/rbac/service_account.yaml +++ b/controllers/admission/config/rbac/service_account.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/controllers/admission/config/webhook/kustomization.yaml b/controllers/admission/config/webhook/kustomization.yaml index 9cf26134e4d..1bf9427c242 100644 --- a/controllers/admission/config/webhook/kustomization.yaml +++ b/controllers/admission/config/webhook/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - manifests.yaml - service.yaml diff --git a/controllers/admission/config/webhook/kustomizeconfig.yaml b/controllers/admission/config/webhook/kustomizeconfig.yaml index 206316e54ff..97752c69ec2 100644 --- a/controllers/admission/config/webhook/kustomizeconfig.yaml +++ b/controllers/admission/config/webhook/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # the following config is for teaching kustomize where to look at when substituting nameReference. # It requires kustomize v2.1.0 or newer to work properly. nameReference: diff --git a/controllers/admission/config/webhook/manifests.yaml b/controllers/admission/config/webhook/manifests.yaml index 91f8e9db4fc..f589b08f5dc 100644 --- a/controllers/admission/config/webhook/manifests.yaml +++ b/controllers/admission/config/webhook/manifests.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration diff --git a/controllers/admission/config/webhook/service.yaml b/controllers/admission/config/webhook/service.yaml index 59640f9894e..be86a997fa4 100644 --- a/controllers/admission/config/webhook/service.yaml +++ b/controllers/admission/config/webhook/service.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Service diff --git a/controllers/app/Dockerfile b/controllers/app/Dockerfile index 40708850e3b..d6a0401ebb4 100644 --- a/controllers/app/Dockerfile +++ b/controllers/app/Dockerfile @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM gcr.io/distroless/static:nonroot ARG TARGETARCH diff --git a/controllers/app/config/crd/bases/app.sealos.io_apps.yaml b/controllers/app/config/crd/bases/app.sealos.io_apps.yaml index 5f782676620..b74dd0a91f5 100644 --- a/controllers/app/config/crd/bases/app.sealos.io_apps.yaml +++ b/controllers/app/config/crd/bases/app.sealos.io_apps.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/app/config/crd/bases/app.sealos.io_instances.yaml b/controllers/app/config/crd/bases/app.sealos.io_instances.yaml index c9a709f9052..2df6dfe1ce8 100644 --- a/controllers/app/config/crd/bases/app.sealos.io_instances.yaml +++ b/controllers/app/config/crd/bases/app.sealos.io_instances.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/app/config/crd/bases/app.sealos.io_templates.yaml b/controllers/app/config/crd/bases/app.sealos.io_templates.yaml index 3e85a52271a..5c7928a5345 100644 --- a/controllers/app/config/crd/bases/app.sealos.io_templates.yaml +++ b/controllers/app/config/crd/bases/app.sealos.io_templates.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/app/config/crd/kustomization.yaml b/controllers/app/config/crd/kustomization.yaml index c54d35021ce..05bd1e17810 100644 --- a/controllers/app/config/crd/kustomization.yaml +++ b/controllers/app/config/crd/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This kustomization.yaml is not intended to be run by itself, # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default diff --git a/controllers/app/config/crd/kustomizeconfig.yaml b/controllers/app/config/crd/kustomizeconfig.yaml index ec5c150a9df..9c99fc52fb2 100644 --- a/controllers/app/config/crd/kustomizeconfig.yaml +++ b/controllers/app/config/crd/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This file is for teaching kustomize how to substitute name and namespace reference in CRD nameReference: - kind: Service diff --git a/controllers/app/config/crd/patches/cainjection_in_apps.yaml b/controllers/app/config/crd/patches/cainjection_in_apps.yaml index 0b64e07f743..cc0fc86752a 100644 --- a/controllers/app/config/crd/patches/cainjection_in_apps.yaml +++ b/controllers/app/config/crd/patches/cainjection_in_apps.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/app/config/crd/patches/cainjection_in_instances.yaml b/controllers/app/config/crd/patches/cainjection_in_instances.yaml index 613d084e389..046f1170be6 100644 --- a/controllers/app/config/crd/patches/cainjection_in_instances.yaml +++ b/controllers/app/config/crd/patches/cainjection_in_instances.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/app/config/crd/patches/cainjection_in_templates.yaml b/controllers/app/config/crd/patches/cainjection_in_templates.yaml index 0dd3665ab9f..2129e6c60aa 100644 --- a/controllers/app/config/crd/patches/cainjection_in_templates.yaml +++ b/controllers/app/config/crd/patches/cainjection_in_templates.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/app/config/crd/patches/webhook_in_apps.yaml b/controllers/app/config/crd/patches/webhook_in_apps.yaml index b1bcd111335..abf50cdac7a 100644 --- a/controllers/app/config/crd/patches/webhook_in_apps.yaml +++ b/controllers/app/config/crd/patches/webhook_in_apps.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/app/config/crd/patches/webhook_in_instances.yaml b/controllers/app/config/crd/patches/webhook_in_instances.yaml index 83955b466c2..f9042e8cf41 100644 --- a/controllers/app/config/crd/patches/webhook_in_instances.yaml +++ b/controllers/app/config/crd/patches/webhook_in_instances.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/app/config/crd/patches/webhook_in_templates.yaml b/controllers/app/config/crd/patches/webhook_in_templates.yaml index 08f2521a4bb..4669a2435ee 100644 --- a/controllers/app/config/crd/patches/webhook_in_templates.yaml +++ b/controllers/app/config/crd/patches/webhook_in_templates.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/app/config/default/kustomization.yaml b/controllers/app/config/default/kustomization.yaml index 3ef51d13385..a3b746fed91 100644 --- a/controllers/app/config/default/kustomization.yaml +++ b/controllers/app/config/default/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Adds namespace to all resources. namespace: app-system diff --git a/controllers/app/config/default/manager_auth_proxy_patch.yaml b/controllers/app/config/default/manager_auth_proxy_patch.yaml index 73fad2a6754..52d57cd15fd 100644 --- a/controllers/app/config/default/manager_auth_proxy_patch.yaml +++ b/controllers/app/config/default/manager_auth_proxy_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This patch inject a sidecar container which is a HTTP proxy for the # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews. apiVersion: apps/v1 diff --git a/controllers/app/config/default/manager_config_patch.yaml b/controllers/app/config/default/manager_config_patch.yaml index f6f58916922..c03d201a433 100644 --- a/controllers/app/config/default/manager_config_patch.yaml +++ b/controllers/app/config/default/manager_config_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/controllers/app/config/manager/kustomization.yaml b/controllers/app/config/manager/kustomization.yaml index 13749deb8c3..94b72fc4306 100644 --- a/controllers/app/config/manager/kustomization.yaml +++ b/controllers/app/config/manager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - manager.yaml apiVersion: kustomize.config.k8s.io/v1beta1 diff --git a/controllers/app/config/manager/manager.yaml b/controllers/app/config/manager/manager.yaml index e0f9bfef019..67e9dfd5b70 100644 --- a/controllers/app/config/manager/manager.yaml +++ b/controllers/app/config/manager/manager.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/app/config/prometheus/kustomization.yaml b/controllers/app/config/prometheus/kustomization.yaml index ed137168a1d..a32baf71b1b 100644 --- a/controllers/app/config/prometheus/kustomization.yaml +++ b/controllers/app/config/prometheus/kustomization.yaml @@ -1,2 +1,16 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - monitor.yaml diff --git a/controllers/app/config/prometheus/monitor.yaml b/controllers/app/config/prometheus/monitor.yaml index b1f26693007..b3ad6c95979 100644 --- a/controllers/app/config/prometheus/monitor.yaml +++ b/controllers/app/config/prometheus/monitor.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 diff --git a/controllers/app/config/rbac/app_editor_role.yaml b/controllers/app/config/rbac/app_editor_role.yaml index 1b3f351fb68..333c04e59c7 100644 --- a/controllers/app/config/rbac/app_editor_role.yaml +++ b/controllers/app/config/rbac/app_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit apps. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/app/config/rbac/app_viewer_role.yaml b/controllers/app/config/rbac/app_viewer_role.yaml index bbae10f043d..1f718f14c1d 100644 --- a/controllers/app/config/rbac/app_viewer_role.yaml +++ b/controllers/app/config/rbac/app_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view apps. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/app/config/rbac/auth_proxy_client_clusterrole.yaml b/controllers/app/config/rbac/auth_proxy_client_clusterrole.yaml index 3f109726d91..556e8202e37 100644 --- a/controllers/app/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/controllers/app/config/rbac/auth_proxy_client_clusterrole.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/app/config/rbac/auth_proxy_role.yaml b/controllers/app/config/rbac/auth_proxy_role.yaml index 13af9290f80..9969bbdff1e 100644 --- a/controllers/app/config/rbac/auth_proxy_role.yaml +++ b/controllers/app/config/rbac/auth_proxy_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/app/config/rbac/auth_proxy_role_binding.yaml b/controllers/app/config/rbac/auth_proxy_role_binding.yaml index 9462b51c32d..83adf076e17 100644 --- a/controllers/app/config/rbac/auth_proxy_role_binding.yaml +++ b/controllers/app/config/rbac/auth_proxy_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/app/config/rbac/auth_proxy_service.yaml b/controllers/app/config/rbac/auth_proxy_service.yaml index 2a2413254a2..a3712c78c16 100644 --- a/controllers/app/config/rbac/auth_proxy_service.yaml +++ b/controllers/app/config/rbac/auth_proxy_service.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Service metadata: diff --git a/controllers/app/config/rbac/instance_editor_role.yaml b/controllers/app/config/rbac/instance_editor_role.yaml index f0de5c548e2..4c623b6d767 100644 --- a/controllers/app/config/rbac/instance_editor_role.yaml +++ b/controllers/app/config/rbac/instance_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit instances. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/app/config/rbac/instance_viewer_role.yaml b/controllers/app/config/rbac/instance_viewer_role.yaml index 6ae36e2eb90..88ca60d28a3 100644 --- a/controllers/app/config/rbac/instance_viewer_role.yaml +++ b/controllers/app/config/rbac/instance_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view instances. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/app/config/rbac/kustomization.yaml b/controllers/app/config/rbac/kustomization.yaml index 731832a6ac3..9ea536e0fd4 100644 --- a/controllers/app/config/rbac/kustomization.yaml +++ b/controllers/app/config/rbac/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource diff --git a/controllers/app/config/rbac/leader_election_role.yaml b/controllers/app/config/rbac/leader_election_role.yaml index 78dc696c5fc..0acbe185a34 100644 --- a/controllers/app/config/rbac/leader_election_role.yaml +++ b/controllers/app/config/rbac/leader_election_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/controllers/app/config/rbac/leader_election_role_binding.yaml b/controllers/app/config/rbac/leader_election_role_binding.yaml index b20a06c9700..f5f8fea5831 100644 --- a/controllers/app/config/rbac/leader_election_role_binding.yaml +++ b/controllers/app/config/rbac/leader_election_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/controllers/app/config/rbac/role.yaml b/controllers/app/config/rbac/role.yaml index bc3695e563e..db62cb6bd87 100644 --- a/controllers/app/config/rbac/role.yaml +++ b/controllers/app/config/rbac/role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/app/config/rbac/role_binding.yaml b/controllers/app/config/rbac/role_binding.yaml index 1a38c01ff27..0847b1a02f6 100644 --- a/controllers/app/config/rbac/role_binding.yaml +++ b/controllers/app/config/rbac/role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/app/config/rbac/service_account.yaml b/controllers/app/config/rbac/service_account.yaml index 18b9a9669d1..6d70cb1b32b 100644 --- a/controllers/app/config/rbac/service_account.yaml +++ b/controllers/app/config/rbac/service_account.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/controllers/app/config/rbac/template_editor_role.yaml b/controllers/app/config/rbac/template_editor_role.yaml index 064ebd946d4..07e3f8fcd6b 100644 --- a/controllers/app/config/rbac/template_editor_role.yaml +++ b/controllers/app/config/rbac/template_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit templates. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/app/config/rbac/template_viewer_role.yaml b/controllers/app/config/rbac/template_viewer_role.yaml index a51cfd93fdc..e754ee648db 100644 --- a/controllers/app/config/rbac/template_viewer_role.yaml +++ b/controllers/app/config/rbac/template_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view templates. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/app/config/samples/app_v1_app.yaml b/controllers/app/config/samples/app_v1_app.yaml index 55d7e229460..cc01eaf8c0c 100644 --- a/controllers/app/config/samples/app_v1_app.yaml +++ b/controllers/app/config/samples/app_v1_app.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: app.sealos.io/v1 kind: App metadata: diff --git a/controllers/app/config/samples/app_v1_instance.yaml b/controllers/app/config/samples/app_v1_instance.yaml index c00108e4725..a8508eef650 100644 --- a/controllers/app/config/samples/app_v1_instance.yaml +++ b/controllers/app/config/samples/app_v1_instance.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: app.sealos.io/v1 kind: Instance metadata: diff --git a/controllers/app/config/samples/app_v1beta1_template.yaml b/controllers/app/config/samples/app_v1beta1_template.yaml index bae98c8be8f..bf0af110db3 100644 --- a/controllers/app/config/samples/app_v1beta1_template.yaml +++ b/controllers/app/config/samples/app_v1beta1_template.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: app.sealos.io/v1 kind: Template metadata: diff --git a/controllers/app/config/samples/kustomization.yaml b/controllers/app/config/samples/kustomization.yaml index aa32a0f980f..cee8a8de5ee 100644 --- a/controllers/app/config/samples/kustomization.yaml +++ b/controllers/app/config/samples/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + ## Append samples of your project ## resources: - app_v1_app.yaml diff --git a/controllers/app/deploy/appexample/cr.yaml b/controllers/app/deploy/appexample/cr.yaml index 4814461c71e..eceadf5a9b2 100644 --- a/controllers/app/deploy/appexample/cr.yaml +++ b/controllers/app/deploy/appexample/cr.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: app.sealos.io/v1 kind: App metadata: diff --git a/controllers/app/deploy/manifests/deploy.yaml b/controllers/app/deploy/manifests/deploy.yaml index e79ef410e4e..483fe411e37 100644 --- a/controllers/app/deploy/manifests/deploy.yaml +++ b/controllers/app/deploy/manifests/deploy.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/app/deploy/manifests/rbac.yaml b/controllers/app/deploy/manifests/rbac.yaml index 6f5994cb262..581da264033 100644 --- a/controllers/app/deploy/manifests/rbac.yaml +++ b/controllers/app/deploy/manifests/rbac.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: diff --git a/controllers/db/adminer/Dockerfile b/controllers/db/adminer/Dockerfile index c96de14c338..7972b84735f 100644 --- a/controllers/db/adminer/Dockerfile +++ b/controllers/db/adminer/Dockerfile @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM gcr.io/distroless/static:nonroot ARG TARGETARCH diff --git a/controllers/db/adminer/config/crd/bases/adminer.db.sealos.io_adminers.yaml b/controllers/db/adminer/config/crd/bases/adminer.db.sealos.io_adminers.yaml index d4a6fcc95c3..1faa95bb04a 100644 --- a/controllers/db/adminer/config/crd/bases/adminer.db.sealos.io_adminers.yaml +++ b/controllers/db/adminer/config/crd/bases/adminer.db.sealos.io_adminers.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/db/adminer/config/crd/kustomization.yaml b/controllers/db/adminer/config/crd/kustomization.yaml index b1156817ab9..027d5388b1d 100644 --- a/controllers/db/adminer/config/crd/kustomization.yaml +++ b/controllers/db/adminer/config/crd/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This kustomization.yaml is not intended to be run by itself, # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default diff --git a/controllers/db/adminer/config/crd/kustomizeconfig.yaml b/controllers/db/adminer/config/crd/kustomizeconfig.yaml index ec5c150a9df..9c99fc52fb2 100644 --- a/controllers/db/adminer/config/crd/kustomizeconfig.yaml +++ b/controllers/db/adminer/config/crd/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This file is for teaching kustomize how to substitute name and namespace reference in CRD nameReference: - kind: Service diff --git a/controllers/db/adminer/config/default/kustomization.yaml b/controllers/db/adminer/config/default/kustomization.yaml index 9cc06d94f9b..4aec3d82b95 100644 --- a/controllers/db/adminer/config/default/kustomization.yaml +++ b/controllers/db/adminer/config/default/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Adds namespace to all resources. namespace: adminer-system diff --git a/controllers/db/adminer/config/default/manager_auth_proxy_patch.yaml b/controllers/db/adminer/config/default/manager_auth_proxy_patch.yaml index 1191005a90a..c08e375ec9c 100644 --- a/controllers/db/adminer/config/default/manager_auth_proxy_patch.yaml +++ b/controllers/db/adminer/config/default/manager_auth_proxy_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This patch inject a sidecar container which is a HTTP proxy for the # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews. apiVersion: apps/v1 diff --git a/controllers/db/adminer/config/default/manager_config_patch.yaml b/controllers/db/adminer/config/default/manager_config_patch.yaml index c6b17c222fd..3cd743b9a18 100644 --- a/controllers/db/adminer/config/default/manager_config_patch.yaml +++ b/controllers/db/adminer/config/default/manager_config_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/controllers/db/adminer/config/manager/controller_manager_config.yaml b/controllers/db/adminer/config/manager/controller_manager_config.yaml index aec20179899..6bfcb2cfd06 100644 --- a/controllers/db/adminer/config/manager/controller_manager_config.yaml +++ b/controllers/db/adminer/config/manager/controller_manager_config.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 kind: ControllerManagerConfig health: diff --git a/controllers/db/adminer/config/manager/kustomization.yaml b/controllers/db/adminer/config/manager/kustomization.yaml index 18192c5332f..47f1973770f 100644 --- a/controllers/db/adminer/config/manager/kustomization.yaml +++ b/controllers/db/adminer/config/manager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - manager.yaml diff --git a/controllers/db/adminer/config/manager/manager.yaml b/controllers/db/adminer/config/manager/manager.yaml index ef770140ec5..2b915aa23e8 100644 --- a/controllers/db/adminer/config/manager/manager.yaml +++ b/controllers/db/adminer/config/manager/manager.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/db/adminer/config/prometheus/kustomization.yaml b/controllers/db/adminer/config/prometheus/kustomization.yaml index ed137168a1d..a32baf71b1b 100644 --- a/controllers/db/adminer/config/prometheus/kustomization.yaml +++ b/controllers/db/adminer/config/prometheus/kustomization.yaml @@ -1,2 +1,16 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - monitor.yaml diff --git a/controllers/db/adminer/config/prometheus/monitor.yaml b/controllers/db/adminer/config/prometheus/monitor.yaml index ce95e2f90a4..47559fa8d21 100644 --- a/controllers/db/adminer/config/prometheus/monitor.yaml +++ b/controllers/db/adminer/config/prometheus/monitor.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 diff --git a/controllers/db/adminer/config/rbac/adminer_editor_role.yaml b/controllers/db/adminer/config/rbac/adminer_editor_role.yaml index 952b4e79578..9450efeeb07 100644 --- a/controllers/db/adminer/config/rbac/adminer_editor_role.yaml +++ b/controllers/db/adminer/config/rbac/adminer_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit adminers. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/db/adminer/config/rbac/adminer_viewer_role.yaml b/controllers/db/adminer/config/rbac/adminer_viewer_role.yaml index a44691455da..f637db627da 100644 --- a/controllers/db/adminer/config/rbac/adminer_viewer_role.yaml +++ b/controllers/db/adminer/config/rbac/adminer_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view adminers. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/db/adminer/config/rbac/auth_proxy_client_clusterrole.yaml b/controllers/db/adminer/config/rbac/auth_proxy_client_clusterrole.yaml index c229bdaf6a2..a906e39db70 100644 --- a/controllers/db/adminer/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/controllers/db/adminer/config/rbac/auth_proxy_client_clusterrole.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/db/adminer/config/rbac/auth_proxy_role.yaml b/controllers/db/adminer/config/rbac/auth_proxy_role.yaml index 3fd539a4289..6269242fbd6 100644 --- a/controllers/db/adminer/config/rbac/auth_proxy_role.yaml +++ b/controllers/db/adminer/config/rbac/auth_proxy_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/db/adminer/config/rbac/auth_proxy_role_binding.yaml b/controllers/db/adminer/config/rbac/auth_proxy_role_binding.yaml index f0f64f73959..4fee35e61a8 100644 --- a/controllers/db/adminer/config/rbac/auth_proxy_role_binding.yaml +++ b/controllers/db/adminer/config/rbac/auth_proxy_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/db/adminer/config/rbac/auth_proxy_service.yaml b/controllers/db/adminer/config/rbac/auth_proxy_service.yaml index 5bce1472a62..882e6377d96 100644 --- a/controllers/db/adminer/config/rbac/auth_proxy_service.yaml +++ b/controllers/db/adminer/config/rbac/auth_proxy_service.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Service metadata: diff --git a/controllers/db/adminer/config/rbac/kustomization.yaml b/controllers/db/adminer/config/rbac/kustomization.yaml index 731832a6ac3..9ea536e0fd4 100644 --- a/controllers/db/adminer/config/rbac/kustomization.yaml +++ b/controllers/db/adminer/config/rbac/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource diff --git a/controllers/db/adminer/config/rbac/leader_election_role.yaml b/controllers/db/adminer/config/rbac/leader_election_role.yaml index 07ea542e70b..c86ca06610a 100644 --- a/controllers/db/adminer/config/rbac/leader_election_role.yaml +++ b/controllers/db/adminer/config/rbac/leader_election_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/controllers/db/adminer/config/rbac/leader_election_role_binding.yaml b/controllers/db/adminer/config/rbac/leader_election_role_binding.yaml index 435a1d00dfd..4a93f819fc0 100644 --- a/controllers/db/adminer/config/rbac/leader_election_role_binding.yaml +++ b/controllers/db/adminer/config/rbac/leader_election_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/controllers/db/adminer/config/rbac/role.yaml b/controllers/db/adminer/config/rbac/role.yaml index 09899432a4c..8d5aa84e840 100644 --- a/controllers/db/adminer/config/rbac/role.yaml +++ b/controllers/db/adminer/config/rbac/role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/db/adminer/config/rbac/role_binding.yaml b/controllers/db/adminer/config/rbac/role_binding.yaml index 572888286a3..3db39690c15 100644 --- a/controllers/db/adminer/config/rbac/role_binding.yaml +++ b/controllers/db/adminer/config/rbac/role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/db/adminer/config/rbac/service_account.yaml b/controllers/db/adminer/config/rbac/service_account.yaml index bf7ea63c502..f3d9934bde8 100644 --- a/controllers/db/adminer/config/rbac/service_account.yaml +++ b/controllers/db/adminer/config/rbac/service_account.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/controllers/db/adminer/config/samples/adminer_v1_adminer.yaml b/controllers/db/adminer/config/samples/adminer_v1_adminer.yaml index e0f212063d4..305c28ecb18 100644 --- a/controllers/db/adminer/config/samples/adminer_v1_adminer.yaml +++ b/controllers/db/adminer/config/samples/adminer_v1_adminer.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: adminer.db.sealos.io/v1 kind: Adminer metadata: diff --git a/controllers/db/adminer/controllers/secret.go b/controllers/db/adminer/controllers/secret.go index 39d3f600921..6a67c0842e2 100644 --- a/controllers/db/adminer/controllers/secret.go +++ b/controllers/db/adminer/controllers/secret.go @@ -17,9 +17,10 @@ limitations under the License. package controllers import ( - adminerv1 "github.com/labring/sealos/controllers/db/adminer/api/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + + adminerv1 "github.com/labring/sealos/controllers/db/adminer/api/v1" ) func (r *AdminerReconciler) createSecret(adminer *adminerv1.Adminer) *corev1.Secret { diff --git a/controllers/db/adminer/main.go b/controllers/db/adminer/main.go index 499c54348a3..8635421ecd8 100644 --- a/controllers/db/adminer/main.go +++ b/controllers/db/adminer/main.go @@ -25,14 +25,15 @@ import ( _ "k8s.io/client-go/plugin/pkg/client/auth" apisix "github.com/apache/apisix-ingress-controller/pkg/kube/apisix/apis/config/v2beta3" - adminerv1 "github.com/labring/sealos/controllers/db/adminer/api/v1" - "github.com/labring/sealos/controllers/db/adminer/controllers" "k8s.io/apimachinery/pkg/runtime" utilruntime "k8s.io/apimachinery/pkg/util/runtime" clientgoscheme "k8s.io/client-go/kubernetes/scheme" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/healthz" "sigs.k8s.io/controller-runtime/pkg/log/zap" + + adminerv1 "github.com/labring/sealos/controllers/db/adminer/api/v1" + "github.com/labring/sealos/controllers/db/adminer/controllers" //+kubebuilder:scaffold:imports ) diff --git a/controllers/job/init/Dockerfile b/controllers/job/init/Dockerfile index 6b056472c06..c6425c37270 100644 --- a/controllers/job/init/Dockerfile +++ b/controllers/job/init/Dockerfile @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM gcr.io/distroless/static:nonroot ARG TARGETARCH diff --git a/controllers/job/init/cmd/preset/main.go b/controllers/job/init/cmd/preset/main.go index 19913b6cd23..ef94948674a 100644 --- a/controllers/job/init/cmd/preset/main.go +++ b/controllers/job/init/cmd/preset/main.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/controllers/job/init/deploy/manifests/deploy.yaml b/controllers/job/init/deploy/manifests/deploy.yaml index 3a9460bc115..5191e819ab7 100644 --- a/controllers/job/init/deploy/manifests/deploy.yaml +++ b/controllers/job/init/deploy/manifests/deploy.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/controllers/job/init/internal/util/common/uuid.go b/controllers/job/init/internal/util/common/uuid.go index c42c3cde8bf..e29d149bebe 100644 --- a/controllers/job/init/internal/util/common/uuid.go +++ b/controllers/job/init/internal/util/common/uuid.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package common import "github.com/google/uuid" diff --git a/controllers/job/init/internal/util/controller/user.go b/controllers/job/init/internal/util/controller/user.go index 6a286a46fb9..8f95409d676 100644 --- a/controllers/job/init/internal/util/controller/user.go +++ b/controllers/job/init/internal/util/controller/user.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package controller import ( diff --git a/controllers/job/init/internal/util/database/database.go b/controllers/job/init/internal/util/database/database.go index 326c7533610..d1965550110 100644 --- a/controllers/job/init/internal/util/database/database.go +++ b/controllers/job/init/internal/util/database/database.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package database import ( diff --git a/controllers/job/init/internal/util/database/password.go b/controllers/job/init/internal/util/database/password.go index 6072e0571c8..94d26ca3d38 100644 --- a/controllers/job/init/internal/util/database/password.go +++ b/controllers/job/init/internal/util/database/password.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package database import ( diff --git a/controllers/job/init/internal/util/database/types.go b/controllers/job/init/internal/util/database/types.go index 694ac595ede..d775a23fe9a 100644 --- a/controllers/job/init/internal/util/database/types.go +++ b/controllers/job/init/internal/util/database/types.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package database import ( diff --git a/controllers/job/init/internal/util/database/user.go b/controllers/job/init/internal/util/database/user.go index cf3d324cc8a..e8e3d2a647d 100644 --- a/controllers/job/init/internal/util/database/user.go +++ b/controllers/job/init/internal/util/database/user.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package database import ( diff --git a/controllers/job/init/internal/util/errors/errors.go b/controllers/job/init/internal/util/errors/errors.go index 649f3d0ef11..e37f3102da3 100644 --- a/controllers/job/init/internal/util/errors/errors.go +++ b/controllers/job/init/internal/util/errors/errors.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package errors import "fmt" diff --git a/controllers/license/Dockerfile b/controllers/license/Dockerfile index b1fec58d220..38839c30c69 100644 --- a/controllers/license/Dockerfile +++ b/controllers/license/Dockerfile @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM gcr.io/distroless/static:nonroot ARG TARGETARCH diff --git a/controllers/license/config/crd/bases/license.sealos.io_licenses.yaml b/controllers/license/config/crd/bases/license.sealos.io_licenses.yaml index 1538ed956da..73c7a339537 100644 --- a/controllers/license/config/crd/bases/license.sealos.io_licenses.yaml +++ b/controllers/license/config/crd/bases/license.sealos.io_licenses.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/license/config/crd/kustomization.yaml b/controllers/license/config/crd/kustomization.yaml index 64681839462..f01cd6fd123 100644 --- a/controllers/license/config/crd/kustomization.yaml +++ b/controllers/license/config/crd/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This kustomization.yaml is not intended to be run by itself, # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default diff --git a/controllers/license/config/crd/kustomizeconfig.yaml b/controllers/license/config/crd/kustomizeconfig.yaml index ec5c150a9df..9c99fc52fb2 100644 --- a/controllers/license/config/crd/kustomizeconfig.yaml +++ b/controllers/license/config/crd/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This file is for teaching kustomize how to substitute name and namespace reference in CRD nameReference: - kind: Service diff --git a/controllers/license/config/crd/patches/cainjection_in_licenses.yaml b/controllers/license/config/crd/patches/cainjection_in_licenses.yaml index 1c3c4334431..9e784f2259b 100644 --- a/controllers/license/config/crd/patches/cainjection_in_licenses.yaml +++ b/controllers/license/config/crd/patches/cainjection_in_licenses.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/license/config/crd/patches/webhook_in_licenses.yaml b/controllers/license/config/crd/patches/webhook_in_licenses.yaml index 2ab51b4e50a..06f60bdc066 100644 --- a/controllers/license/config/crd/patches/webhook_in_licenses.yaml +++ b/controllers/license/config/crd/patches/webhook_in_licenses.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/license/config/default/kustomization.yaml b/controllers/license/config/default/kustomization.yaml index 4b18094da29..5001d03f72f 100644 --- a/controllers/license/config/default/kustomization.yaml +++ b/controllers/license/config/default/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Adds namespace to all resources. namespace: license-system diff --git a/controllers/license/config/default/manager_auth_proxy_patch.yaml b/controllers/license/config/default/manager_auth_proxy_patch.yaml index 73fad2a6754..52d57cd15fd 100644 --- a/controllers/license/config/default/manager_auth_proxy_patch.yaml +++ b/controllers/license/config/default/manager_auth_proxy_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This patch inject a sidecar container which is a HTTP proxy for the # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews. apiVersion: apps/v1 diff --git a/controllers/license/config/default/manager_config_patch.yaml b/controllers/license/config/default/manager_config_patch.yaml index f6f58916922..c03d201a433 100644 --- a/controllers/license/config/default/manager_config_patch.yaml +++ b/controllers/license/config/default/manager_config_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/controllers/license/config/manager/kustomization.yaml b/controllers/license/config/manager/kustomization.yaml index 4ef792a3a94..74ab814126c 100644 --- a/controllers/license/config/manager/kustomization.yaml +++ b/controllers/license/config/manager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - manager.yaml apiVersion: kustomize.config.k8s.io/v1beta1 diff --git a/controllers/license/config/manager/manager.yaml b/controllers/license/config/manager/manager.yaml index 12a7f0756ea..d845ef4cd71 100644 --- a/controllers/license/config/manager/manager.yaml +++ b/controllers/license/config/manager/manager.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/license/config/prometheus/kustomization.yaml b/controllers/license/config/prometheus/kustomization.yaml index ed137168a1d..a32baf71b1b 100644 --- a/controllers/license/config/prometheus/kustomization.yaml +++ b/controllers/license/config/prometheus/kustomization.yaml @@ -1,2 +1,16 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - monitor.yaml diff --git a/controllers/license/config/prometheus/monitor.yaml b/controllers/license/config/prometheus/monitor.yaml index a638a2a358f..9e1527ba6bb 100644 --- a/controllers/license/config/prometheus/monitor.yaml +++ b/controllers/license/config/prometheus/monitor.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 diff --git a/controllers/license/config/rbac/auth_proxy_client_clusterrole.yaml b/controllers/license/config/rbac/auth_proxy_client_clusterrole.yaml index 61806ffc81e..2eb5a67bd05 100644 --- a/controllers/license/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/controllers/license/config/rbac/auth_proxy_client_clusterrole.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/license/config/rbac/auth_proxy_role.yaml b/controllers/license/config/rbac/auth_proxy_role.yaml index 132b5783dd5..e41d49089bc 100644 --- a/controllers/license/config/rbac/auth_proxy_role.yaml +++ b/controllers/license/config/rbac/auth_proxy_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/license/config/rbac/auth_proxy_role_binding.yaml b/controllers/license/config/rbac/auth_proxy_role_binding.yaml index 99be6d545fb..4f99e6e695f 100644 --- a/controllers/license/config/rbac/auth_proxy_role_binding.yaml +++ b/controllers/license/config/rbac/auth_proxy_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/license/config/rbac/auth_proxy_service.yaml b/controllers/license/config/rbac/auth_proxy_service.yaml index bb105642907..0fdc0588a7c 100644 --- a/controllers/license/config/rbac/auth_proxy_service.yaml +++ b/controllers/license/config/rbac/auth_proxy_service.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Service metadata: diff --git a/controllers/license/config/rbac/kustomization.yaml b/controllers/license/config/rbac/kustomization.yaml index 731832a6ac3..9ea536e0fd4 100644 --- a/controllers/license/config/rbac/kustomization.yaml +++ b/controllers/license/config/rbac/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource diff --git a/controllers/license/config/rbac/leader_election_role.yaml b/controllers/license/config/rbac/leader_election_role.yaml index fdeee9f91e1..ac345e07488 100644 --- a/controllers/license/config/rbac/leader_election_role.yaml +++ b/controllers/license/config/rbac/leader_election_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/controllers/license/config/rbac/leader_election_role_binding.yaml b/controllers/license/config/rbac/leader_election_role_binding.yaml index 02689d9b655..9d5f16a0407 100644 --- a/controllers/license/config/rbac/leader_election_role_binding.yaml +++ b/controllers/license/config/rbac/leader_election_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/controllers/license/config/rbac/license_editor_role.yaml b/controllers/license/config/rbac/license_editor_role.yaml index af1cbd10191..86182c457da 100644 --- a/controllers/license/config/rbac/license_editor_role.yaml +++ b/controllers/license/config/rbac/license_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit licenses. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/license/config/rbac/license_viewer_role.yaml b/controllers/license/config/rbac/license_viewer_role.yaml index 9b5d0be7157..f0aced53478 100644 --- a/controllers/license/config/rbac/license_viewer_role.yaml +++ b/controllers/license/config/rbac/license_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view licenses. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/license/config/rbac/role.yaml b/controllers/license/config/rbac/role.yaml index 8b38ac20137..42f23127b04 100644 --- a/controllers/license/config/rbac/role.yaml +++ b/controllers/license/config/rbac/role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/license/config/rbac/role_binding.yaml b/controllers/license/config/rbac/role_binding.yaml index c1e41b4d4cc..8bb92a96784 100644 --- a/controllers/license/config/rbac/role_binding.yaml +++ b/controllers/license/config/rbac/role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/license/config/rbac/service_account.yaml b/controllers/license/config/rbac/service_account.yaml index 6e2109017b9..32fd1a1c998 100644 --- a/controllers/license/config/rbac/service_account.yaml +++ b/controllers/license/config/rbac/service_account.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/controllers/license/config/samples/kustomization.yaml b/controllers/license/config/samples/kustomization.yaml index 9ac5719d45f..7cf1c9a58c4 100644 --- a/controllers/license/config/samples/kustomization.yaml +++ b/controllers/license/config/samples/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + ## Append samples of your project ## resources: - license_v1_license.yaml diff --git a/controllers/license/config/samples/license_v1_license.yaml b/controllers/license/config/samples/license_v1_license.yaml index e2009a768f1..bf8027c56b5 100644 --- a/controllers/license/config/samples/license_v1_license.yaml +++ b/controllers/license/config/samples/license_v1_license.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: license.sealos.io/v1 kind: License metadata: diff --git a/controllers/license/deploy/manifests/deploy.yaml b/controllers/license/deploy/manifests/deploy.yaml index 03c9f97cb93..0c9c4081a74 100644 --- a/controllers/license/deploy/manifests/deploy.yaml +++ b/controllers/license/deploy/manifests/deploy.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/license/internal/controller/license_controller.go b/controllers/license/internal/controller/license_controller.go index 249b074a30e..82867e00655 100644 --- a/controllers/license/internal/controller/license_controller.go +++ b/controllers/license/internal/controller/license_controller.go @@ -22,15 +22,16 @@ import ( "github.com/go-logr/logr" - licensev1 "github.com/labring/sealos/controllers/license/api/v1" - accountutil "github.com/labring/sealos/controllers/license/internal/util/account" - "github.com/labring/sealos/controllers/license/internal/util/database" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/builder" "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/predicate" + + licensev1 "github.com/labring/sealos/controllers/license/api/v1" + accountutil "github.com/labring/sealos/controllers/license/internal/util/account" + "github.com/labring/sealos/controllers/license/internal/util/database" ) // LicenseReconciler reconciles a License object diff --git a/controllers/license/internal/controller/license_recorder.go b/controllers/license/internal/controller/license_recorder.go index 2454a119cc7..16f2a1ffd33 100644 --- a/controllers/license/internal/controller/license_recorder.go +++ b/controllers/license/internal/controller/license_recorder.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package controller import ( diff --git a/controllers/license/internal/controller/license_validator.go b/controllers/license/internal/controller/license_validator.go index f904a9b63d6..383719af8c7 100644 --- a/controllers/license/internal/controller/license_validator.go +++ b/controllers/license/internal/controller/license_validator.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package controller import ( diff --git a/controllers/license/internal/util/account/account.go b/controllers/license/internal/util/account/account.go index f077ca034a0..13146323c10 100644 --- a/controllers/license/internal/util/account/account.go +++ b/controllers/license/internal/util/account/account.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package account import ( diff --git a/controllers/license/internal/util/account/account_test.go b/controllers/license/internal/util/account/account_test.go index c33be9e795b..94c25afedd0 100644 --- a/controllers/license/internal/util/account/account_test.go +++ b/controllers/license/internal/util/account/account_test.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package account import "testing" diff --git a/controllers/license/internal/util/claims/claims.go b/controllers/license/internal/util/claims/claims.go index 2e86ac75455..b3daf928f7d 100644 --- a/controllers/license/internal/util/claims/claims.go +++ b/controllers/license/internal/util/claims/claims.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package claims import ( diff --git a/controllers/license/internal/util/claims/claims_test.go b/controllers/license/internal/util/claims/claims_test.go index 715288bab4e..267362ee3a0 100644 --- a/controllers/license/internal/util/claims/claims_test.go +++ b/controllers/license/internal/util/claims/claims_test.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package claims import ( diff --git a/controllers/license/internal/util/database/database.go b/controllers/license/internal/util/database/database.go index 2e55df17271..888db5a6eea 100644 --- a/controllers/license/internal/util/database/database.go +++ b/controllers/license/internal/util/database/database.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package database import ( diff --git a/controllers/license/internal/util/database/database_test.go b/controllers/license/internal/util/database/database_test.go index 3e3b9e1a861..5f8df1b462a 100644 --- a/controllers/license/internal/util/database/database_test.go +++ b/controllers/license/internal/util/database/database_test.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package database // TODO Add tests diff --git a/controllers/license/internal/util/errors/errors.go b/controllers/license/internal/util/errors/errors.go index bcaaf92174d..88ebc0ffad0 100644 --- a/controllers/license/internal/util/errors/errors.go +++ b/controllers/license/internal/util/errors/errors.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package errors import ( diff --git a/controllers/license/internal/util/key/key.go b/controllers/license/internal/util/key/key.go index 65f003383c1..90b7bd96703 100644 --- a/controllers/license/internal/util/key/key.go +++ b/controllers/license/internal/util/key/key.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package key // EncryptionKey is the key used to decode license token, base64 encoded diff --git a/controllers/license/internal/util/license/validate.go b/controllers/license/internal/util/license/validate.go index 988c852ac95..2acdcfa5c3f 100644 --- a/controllers/license/internal/util/license/validate.go +++ b/controllers/license/internal/util/license/validate.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package license import ( diff --git a/controllers/license/internal/util/license/validate_test.go b/controllers/license/internal/util/license/validate_test.go index 59eae042d7e..aeb54e1bb9d 100644 --- a/controllers/license/internal/util/license/validate_test.go +++ b/controllers/license/internal/util/license/validate_test.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package license import ( diff --git a/controllers/license/internal/util/meta/meta.go b/controllers/license/internal/util/meta/meta.go index 60a2ebb5cc5..13d812aecb4 100644 --- a/controllers/license/internal/util/meta/meta.go +++ b/controllers/license/internal/util/meta/meta.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meta import ( diff --git a/controllers/node/Dockerfile b/controllers/node/Dockerfile index c1071767b6d..6d2f9dfa1df 100644 --- a/controllers/node/Dockerfile +++ b/controllers/node/Dockerfile @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM gcr.io/distroless/static:nonroot ARG TARGETARCH diff --git a/controllers/node/config/configmap/configmap.yaml b/controllers/node/config/configmap/configmap.yaml index 4646091a2c3..68d1661b53a 100644 --- a/controllers/node/config/configmap/configmap.yaml +++ b/controllers/node/config/configmap/configmap.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: v1 kind: ConfigMap diff --git a/controllers/node/config/configmap/kustomization.yaml b/controllers/node/config/configmap/kustomization.yaml index 80a3ead29dc..e933a95ccff 100644 --- a/controllers/node/config/configmap/kustomization.yaml +++ b/controllers/node/config/configmap/kustomization.yaml @@ -1,2 +1,16 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - configmap.yaml \ No newline at end of file diff --git a/controllers/node/config/default/kustomization.yaml b/controllers/node/config/default/kustomization.yaml index 070f572b667..ecda75b2e0b 100644 --- a/controllers/node/config/default/kustomization.yaml +++ b/controllers/node/config/default/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Adds namespace to all resources. namespace: node-system diff --git a/controllers/node/config/default/manager_auth_proxy_patch.yaml b/controllers/node/config/default/manager_auth_proxy_patch.yaml index 687c4a7a27b..08e00222707 100644 --- a/controllers/node/config/default/manager_auth_proxy_patch.yaml +++ b/controllers/node/config/default/manager_auth_proxy_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This patch inject a sidecar container which is a HTTP proxy for the # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews. apiVersion: apps/v1 diff --git a/controllers/node/config/default/manager_config_patch.yaml b/controllers/node/config/default/manager_config_patch.yaml index f6f58916922..c03d201a433 100644 --- a/controllers/node/config/default/manager_config_patch.yaml +++ b/controllers/node/config/default/manager_config_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/controllers/node/config/manager/kustomization.yaml b/controllers/node/config/manager/kustomization.yaml index b020ac67899..b0ccddc780b 100644 --- a/controllers/node/config/manager/kustomization.yaml +++ b/controllers/node/config/manager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - manager.yaml apiVersion: kustomize.config.k8s.io/v1beta1 diff --git a/controllers/node/config/manager/manager.yaml b/controllers/node/config/manager/manager.yaml index 771eb11cf9a..abe9e048052 100644 --- a/controllers/node/config/manager/manager.yaml +++ b/controllers/node/config/manager/manager.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/node/config/prometheus/kustomization.yaml b/controllers/node/config/prometheus/kustomization.yaml index ed137168a1d..a32baf71b1b 100644 --- a/controllers/node/config/prometheus/kustomization.yaml +++ b/controllers/node/config/prometheus/kustomization.yaml @@ -1,2 +1,16 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - monitor.yaml diff --git a/controllers/node/config/prometheus/monitor.yaml b/controllers/node/config/prometheus/monitor.yaml index c45df0438fb..c89862ae429 100644 --- a/controllers/node/config/prometheus/monitor.yaml +++ b/controllers/node/config/prometheus/monitor.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 diff --git a/controllers/node/config/rbac/auth_proxy_client_clusterrole.yaml b/controllers/node/config/rbac/auth_proxy_client_clusterrole.yaml index 1b6885fa495..e850ec4e63b 100644 --- a/controllers/node/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/controllers/node/config/rbac/auth_proxy_client_clusterrole.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/node/config/rbac/auth_proxy_role.yaml b/controllers/node/config/rbac/auth_proxy_role.yaml index a98eb988679..f54befcebd7 100644 --- a/controllers/node/config/rbac/auth_proxy_role.yaml +++ b/controllers/node/config/rbac/auth_proxy_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/node/config/rbac/auth_proxy_role_binding.yaml b/controllers/node/config/rbac/auth_proxy_role_binding.yaml index 7520f33da9c..11e8437da72 100644 --- a/controllers/node/config/rbac/auth_proxy_role_binding.yaml +++ b/controllers/node/config/rbac/auth_proxy_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/node/config/rbac/auth_proxy_service.yaml b/controllers/node/config/rbac/auth_proxy_service.yaml index 665c50cda93..a6854fee75d 100644 --- a/controllers/node/config/rbac/auth_proxy_service.yaml +++ b/controllers/node/config/rbac/auth_proxy_service.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Service metadata: diff --git a/controllers/node/config/rbac/kustomization.yaml b/controllers/node/config/rbac/kustomization.yaml index 731832a6ac3..9ea536e0fd4 100644 --- a/controllers/node/config/rbac/kustomization.yaml +++ b/controllers/node/config/rbac/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource diff --git a/controllers/node/config/rbac/leader_election_role.yaml b/controllers/node/config/rbac/leader_election_role.yaml index 2e7dac5d2de..5a8094abc18 100644 --- a/controllers/node/config/rbac/leader_election_role.yaml +++ b/controllers/node/config/rbac/leader_election_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/controllers/node/config/rbac/leader_election_role_binding.yaml b/controllers/node/config/rbac/leader_election_role_binding.yaml index b31858b3fbf..f16db977837 100644 --- a/controllers/node/config/rbac/leader_election_role_binding.yaml +++ b/controllers/node/config/rbac/leader_election_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/controllers/node/config/rbac/role.yaml b/controllers/node/config/rbac/role.yaml index f9f61a0e6cb..93c37530fa5 100644 --- a/controllers/node/config/rbac/role.yaml +++ b/controllers/node/config/rbac/role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/node/config/rbac/role_binding.yaml b/controllers/node/config/rbac/role_binding.yaml index 38b9c3354ad..ce0fded7c4c 100644 --- a/controllers/node/config/rbac/role_binding.yaml +++ b/controllers/node/config/rbac/role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/node/config/rbac/service_account.yaml b/controllers/node/config/rbac/service_account.yaml index 5a2dd618199..e465c6e2b75 100644 --- a/controllers/node/config/rbac/service_account.yaml +++ b/controllers/node/config/rbac/service_account.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/controllers/node/deploy/manifests/deploy.yaml b/controllers/node/deploy/manifests/deploy.yaml index 719baebb931..5f5a012f8fb 100644 --- a/controllers/node/deploy/manifests/deploy.yaml +++ b/controllers/node/deploy/manifests/deploy.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/pkg/database/mongodb_test.go b/controllers/pkg/database/mongodb_test.go index 0694d465ee5..fd474597351 100644 --- a/controllers/pkg/database/mongodb_test.go +++ b/controllers/pkg/database/mongodb_test.go @@ -27,9 +27,10 @@ import ( "github.com/dustin/go-humanize" "sigs.k8s.io/yaml" - accountv1 "github.com/labring/sealos/controllers/account/api/v1" "go.mongodb.org/mongo-driver/mongo" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + + accountv1 "github.com/labring/sealos/controllers/account/api/v1" ) func TestMongoDB_GetMeteringOwnerTimeResult(t *testing.T) { diff --git a/controllers/pkg/metering/config/crd/bases/metering.common.sealos.io_extensionresourceprices.yaml b/controllers/pkg/metering/config/crd/bases/metering.common.sealos.io_extensionresourceprices.yaml index ab055188570..35f69b51d79 100644 --- a/controllers/pkg/metering/config/crd/bases/metering.common.sealos.io_extensionresourceprices.yaml +++ b/controllers/pkg/metering/config/crd/bases/metering.common.sealos.io_extensionresourceprices.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/pkg/metering/config/crd/bases/metering.common.sealos.io_resources.yaml b/controllers/pkg/metering/config/crd/bases/metering.common.sealos.io_resources.yaml index d5a6fda9857..d52f19b0e92 100644 --- a/controllers/pkg/metering/config/crd/bases/metering.common.sealos.io_resources.yaml +++ b/controllers/pkg/metering/config/crd/bases/metering.common.sealos.io_resources.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/pkg/metering/config/crd/kustomization.yaml b/controllers/pkg/metering/config/crd/kustomization.yaml index 862f6046b40..4b6586b42a2 100644 --- a/controllers/pkg/metering/config/crd/kustomization.yaml +++ b/controllers/pkg/metering/config/crd/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This kustomization.yaml is not intended to be run by itself, # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default diff --git a/controllers/pkg/metering/config/crd/patches/cainjection_in_extensionresourceprice.yaml b/controllers/pkg/metering/config/crd/patches/cainjection_in_extensionresourceprice.yaml index fcf44e5617b..8339ef6b7e4 100644 --- a/controllers/pkg/metering/config/crd/patches/cainjection_in_extensionresourceprice.yaml +++ b/controllers/pkg/metering/config/crd/patches/cainjection_in_extensionresourceprice.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/pkg/metering/config/crd/patches/cainjection_in_resources.yaml b/controllers/pkg/metering/config/crd/patches/cainjection_in_resources.yaml index d800e0bb102..7c078e0bf8f 100644 --- a/controllers/pkg/metering/config/crd/patches/cainjection_in_resources.yaml +++ b/controllers/pkg/metering/config/crd/patches/cainjection_in_resources.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/pkg/notification/config/crd/bases/notification.sealos.io_notifications.yaml b/controllers/pkg/notification/config/crd/bases/notification.sealos.io_notifications.yaml index b1237389281..a338a8e6ce8 100644 --- a/controllers/pkg/notification/config/crd/bases/notification.sealos.io_notifications.yaml +++ b/controllers/pkg/notification/config/crd/bases/notification.sealos.io_notifications.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/pkg/notification/config/crd/kustomization.yaml b/controllers/pkg/notification/config/crd/kustomization.yaml index 88a091b8df6..31b816ed5b5 100644 --- a/controllers/pkg/notification/config/crd/kustomization.yaml +++ b/controllers/pkg/notification/config/crd/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This kustomization.yaml is not intended to be run by itself, # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default diff --git a/controllers/pkg/notification/config/crd/kustomizeconfig.yaml b/controllers/pkg/notification/config/crd/kustomizeconfig.yaml index ec5c150a9df..9c99fc52fb2 100644 --- a/controllers/pkg/notification/config/crd/kustomizeconfig.yaml +++ b/controllers/pkg/notification/config/crd/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This file is for teaching kustomize how to substitute name and namespace reference in CRD nameReference: - kind: Service diff --git a/controllers/pkg/notification/config/crd/patches/cainjection_in_notifications.yaml b/controllers/pkg/notification/config/crd/patches/cainjection_in_notifications.yaml index d074ca19cd4..4c23cd683fc 100644 --- a/controllers/pkg/notification/config/crd/patches/cainjection_in_notifications.yaml +++ b/controllers/pkg/notification/config/crd/patches/cainjection_in_notifications.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/pkg/notification/utils/manager.go b/controllers/pkg/notification/utils/manager.go index 1fbe74926ce..955197b2919 100644 --- a/controllers/pkg/notification/utils/manager.go +++ b/controllers/pkg/notification/utils/manager.go @@ -21,6 +21,7 @@ import ( "time" "github.com/go-logr/logr" + v1 "github.com/labring/sealos/controllers/pkg/notification/api/v1" "github.com/labring/sealos/controllers/pkg/utils/logger" diff --git a/controllers/pkg/pay/stripe.go b/controllers/pkg/pay/stripe.go index b358c1db1c7..0c527623142 100644 --- a/controllers/pkg/pay/stripe.go +++ b/controllers/pkg/pay/stripe.go @@ -19,8 +19,9 @@ import ( "os" "strings" - "github.com/labring/sealos/controllers/pkg/utils/env" "github.com/stripe/stripe-go/v74" + + "github.com/labring/sealos/controllers/pkg/utils/env" ) var DefaultURL = fmt.Sprintf("https://%s", env.GetEnvWithDefault("DOMAIN", DefaultDomain)) diff --git a/controllers/pkg/resources/named.go b/controllers/pkg/resources/named.go index ec86903911d..d6abd993ab0 100644 --- a/controllers/pkg/resources/named.go +++ b/controllers/pkg/resources/named.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package resources import ( diff --git a/controllers/resources/Dockerfile b/controllers/resources/Dockerfile index f9d7cc7dfa8..4c5ab5f5d18 100644 --- a/controllers/resources/Dockerfile +++ b/controllers/resources/Dockerfile @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM gcr.io/distroless/static:nonroot ARG TARGETARCH diff --git a/controllers/resources/config/default/kustomization.yaml b/controllers/resources/config/default/kustomization.yaml index 06115128e66..3afa168e562 100644 --- a/controllers/resources/config/default/kustomization.yaml +++ b/controllers/resources/config/default/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Adds namespace to all resources. namespace: resources-system diff --git a/controllers/resources/config/default/manager_auth_proxy_patch.yaml b/controllers/resources/config/default/manager_auth_proxy_patch.yaml index a80933ffc51..0251da0ea9b 100644 --- a/controllers/resources/config/default/manager_auth_proxy_patch.yaml +++ b/controllers/resources/config/default/manager_auth_proxy_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This patch inject a sidecar container which is a HTTP proxy for the # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews. apiVersion: apps/v1 diff --git a/controllers/resources/config/default/manager_config_patch.yaml b/controllers/resources/config/default/manager_config_patch.yaml index 6c400155cfb..ca4883fc5ce 100644 --- a/controllers/resources/config/default/manager_config_patch.yaml +++ b/controllers/resources/config/default/manager_config_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/controllers/resources/config/manager/controller_manager_config.yaml b/controllers/resources/config/manager/controller_manager_config.yaml index 7461595f2a5..fd68e304ee2 100644 --- a/controllers/resources/config/manager/controller_manager_config.yaml +++ b/controllers/resources/config/manager/controller_manager_config.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 kind: ControllerManagerConfig health: diff --git a/controllers/resources/config/manager/kustomization.yaml b/controllers/resources/config/manager/kustomization.yaml index 15d1a5608d8..7d62c26cc09 100644 --- a/controllers/resources/config/manager/kustomization.yaml +++ b/controllers/resources/config/manager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - manager.yaml diff --git a/controllers/resources/config/manager/manager.yaml b/controllers/resources/config/manager/manager.yaml index 15c51ae20ea..c7a14bee316 100644 --- a/controllers/resources/config/manager/manager.yaml +++ b/controllers/resources/config/manager/manager.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/resources/config/prometheus/kustomization.yaml b/controllers/resources/config/prometheus/kustomization.yaml index ed137168a1d..a32baf71b1b 100644 --- a/controllers/resources/config/prometheus/kustomization.yaml +++ b/controllers/resources/config/prometheus/kustomization.yaml @@ -1,2 +1,16 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - monitor.yaml diff --git a/controllers/resources/config/prometheus/monitor.yaml b/controllers/resources/config/prometheus/monitor.yaml index d19136ae710..32401c3d7fd 100644 --- a/controllers/resources/config/prometheus/monitor.yaml +++ b/controllers/resources/config/prometheus/monitor.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 diff --git a/controllers/resources/config/rbac/auth_proxy_client_clusterrole.yaml b/controllers/resources/config/rbac/auth_proxy_client_clusterrole.yaml index 51a75db47a5..0e421adaba5 100644 --- a/controllers/resources/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/controllers/resources/config/rbac/auth_proxy_client_clusterrole.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/resources/config/rbac/auth_proxy_role.yaml b/controllers/resources/config/rbac/auth_proxy_role.yaml index 80e1857c594..7539c6cd1e8 100644 --- a/controllers/resources/config/rbac/auth_proxy_role.yaml +++ b/controllers/resources/config/rbac/auth_proxy_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/resources/config/rbac/auth_proxy_role_binding.yaml b/controllers/resources/config/rbac/auth_proxy_role_binding.yaml index ec7acc0a1b7..84c16ebd8d6 100644 --- a/controllers/resources/config/rbac/auth_proxy_role_binding.yaml +++ b/controllers/resources/config/rbac/auth_proxy_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/resources/config/rbac/auth_proxy_service.yaml b/controllers/resources/config/rbac/auth_proxy_service.yaml index 71f1797279e..70e47bf6783 100644 --- a/controllers/resources/config/rbac/auth_proxy_service.yaml +++ b/controllers/resources/config/rbac/auth_proxy_service.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Service metadata: diff --git a/controllers/resources/config/rbac/kustomization.yaml b/controllers/resources/config/rbac/kustomization.yaml index 731832a6ac3..9ea536e0fd4 100644 --- a/controllers/resources/config/rbac/kustomization.yaml +++ b/controllers/resources/config/rbac/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource diff --git a/controllers/resources/config/rbac/leader_election_role.yaml b/controllers/resources/config/rbac/leader_election_role.yaml index 4190ec8059e..7ccba03c976 100644 --- a/controllers/resources/config/rbac/leader_election_role.yaml +++ b/controllers/resources/config/rbac/leader_election_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/controllers/resources/config/rbac/leader_election_role_binding.yaml b/controllers/resources/config/rbac/leader_election_role_binding.yaml index 1d1321ed4f0..493b75ed399 100644 --- a/controllers/resources/config/rbac/leader_election_role_binding.yaml +++ b/controllers/resources/config/rbac/leader_election_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/controllers/resources/config/rbac/role.yaml b/controllers/resources/config/rbac/role.yaml index 9b1c44d0798..64197d0db46 100644 --- a/controllers/resources/config/rbac/role.yaml +++ b/controllers/resources/config/rbac/role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/resources/config/rbac/role_binding.yaml b/controllers/resources/config/rbac/role_binding.yaml index 2070ede4462..749383ffe1e 100644 --- a/controllers/resources/config/rbac/role_binding.yaml +++ b/controllers/resources/config/rbac/role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/resources/config/rbac/service_account.yaml b/controllers/resources/config/rbac/service_account.yaml index 7cd6025bfc4..b8ca78e010b 100644 --- a/controllers/resources/config/rbac/service_account.yaml +++ b/controllers/resources/config/rbac/service_account.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/controllers/resources/controllers/monitor_controller_test.go b/controllers/resources/controllers/monitor_controller_test.go index a6624916683..f7fb3e07efb 100644 --- a/controllers/resources/controllers/monitor_controller_test.go +++ b/controllers/resources/controllers/monitor_controller_test.go @@ -1,3 +1,17 @@ +// Copyright © 2023 sealos. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package controllers import ( diff --git a/controllers/resources/deploy/manifests/deploy-manager.yaml b/controllers/resources/deploy/manifests/deploy-manager.yaml index b557022947e..934ba4e3276 100644 --- a/controllers/resources/deploy/manifests/deploy-manager.yaml +++ b/controllers/resources/deploy/manifests/deploy-manager.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apps/v1 kind: Deployment diff --git a/controllers/resources/deploy/manifests/deploy.yaml b/controllers/resources/deploy/manifests/deploy.yaml index e7349be104a..54d55f025a0 100644 --- a/controllers/resources/deploy/manifests/deploy.yaml +++ b/controllers/resources/deploy/manifests/deploy.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/resources/metering/Dockerfile b/controllers/resources/metering/Dockerfile index 90c23ffd246..9903dafd741 100644 --- a/controllers/resources/metering/Dockerfile +++ b/controllers/resources/metering/Dockerfile @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM gcr.io/distroless/static:nonroot ARG TARGETARCH diff --git a/controllers/resources/metering/deploy/manifests/deploy.yaml b/controllers/resources/metering/deploy/manifests/deploy.yaml index a0309b872e5..e587008c4da 100644 --- a/controllers/resources/metering/deploy/manifests/deploy.yaml +++ b/controllers/resources/metering/deploy/manifests/deploy.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/terminal/Dockerfile b/controllers/terminal/Dockerfile index a4ea9c82ba1..48fdeecd067 100644 --- a/controllers/terminal/Dockerfile +++ b/controllers/terminal/Dockerfile @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM gcr.io/distroless/static:nonroot ARG TARGETARCH diff --git a/controllers/terminal/config/crd/bases/terminal.sealos.io_terminals.yaml b/controllers/terminal/config/crd/bases/terminal.sealos.io_terminals.yaml index 45d2f360ce4..11731c0da5f 100644 --- a/controllers/terminal/config/crd/bases/terminal.sealos.io_terminals.yaml +++ b/controllers/terminal/config/crd/bases/terminal.sealos.io_terminals.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/terminal/config/crd/kustomization.yaml b/controllers/terminal/config/crd/kustomization.yaml index 3215be47ade..97220760ad6 100644 --- a/controllers/terminal/config/crd/kustomization.yaml +++ b/controllers/terminal/config/crd/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This kustomization.yaml is not intended to be run by itself, # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default diff --git a/controllers/terminal/config/crd/kustomizeconfig.yaml b/controllers/terminal/config/crd/kustomizeconfig.yaml index ec5c150a9df..9c99fc52fb2 100644 --- a/controllers/terminal/config/crd/kustomizeconfig.yaml +++ b/controllers/terminal/config/crd/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This file is for teaching kustomize how to substitute name and namespace reference in CRD nameReference: - kind: Service diff --git a/controllers/terminal/config/crd/patches/cainjection_in_terminals.yaml b/controllers/terminal/config/crd/patches/cainjection_in_terminals.yaml index 06d19a68839..3bc1a5c4b21 100644 --- a/controllers/terminal/config/crd/patches/cainjection_in_terminals.yaml +++ b/controllers/terminal/config/crd/patches/cainjection_in_terminals.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/terminal/config/crd/patches/webhook_in_terminals.yaml b/controllers/terminal/config/crd/patches/webhook_in_terminals.yaml index 53e7e75bd2c..f17fce5e5cb 100644 --- a/controllers/terminal/config/crd/patches/webhook_in_terminals.yaml +++ b/controllers/terminal/config/crd/patches/webhook_in_terminals.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/terminal/config/default/kustomization.yaml b/controllers/terminal/config/default/kustomization.yaml index c84d0d53bc8..44ca9b40f6d 100644 --- a/controllers/terminal/config/default/kustomization.yaml +++ b/controllers/terminal/config/default/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Adds namespace to all resources. namespace: terminal-system diff --git a/controllers/terminal/config/default/manager_auth_proxy_patch.yaml b/controllers/terminal/config/default/manager_auth_proxy_patch.yaml index c4d5c28dbb4..62103d5d016 100644 --- a/controllers/terminal/config/default/manager_auth_proxy_patch.yaml +++ b/controllers/terminal/config/default/manager_auth_proxy_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This patch inject a sidecar container which is a HTTP proxy for the # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews. apiVersion: apps/v1 diff --git a/controllers/terminal/config/default/manager_config_patch.yaml b/controllers/terminal/config/default/manager_config_patch.yaml index 6c400155cfb..ca4883fc5ce 100644 --- a/controllers/terminal/config/default/manager_config_patch.yaml +++ b/controllers/terminal/config/default/manager_config_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/controllers/terminal/config/manager/controller_manager_config.yaml b/controllers/terminal/config/manager/controller_manager_config.yaml index aec20179899..6bfcb2cfd06 100644 --- a/controllers/terminal/config/manager/controller_manager_config.yaml +++ b/controllers/terminal/config/manager/controller_manager_config.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 kind: ControllerManagerConfig health: diff --git a/controllers/terminal/config/manager/kustomization.yaml b/controllers/terminal/config/manager/kustomization.yaml index cddd26a751f..4c03a9cddd8 100644 --- a/controllers/terminal/config/manager/kustomization.yaml +++ b/controllers/terminal/config/manager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - manager.yaml diff --git a/controllers/terminal/config/manager/manager.yaml b/controllers/terminal/config/manager/manager.yaml index b66582b6e82..84ef1fc5718 100644 --- a/controllers/terminal/config/manager/manager.yaml +++ b/controllers/terminal/config/manager/manager.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/terminal/config/prometheus/kustomization.yaml b/controllers/terminal/config/prometheus/kustomization.yaml index ed137168a1d..a32baf71b1b 100644 --- a/controllers/terminal/config/prometheus/kustomization.yaml +++ b/controllers/terminal/config/prometheus/kustomization.yaml @@ -1,2 +1,16 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - monitor.yaml diff --git a/controllers/terminal/config/prometheus/monitor.yaml b/controllers/terminal/config/prometheus/monitor.yaml index d19136ae710..32401c3d7fd 100644 --- a/controllers/terminal/config/prometheus/monitor.yaml +++ b/controllers/terminal/config/prometheus/monitor.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 diff --git a/controllers/terminal/config/rbac/auth_proxy_client_clusterrole.yaml b/controllers/terminal/config/rbac/auth_proxy_client_clusterrole.yaml index 51a75db47a5..0e421adaba5 100644 --- a/controllers/terminal/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/controllers/terminal/config/rbac/auth_proxy_client_clusterrole.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/terminal/config/rbac/auth_proxy_role.yaml b/controllers/terminal/config/rbac/auth_proxy_role.yaml index 80e1857c594..7539c6cd1e8 100644 --- a/controllers/terminal/config/rbac/auth_proxy_role.yaml +++ b/controllers/terminal/config/rbac/auth_proxy_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/terminal/config/rbac/auth_proxy_role_binding.yaml b/controllers/terminal/config/rbac/auth_proxy_role_binding.yaml index ec7acc0a1b7..84c16ebd8d6 100644 --- a/controllers/terminal/config/rbac/auth_proxy_role_binding.yaml +++ b/controllers/terminal/config/rbac/auth_proxy_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/terminal/config/rbac/auth_proxy_service.yaml b/controllers/terminal/config/rbac/auth_proxy_service.yaml index 71f1797279e..70e47bf6783 100644 --- a/controllers/terminal/config/rbac/auth_proxy_service.yaml +++ b/controllers/terminal/config/rbac/auth_proxy_service.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Service metadata: diff --git a/controllers/terminal/config/rbac/kustomization.yaml b/controllers/terminal/config/rbac/kustomization.yaml index 731832a6ac3..9ea536e0fd4 100644 --- a/controllers/terminal/config/rbac/kustomization.yaml +++ b/controllers/terminal/config/rbac/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource diff --git a/controllers/terminal/config/rbac/leader_election_role.yaml b/controllers/terminal/config/rbac/leader_election_role.yaml index 4190ec8059e..7ccba03c976 100644 --- a/controllers/terminal/config/rbac/leader_election_role.yaml +++ b/controllers/terminal/config/rbac/leader_election_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/controllers/terminal/config/rbac/leader_election_role_binding.yaml b/controllers/terminal/config/rbac/leader_election_role_binding.yaml index 1d1321ed4f0..493b75ed399 100644 --- a/controllers/terminal/config/rbac/leader_election_role_binding.yaml +++ b/controllers/terminal/config/rbac/leader_election_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/controllers/terminal/config/rbac/role.yaml b/controllers/terminal/config/rbac/role.yaml index 3a2a3f46c62..caa997383f5 100644 --- a/controllers/terminal/config/rbac/role.yaml +++ b/controllers/terminal/config/rbac/role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/terminal/config/rbac/role_binding.yaml b/controllers/terminal/config/rbac/role_binding.yaml index 2070ede4462..749383ffe1e 100644 --- a/controllers/terminal/config/rbac/role_binding.yaml +++ b/controllers/terminal/config/rbac/role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/terminal/config/rbac/service_account.yaml b/controllers/terminal/config/rbac/service_account.yaml index 7cd6025bfc4..b8ca78e010b 100644 --- a/controllers/terminal/config/rbac/service_account.yaml +++ b/controllers/terminal/config/rbac/service_account.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/controllers/terminal/config/rbac/terminal_editor_role.yaml b/controllers/terminal/config/rbac/terminal_editor_role.yaml index b52e17e9ed7..12d95c0b534 100644 --- a/controllers/terminal/config/rbac/terminal_editor_role.yaml +++ b/controllers/terminal/config/rbac/terminal_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit terminals. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/terminal/config/rbac/terminal_viewer_role.yaml b/controllers/terminal/config/rbac/terminal_viewer_role.yaml index a57ebb90575..75b6600924f 100644 --- a/controllers/terminal/config/rbac/terminal_viewer_role.yaml +++ b/controllers/terminal/config/rbac/terminal_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view terminals. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/terminal/config/samples/terminal_v1_terminal.yaml b/controllers/terminal/config/samples/terminal_v1_terminal.yaml index 82f2f9b1751..878bb20c375 100644 --- a/controllers/terminal/config/samples/terminal_v1_terminal.yaml +++ b/controllers/terminal/config/samples/terminal_v1_terminal.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: terminal.sealos.io/v1 kind: Terminal metadata: diff --git a/controllers/terminal/scripts/start-terminal.sh b/controllers/terminal/scripts/start-terminal.sh index 2913ddc7d41..2bdd64f5a26 100644 --- a/controllers/terminal/scripts/start-terminal.sh +++ b/controllers/terminal/scripts/start-terminal.sh @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + env kubectl config set-credentials ${USER_NAME} --token=${USER_TOKEN} diff --git a/controllers/user/Dockerfile b/controllers/user/Dockerfile index 6f762748c75..7faf1035405 100644 --- a/controllers/user/Dockerfile +++ b/controllers/user/Dockerfile @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM gcr.io/distroless/static:nonroot ARG TARGETARCH diff --git a/controllers/user/config/certmanager/certificate.yaml b/controllers/user/config/certmanager/certificate.yaml index 52d866183c7..54c78b15e6b 100644 --- a/controllers/user/config/certmanager/certificate.yaml +++ b/controllers/user/config/certmanager/certificate.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following manifests contain a self-signed issuer CR and a certificate CR. # More document can be found at https://docs.cert-manager.io # WARNING: Targets CertManager v1.0. Check https://cert-manager.io/docs/installation/upgrading/ for breaking changes. diff --git a/controllers/user/config/certmanager/kustomization.yaml b/controllers/user/config/certmanager/kustomization.yaml index bebea5a595e..27b9b3c0745 100644 --- a/controllers/user/config/certmanager/kustomization.yaml +++ b/controllers/user/config/certmanager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - certificate.yaml diff --git a/controllers/user/config/certmanager/kustomizeconfig.yaml b/controllers/user/config/certmanager/kustomizeconfig.yaml index 90d7c313ca1..a6f7e14c39f 100644 --- a/controllers/user/config/certmanager/kustomizeconfig.yaml +++ b/controllers/user/config/certmanager/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This configuration is for teaching kustomize how to update name ref and var substitution nameReference: - kind: Issuer diff --git a/controllers/user/config/crd/bases/user.sealos.io_deleterequests.yaml b/controllers/user/config/crd/bases/user.sealos.io_deleterequests.yaml index 26e89e738a8..a457df17460 100644 --- a/controllers/user/config/crd/bases/user.sealos.io_deleterequests.yaml +++ b/controllers/user/config/crd/bases/user.sealos.io_deleterequests.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/user/config/crd/bases/user.sealos.io_operationrequests.yaml b/controllers/user/config/crd/bases/user.sealos.io_operationrequests.yaml index 4a30470f301..96537708dec 100644 --- a/controllers/user/config/crd/bases/user.sealos.io_operationrequests.yaml +++ b/controllers/user/config/crd/bases/user.sealos.io_operationrequests.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/user/config/crd/bases/user.sealos.io_users.yaml b/controllers/user/config/crd/bases/user.sealos.io_users.yaml index 561a92f20e8..74a0a38c674 100644 --- a/controllers/user/config/crd/bases/user.sealos.io_users.yaml +++ b/controllers/user/config/crd/bases/user.sealos.io_users.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/user/config/crd/kustomization.yaml b/controllers/user/config/crd/kustomization.yaml index ec94ced4fe3..8f613bf61ef 100644 --- a/controllers/user/config/crd/kustomization.yaml +++ b/controllers/user/config/crd/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This kustomization.yaml is not intended to be run by itself, # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default diff --git a/controllers/user/config/crd/kustomizeconfig.yaml b/controllers/user/config/crd/kustomizeconfig.yaml index ec5c150a9df..9c99fc52fb2 100644 --- a/controllers/user/config/crd/kustomizeconfig.yaml +++ b/controllers/user/config/crd/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This file is for teaching kustomize how to substitute name and namespace reference in CRD nameReference: - kind: Service diff --git a/controllers/user/config/crd/patches/cainjection_in_deleterequests.yaml b/controllers/user/config/crd/patches/cainjection_in_deleterequests.yaml index de6bc60313e..f44ebfb0d7e 100644 --- a/controllers/user/config/crd/patches/cainjection_in_deleterequests.yaml +++ b/controllers/user/config/crd/patches/cainjection_in_deleterequests.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/user/config/crd/patches/cainjection_in_operationrequests.yaml b/controllers/user/config/crd/patches/cainjection_in_operationrequests.yaml index ac1796d9e07..2ad5a01ae7e 100644 --- a/controllers/user/config/crd/patches/cainjection_in_operationrequests.yaml +++ b/controllers/user/config/crd/patches/cainjection_in_operationrequests.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/user/config/crd/patches/cainjection_in_users.yaml b/controllers/user/config/crd/patches/cainjection_in_users.yaml index bd7b44e3b17..7151c43f1da 100644 --- a/controllers/user/config/crd/patches/cainjection_in_users.yaml +++ b/controllers/user/config/crd/patches/cainjection_in_users.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/user/config/crd/patches/webhook_in_deleterequests.yaml b/controllers/user/config/crd/patches/webhook_in_deleterequests.yaml index 66cbb3a9774..38178d15cd8 100644 --- a/controllers/user/config/crd/patches/webhook_in_deleterequests.yaml +++ b/controllers/user/config/crd/patches/webhook_in_deleterequests.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/user/config/crd/patches/webhook_in_operationrequests.yaml b/controllers/user/config/crd/patches/webhook_in_operationrequests.yaml index 7af050f2e89..6c60e819111 100644 --- a/controllers/user/config/crd/patches/webhook_in_operationrequests.yaml +++ b/controllers/user/config/crd/patches/webhook_in_operationrequests.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/user/config/crd/patches/webhook_in_users.yaml b/controllers/user/config/crd/patches/webhook_in_users.yaml index 10f35b785a7..78136cab36a 100644 --- a/controllers/user/config/crd/patches/webhook_in_users.yaml +++ b/controllers/user/config/crd/patches/webhook_in_users.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/controllers/user/config/default/kustomization.yaml b/controllers/user/config/default/kustomization.yaml index 2e71c756101..e4a0af36b1c 100644 --- a/controllers/user/config/default/kustomization.yaml +++ b/controllers/user/config/default/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Adds namespace to all resources. namespace: user-system diff --git a/controllers/user/config/default/manager_auth_proxy_patch.yaml b/controllers/user/config/default/manager_auth_proxy_patch.yaml index 01ace0af9ed..1ade4bbd182 100644 --- a/controllers/user/config/default/manager_auth_proxy_patch.yaml +++ b/controllers/user/config/default/manager_auth_proxy_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This patch inject a sidecar container which is a HTTP proxy for the # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews. apiVersion: apps/v1 diff --git a/controllers/user/config/default/manager_config_patch.yaml b/controllers/user/config/default/manager_config_patch.yaml index 6c400155cfb..ca4883fc5ce 100644 --- a/controllers/user/config/default/manager_config_patch.yaml +++ b/controllers/user/config/default/manager_config_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/controllers/user/config/default/manager_webhook_patch.yaml b/controllers/user/config/default/manager_webhook_patch.yaml index 738de350b71..ade33aa9d5f 100644 --- a/controllers/user/config/default/manager_webhook_patch.yaml +++ b/controllers/user/config/default/manager_webhook_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/controllers/user/config/default/webhookcainjection_patch.yaml b/controllers/user/config/default/webhookcainjection_patch.yaml index 02ab515d428..b9ec7b20d96 100644 --- a/controllers/user/config/default/webhookcainjection_patch.yaml +++ b/controllers/user/config/default/webhookcainjection_patch.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This patch add annotation to admission webhook config and # the variables $(CERTIFICATE_NAMESPACE) and $(CERTIFICATE_NAME) will be substituted by kustomize. apiVersion: admissionregistration.k8s.io/v1 diff --git a/controllers/user/config/manager/controller_manager_config.yaml b/controllers/user/config/manager/controller_manager_config.yaml index 16173b89a5e..d9a78f0c1df 100644 --- a/controllers/user/config/manager/controller_manager_config.yaml +++ b/controllers/user/config/manager/controller_manager_config.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 kind: ControllerManagerConfig health: diff --git a/controllers/user/config/manager/kustomization.yaml b/controllers/user/config/manager/kustomization.yaml index 9670216c47e..ed9883f7305 100644 --- a/controllers/user/config/manager/kustomization.yaml +++ b/controllers/user/config/manager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - manager.yaml generatorOptions: diff --git a/controllers/user/config/manager/manager.yaml b/controllers/user/config/manager/manager.yaml index fbddf6f297f..37758db3d54 100644 --- a/controllers/user/config/manager/manager.yaml +++ b/controllers/user/config/manager/manager.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/controllers/user/config/prometheus/kustomization.yaml b/controllers/user/config/prometheus/kustomization.yaml index ed137168a1d..a32baf71b1b 100644 --- a/controllers/user/config/prometheus/kustomization.yaml +++ b/controllers/user/config/prometheus/kustomization.yaml @@ -1,2 +1,16 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - monitor.yaml diff --git a/controllers/user/config/prometheus/monitor.yaml b/controllers/user/config/prometheus/monitor.yaml index d19136ae710..32401c3d7fd 100644 --- a/controllers/user/config/prometheus/monitor.yaml +++ b/controllers/user/config/prometheus/monitor.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 diff --git a/controllers/user/config/rbac/auth_proxy_client_clusterrole.yaml b/controllers/user/config/rbac/auth_proxy_client_clusterrole.yaml index 51a75db47a5..0e421adaba5 100644 --- a/controllers/user/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/controllers/user/config/rbac/auth_proxy_client_clusterrole.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/user/config/rbac/auth_proxy_role.yaml b/controllers/user/config/rbac/auth_proxy_role.yaml index 80e1857c594..7539c6cd1e8 100644 --- a/controllers/user/config/rbac/auth_proxy_role.yaml +++ b/controllers/user/config/rbac/auth_proxy_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/controllers/user/config/rbac/auth_proxy_role_binding.yaml b/controllers/user/config/rbac/auth_proxy_role_binding.yaml index ec7acc0a1b7..84c16ebd8d6 100644 --- a/controllers/user/config/rbac/auth_proxy_role_binding.yaml +++ b/controllers/user/config/rbac/auth_proxy_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/user/config/rbac/auth_proxy_service.yaml b/controllers/user/config/rbac/auth_proxy_service.yaml index 71f1797279e..70e47bf6783 100644 --- a/controllers/user/config/rbac/auth_proxy_service.yaml +++ b/controllers/user/config/rbac/auth_proxy_service.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Service metadata: diff --git a/controllers/user/config/rbac/deleterequest_editor_role.yaml b/controllers/user/config/rbac/deleterequest_editor_role.yaml index a22e2443058..cdced0fa324 100644 --- a/controllers/user/config/rbac/deleterequest_editor_role.yaml +++ b/controllers/user/config/rbac/deleterequest_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit deleterequests. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/user/config/rbac/deleterequest_viewer_role.yaml b/controllers/user/config/rbac/deleterequest_viewer_role.yaml index 4868207fdeb..78e0cc001e3 100644 --- a/controllers/user/config/rbac/deleterequest_viewer_role.yaml +++ b/controllers/user/config/rbac/deleterequest_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view deleterequests. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/user/config/rbac/kustomization.yaml b/controllers/user/config/rbac/kustomization.yaml index 731832a6ac3..9ea536e0fd4 100644 --- a/controllers/user/config/rbac/kustomization.yaml +++ b/controllers/user/config/rbac/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource diff --git a/controllers/user/config/rbac/leader_election_role.yaml b/controllers/user/config/rbac/leader_election_role.yaml index 4190ec8059e..7ccba03c976 100644 --- a/controllers/user/config/rbac/leader_election_role.yaml +++ b/controllers/user/config/rbac/leader_election_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/controllers/user/config/rbac/leader_election_role_binding.yaml b/controllers/user/config/rbac/leader_election_role_binding.yaml index 1d1321ed4f0..493b75ed399 100644 --- a/controllers/user/config/rbac/leader_election_role_binding.yaml +++ b/controllers/user/config/rbac/leader_election_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/controllers/user/config/rbac/operationrequest_editor_role.yaml b/controllers/user/config/rbac/operationrequest_editor_role.yaml index bf567cfffcc..629a0aafb9a 100644 --- a/controllers/user/config/rbac/operationrequest_editor_role.yaml +++ b/controllers/user/config/rbac/operationrequest_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit operationrequests. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/user/config/rbac/operationrequest_viewer_role.yaml b/controllers/user/config/rbac/operationrequest_viewer_role.yaml index 8c1c4404e28..1cd005063f3 100644 --- a/controllers/user/config/rbac/operationrequest_viewer_role.yaml +++ b/controllers/user/config/rbac/operationrequest_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view operationrequests. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/user/config/rbac/role.yaml b/controllers/user/config/rbac/role.yaml index 7b5b7311290..a08d957d42f 100644 --- a/controllers/user/config/rbac/role.yaml +++ b/controllers/user/config/rbac/role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/user/config/rbac/role_binding.yaml b/controllers/user/config/rbac/role_binding.yaml index 2070ede4462..749383ffe1e 100644 --- a/controllers/user/config/rbac/role_binding.yaml +++ b/controllers/user/config/rbac/role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/controllers/user/config/rbac/service_account.yaml b/controllers/user/config/rbac/service_account.yaml index 7cd6025bfc4..b8ca78e010b 100644 --- a/controllers/user/config/rbac/service_account.yaml +++ b/controllers/user/config/rbac/service_account.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/controllers/user/config/rbac/user_editor_role.yaml b/controllers/user/config/rbac/user_editor_role.yaml index d13cab5982d..987c1ae7b55 100644 --- a/controllers/user/config/rbac/user_editor_role.yaml +++ b/controllers/user/config/rbac/user_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit users. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/user/config/rbac/user_viewer_role.yaml b/controllers/user/config/rbac/user_viewer_role.yaml index e296fdd87f0..35b2a879e5a 100644 --- a/controllers/user/config/rbac/user_viewer_role.yaml +++ b/controllers/user/config/rbac/user_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view users. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/user/config/rbac/usergroup_editor_role.yaml b/controllers/user/config/rbac/usergroup_editor_role.yaml index 5d18a8917a9..3d2696717c0 100644 --- a/controllers/user/config/rbac/usergroup_editor_role.yaml +++ b/controllers/user/config/rbac/usergroup_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit usergroups. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/user/config/rbac/usergroup_viewer_role.yaml b/controllers/user/config/rbac/usergroup_viewer_role.yaml index cf3c24e8074..79eed45d8ee 100644 --- a/controllers/user/config/rbac/usergroup_viewer_role.yaml +++ b/controllers/user/config/rbac/usergroup_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view usergroups. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/user/config/rbac/usergroupbinding_editor_role.yaml b/controllers/user/config/rbac/usergroupbinding_editor_role.yaml index c173a0db002..685ca3cd191 100644 --- a/controllers/user/config/rbac/usergroupbinding_editor_role.yaml +++ b/controllers/user/config/rbac/usergroupbinding_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit usergroupbindings. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/user/config/rbac/usergroupbinding_viewer_role.yaml b/controllers/user/config/rbac/usergroupbinding_viewer_role.yaml index d94d1976bd8..91d90a1a681 100644 --- a/controllers/user/config/rbac/usergroupbinding_viewer_role.yaml +++ b/controllers/user/config/rbac/usergroupbinding_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to view usergroupbindings. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/user/config/samples/all.yaml b/controllers/user/config/samples/all.yaml index ed15e503324..ebb84b35ead 100644 --- a/controllers/user/config/samples/all.yaml +++ b/controllers/user/config/samples/all.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: user.sealos.io/v1 kind: User metadata: diff --git a/controllers/user/config/samples/user_v1_deleterequest.yaml b/controllers/user/config/samples/user_v1_deleterequest.yaml index ab55302acf6..b538cb99493 100644 --- a/controllers/user/config/samples/user_v1_deleterequest.yaml +++ b/controllers/user/config/samples/user_v1_deleterequest.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: user.sealos.io/v1 kind: DeleteRequest metadata: diff --git a/controllers/user/config/samples/user_v1_operationrequest.yaml b/controllers/user/config/samples/user_v1_operationrequest.yaml index b3ca0a6f7ed..048620d3ed7 100644 --- a/controllers/user/config/samples/user_v1_operationrequest.yaml +++ b/controllers/user/config/samples/user_v1_operationrequest.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: user.sealos.io/v1 kind: Operationrequest metadata: diff --git a/controllers/user/config/samples/user_v1_user.yaml b/controllers/user/config/samples/user_v1_user.yaml index c21d7cf7fe2..3989f786c09 100644 --- a/controllers/user/config/samples/user_v1_user.yaml +++ b/controllers/user/config/samples/user_v1_user.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # user apiVersion: user.sealos.io/v1 kind: User diff --git a/controllers/user/config/webhook/kustomization.yaml b/controllers/user/config/webhook/kustomization.yaml index 9cf26134e4d..1bf9427c242 100644 --- a/controllers/user/config/webhook/kustomization.yaml +++ b/controllers/user/config/webhook/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + resources: - manifests.yaml - service.yaml diff --git a/controllers/user/config/webhook/kustomizeconfig.yaml b/controllers/user/config/webhook/kustomizeconfig.yaml index 25e21e3c963..594f180c57f 100644 --- a/controllers/user/config/webhook/kustomizeconfig.yaml +++ b/controllers/user/config/webhook/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # the following config is for teaching kustomize where to look at when substituting vars. # It requires kustomize v2.1.0 or newer to work properly. nameReference: diff --git a/controllers/user/config/webhook/manifests.yaml b/controllers/user/config/webhook/manifests.yaml index 983c7a28c51..7048ff3da51 100644 --- a/controllers/user/config/webhook/manifests.yaml +++ b/controllers/user/config/webhook/manifests.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration diff --git a/controllers/user/config/webhook/service.yaml b/controllers/user/config/webhook/service.yaml index 3f638bd9c68..03198124dd5 100644 --- a/controllers/user/config/webhook/service.yaml +++ b/controllers/user/config/webhook/service.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Service diff --git a/controllers/user/controllers/helper/config/rbac.go b/controllers/user/controllers/helper/config/rbac.go index 2b8efb9f11b..d3bf86fca92 100644 --- a/controllers/user/controllers/helper/config/rbac.go +++ b/controllers/user/controllers/helper/config/rbac.go @@ -21,8 +21,9 @@ import ( "os" "strings" - userv1 "github.com/labring/sealos/controllers/user/api/v1" rbacv1 "k8s.io/api/rbac/v1" + + userv1 "github.com/labring/sealos/controllers/user/api/v1" ) func GetDefaultNamespace() string { diff --git a/controllers/user/controllers/helper/helper.go b/controllers/user/controllers/helper/helper.go index af7ae6b80bd..7d7fbf11b09 100644 --- a/controllers/user/controllers/helper/helper.go +++ b/controllers/user/controllers/helper/helper.go @@ -17,9 +17,10 @@ limitations under the License. package helper import ( - v1 "github.com/labring/sealos/controllers/user/api/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + + v1 "github.com/labring/sealos/controllers/user/api/v1" ) func IsConditionTrue(conditions []v1.Condition, condition v1.Condition) bool { diff --git a/controllers/user/controllers/operationrequest_controller.go b/controllers/user/controllers/operationrequest_controller.go index 377f232e501..edbfd966217 100644 --- a/controllers/user/controllers/operationrequest_controller.go +++ b/controllers/user/controllers/operationrequest_controller.go @@ -24,6 +24,7 @@ import ( "github.com/go-logr/logr" util "github.com/labring/operator-sdk/controller" + userv1 "github.com/labring/sealos/controllers/user/api/v1" "github.com/labring/sealos/controllers/user/controllers/helper/config" diff --git a/controllers/user/controllers/user_controller.go b/controllers/user/controllers/user_controller.go index 43523c10d39..99ee7f77bf8 100644 --- a/controllers/user/controllers/user_controller.go +++ b/controllers/user/controllers/user_controller.go @@ -27,6 +27,7 @@ import ( utilcontroller "github.com/labring/operator-sdk/controller" "github.com/labring/operator-sdk/hash" + "github.com/labring/sealos/controllers/user/controllers/helper/config" "github.com/labring/sealos/controllers/user/controllers/helper/kubeconfig" @@ -42,8 +43,6 @@ import ( kubecontroller "sigs.k8s.io/controller-runtime/pkg/controller" "github.com/go-logr/logr" - userv1 "github.com/labring/sealos/controllers/user/api/v1" - "github.com/labring/sealos/controllers/user/controllers/helper" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" @@ -56,6 +55,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/cache" "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" + + userv1 "github.com/labring/sealos/controllers/user/api/v1" + "github.com/labring/sealos/controllers/user/controllers/helper" ) var userAnnotationCreatorKey = userv1.UserAnnotationCreatorKey diff --git a/controllers/user/controllers/user_expiration_controller.go b/controllers/user/controllers/user_expiration_controller.go index 9b151a7395d..e4edb1886ff 100644 --- a/controllers/user/controllers/user_expiration_controller.go +++ b/controllers/user/controllers/user_expiration_controller.go @@ -23,12 +23,13 @@ import ( utilcontroller "github.com/labring/operator-sdk/controller" "github.com/go-logr/logr" - userv1 "github.com/labring/sealos/controllers/user/api/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/client-go/rest" "k8s.io/client-go/tools/record" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" + + userv1 "github.com/labring/sealos/controllers/user/api/v1" ) // UserExpirationReconciler reconciles a Secret object diff --git a/controllers/user/deploy/manifests/rbac.yaml b/controllers/user/deploy/manifests/rbac.yaml index 52fc3a9d1ee..7144579d81f 100644 --- a/controllers/user/deploy/manifests/rbac.yaml +++ b/controllers/user/deploy/manifests/rbac.yaml @@ -1,3 +1,17 @@ +# Copyright © 2023 sealos. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # permissions for end users to edit users. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/frontend/Makefile b/frontend/Makefile index 65e72913c76..420e2da5637 100644 --- a/frontend/Makefile +++ b/frontend/Makefile @@ -17,7 +17,6 @@ buildTargets := \ desktop \ providers/terminal \ providers/adminer \ - providers/bytebase \ providers/costcenter \ providers/dbprovider \ providers/applaunchpad \ @@ -60,12 +59,12 @@ image-prebuild: pnpm-lock.yaml docker build --platform=linux/amd64 --target deps . -t $(imageOwner)sealos-deps:dev image-build-providers/%: image-prebuild - docker build --platform=linux/amd64 -t $(imageOwner)sealos-$*:$(imageTag) --build-arg path=providers/$* --build-arg name=$* . + docker build --platform=linux/amd64 -t $(imageOwner)sealos-$*:$(imageTag) --build-arg path=providers/$* --build-arg name=$* . image-build-%: image-prebuild - docker build --platform=linux/amd64 -t $(imageOwner)sealos-$*:$(imageTag) --build-arg path=$* --build-arg name=$* . + docker build --platform=linux/amd64 -t $(imageOwner)sealos-$*:$(imageTag) --build-arg path=$* --build-arg name=$* . image-push-providers/%: image-build-providers/% - docker push $(imageOwner)sealos-$*:$(imageTag) + docker push $(imageOwner)sealos-$*:$(imageTag) image-push-%: image-build-% docker push $(imageOwner)sealos-$*:$(imageTag) # Default target to run all builds. \ No newline at end of file diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index 296191cecde..324a8d35a49 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -484,73 +484,6 @@ importers: specifier: ^4.9.1 version: 4.9.1 - providers/bytebase: - dependencies: - '@kubernetes/client-node': - specifier: 0.18.0 - version: 0.18.0 - '@tanstack/react-query': - specifier: ^4.35.3 - version: 4.35.3(react-dom@18.2.0)(react@18.2.0) - axios: - specifier: 1.2.1 - version: 1.2.1 - clsx: - specifier: ^1.2.1 - version: 1.2.1 - eslint: - specifier: 8.36.0 - version: 8.36.0 - eslint-config-next: - specifier: 13.2.4 - version: 13.2.4(eslint@8.36.0)(typescript@5.2.2) - i18next: - specifier: ^22.5.1 - version: 22.5.1 - immer: - specifier: ^9.0.21 - version: 9.0.21 - js-yaml: - specifier: ^4.1.0 - version: 4.1.0 - next: - specifier: 13.2.4 - version: 13.2.4(react-dom@18.2.0)(react@18.2.0)(sass@1.68.0) - next-i18next: - specifier: ^13.3.0 - version: 13.3.0(i18next@22.5.1)(next@13.2.4)(react-i18next@12.3.1)(react@18.2.0) - react: - specifier: 18.2.0 - version: 18.2.0 - react-dom: - specifier: 18.2.0 - version: 18.2.0(react@18.2.0) - react-i18next: - specifier: ^12.3.1 - version: 12.3.1(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) - sealos-desktop-sdk: - specifier: workspace:* - version: link:../../packages/client-sdk - zustand: - specifier: ^4.4.1 - version: 4.4.1(@types/react@18.0.28)(immer@9.0.21)(react@18.2.0) - devDependencies: - '@types/js-yaml': - specifier: ^4.0.6 - version: 4.0.6 - '@types/node': - specifier: 18.15.5 - version: 18.15.5 - '@types/react': - specifier: 18.0.28 - version: 18.0.28 - '@types/react-dom': - specifier: 18.0.11 - version: 18.0.11 - sass: - specifier: ^1.68.0 - version: 1.68.0 - providers/costcenter: dependencies: '@alicloud/dysmsapi20170525': diff --git a/go.work b/go.work index 55edfb18258..9fa493d5566 100644 --- a/go.work +++ b/go.work @@ -6,7 +6,6 @@ use ( ./controllers/admission ./controllers/app ./controllers/db/adminer - ./controllers/db/bytebase ./controllers/terminal ./controllers/node ./controllers/user @@ -15,14 +14,15 @@ use ( ./controllers/job/init ./controllers/pkg ./service/database - ./service/hub ./service/pay ./staging/src/github.com/labring/image-cri-shim ./staging/src/github.com/labring/lvscare ./staging/src/github.com/labring/controllers/imagehub ./staging/src/github.com/labring/controllers/cluster + ./staging/src/github.com/labring/controllers/db/bytebase ./staging/src/github.com/labring/controllers/infra ./staging/src/github.com/labring/controllers/metering + ./staging/src/github.com/labring/service/hub ./webhooks/whitelist ./test/e2e ) diff --git a/scripts/make-rules/common.mk b/scripts/make-rules/common.mk index 995a9f63e26..0a6aa03511f 100644 --- a/scripts/make-rules/common.mk +++ b/scripts/make-rules/common.mk @@ -59,10 +59,9 @@ ifeq ($(origin PLATFORM), undefined) endif # Linux command settings -CODE_DIRS := $(ROOT_DIR)/pkg $(ROOT_DIR)/cmd $(ROOT_DIR)/test $(ROOT_DIR)/staging -CONTROLLERS_DIR := $(ROOT_DIR)/controllers +STAGING_DIR := $(ROOT_DIR)/staging/src/github.com/labring +CODE_DIRS := $(ROOT_DIR)/pkg $(ROOT_DIR)/cmd $(ROOT_DIR)/controllers $(STAGING_DIR)/image-cri-shim $(STAGING_DIR)/lvscare FIND := find $(CODE_DIRS) -FIND_CONTROLLERS := find $(CONTROLLERS_DIR) # verbose settings ifndef V diff --git a/scripts/make-rules/license.mk b/scripts/make-rules/license.mk index 99f46c6d647..b41a8b28430 100644 --- a/scripts/make-rules/license.mk +++ b/scripts/make-rules/license.mk @@ -26,4 +26,4 @@ license.add: tools.verify.addlicense license.controller.add .PHONY: license.controller.add license.controller.add: tools.verify.addlicense @echo "===========> Formating controllers codes" - @$(FIND_CONTROLLERS) -type f -name '*.go' | xargs $(TOOLS_DIR)/addlicense -v -y $(shell date +"%Y") -c "sealos." -f $(TEMPLATE) \ No newline at end of file + @$(FIND) -type f -name '*.go' | xargs $(TOOLS_DIR)/addlicense -v -y $(shell date +"%Y") -c "sealos." -f $(TEMPLATE) \ No newline at end of file diff --git a/controllers/db/bytebase/.dockerignore b/staging/src/github.com/labring/controllers/db/bytebase/.dockerignore similarity index 100% rename from controllers/db/bytebase/.dockerignore rename to staging/src/github.com/labring/controllers/db/bytebase/.dockerignore diff --git a/controllers/db/bytebase/.gitignore b/staging/src/github.com/labring/controllers/db/bytebase/.gitignore similarity index 100% rename from controllers/db/bytebase/.gitignore rename to staging/src/github.com/labring/controllers/db/bytebase/.gitignore diff --git a/controllers/db/bytebase/Dockerfile b/staging/src/github.com/labring/controllers/db/bytebase/Dockerfile similarity index 100% rename from controllers/db/bytebase/Dockerfile rename to staging/src/github.com/labring/controllers/db/bytebase/Dockerfile diff --git a/controllers/db/bytebase/Makefile b/staging/src/github.com/labring/controllers/db/bytebase/Makefile similarity index 100% rename from controllers/db/bytebase/Makefile rename to staging/src/github.com/labring/controllers/db/bytebase/Makefile diff --git a/controllers/db/bytebase/PROJECT b/staging/src/github.com/labring/controllers/db/bytebase/PROJECT similarity index 100% rename from controllers/db/bytebase/PROJECT rename to staging/src/github.com/labring/controllers/db/bytebase/PROJECT diff --git a/controllers/db/bytebase/README.md b/staging/src/github.com/labring/controllers/db/bytebase/README.md similarity index 100% rename from controllers/db/bytebase/README.md rename to staging/src/github.com/labring/controllers/db/bytebase/README.md diff --git a/controllers/db/bytebase/apis/bytebase/v1/bytebase_types.go b/staging/src/github.com/labring/controllers/db/bytebase/apis/bytebase/v1/bytebase_types.go similarity index 99% rename from controllers/db/bytebase/apis/bytebase/v1/bytebase_types.go rename to staging/src/github.com/labring/controllers/db/bytebase/apis/bytebase/v1/bytebase_types.go index 1a691bd9a9d..65db69796c2 100644 --- a/controllers/db/bytebase/apis/bytebase/v1/bytebase_types.go +++ b/staging/src/github.com/labring/controllers/db/bytebase/apis/bytebase/v1/bytebase_types.go @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - "github.com/labring/sealos/controllers/db/bytebase/client/api" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" + + "github.com/labring/sealos/controllers/db/bytebase/client/api" ) // +kubebuilder:validation:Enum=nginx; diff --git a/controllers/db/bytebase/apis/bytebase/v1/groupversion_info.go b/staging/src/github.com/labring/controllers/db/bytebase/apis/bytebase/v1/groupversion_info.go similarity index 100% rename from controllers/db/bytebase/apis/bytebase/v1/groupversion_info.go rename to staging/src/github.com/labring/controllers/db/bytebase/apis/bytebase/v1/groupversion_info.go diff --git a/controllers/db/bytebase/apis/bytebase/v1/zz_generated.deepcopy.go b/staging/src/github.com/labring/controllers/db/bytebase/apis/bytebase/v1/zz_generated.deepcopy.go similarity index 100% rename from controllers/db/bytebase/apis/bytebase/v1/zz_generated.deepcopy.go rename to staging/src/github.com/labring/controllers/db/bytebase/apis/bytebase/v1/zz_generated.deepcopy.go diff --git a/controllers/db/bytebase/apis/config/v1/bytebasecontrollerconfig_types.go b/staging/src/github.com/labring/controllers/db/bytebase/apis/config/v1/bytebasecontrollerconfig_types.go similarity index 100% rename from controllers/db/bytebase/apis/config/v1/bytebasecontrollerconfig_types.go rename to staging/src/github.com/labring/controllers/db/bytebase/apis/config/v1/bytebasecontrollerconfig_types.go diff --git a/controllers/db/bytebase/apis/config/v1/groupversion_info.go b/staging/src/github.com/labring/controllers/db/bytebase/apis/config/v1/groupversion_info.go similarity index 100% rename from controllers/db/bytebase/apis/config/v1/groupversion_info.go rename to staging/src/github.com/labring/controllers/db/bytebase/apis/config/v1/groupversion_info.go diff --git a/controllers/db/bytebase/apis/config/v1/zz_generated.deepcopy.go b/staging/src/github.com/labring/controllers/db/bytebase/apis/config/v1/zz_generated.deepcopy.go similarity index 100% rename from controllers/db/bytebase/apis/config/v1/zz_generated.deepcopy.go rename to staging/src/github.com/labring/controllers/db/bytebase/apis/config/v1/zz_generated.deepcopy.go diff --git a/controllers/db/bytebase/client/api/auth.go b/staging/src/github.com/labring/controllers/db/bytebase/client/api/auth.go similarity index 100% rename from controllers/db/bytebase/client/api/auth.go rename to staging/src/github.com/labring/controllers/db/bytebase/client/api/auth.go diff --git a/controllers/db/bytebase/client/api/client.go b/staging/src/github.com/labring/controllers/db/bytebase/client/api/client.go similarity index 100% rename from controllers/db/bytebase/client/api/client.go rename to staging/src/github.com/labring/controllers/db/bytebase/client/api/client.go diff --git a/controllers/db/bytebase/client/api/common.go b/staging/src/github.com/labring/controllers/db/bytebase/client/api/common.go similarity index 100% rename from controllers/db/bytebase/client/api/common.go rename to staging/src/github.com/labring/controllers/db/bytebase/client/api/common.go diff --git a/controllers/db/bytebase/client/api/data_source.go b/staging/src/github.com/labring/controllers/db/bytebase/client/api/data_source.go similarity index 100% rename from controllers/db/bytebase/client/api/data_source.go rename to staging/src/github.com/labring/controllers/db/bytebase/client/api/data_source.go diff --git a/controllers/db/bytebase/client/api/database_role.go b/staging/src/github.com/labring/controllers/db/bytebase/client/api/database_role.go similarity index 100% rename from controllers/db/bytebase/client/api/database_role.go rename to staging/src/github.com/labring/controllers/db/bytebase/client/api/database_role.go diff --git a/controllers/db/bytebase/client/api/environment.go b/staging/src/github.com/labring/controllers/db/bytebase/client/api/environment.go similarity index 100% rename from controllers/db/bytebase/client/api/environment.go rename to staging/src/github.com/labring/controllers/db/bytebase/client/api/environment.go diff --git a/controllers/db/bytebase/client/api/instance.go b/staging/src/github.com/labring/controllers/db/bytebase/client/api/instance.go similarity index 100% rename from controllers/db/bytebase/client/api/instance.go rename to staging/src/github.com/labring/controllers/db/bytebase/client/api/instance.go diff --git a/controllers/db/bytebase/client/auth.go b/staging/src/github.com/labring/controllers/db/bytebase/client/auth.go similarity index 100% rename from controllers/db/bytebase/client/auth.go rename to staging/src/github.com/labring/controllers/db/bytebase/client/auth.go diff --git a/controllers/db/bytebase/client/client.go b/staging/src/github.com/labring/controllers/db/bytebase/client/client.go similarity index 100% rename from controllers/db/bytebase/client/client.go rename to staging/src/github.com/labring/controllers/db/bytebase/client/client.go diff --git a/controllers/db/bytebase/client/environment.go b/staging/src/github.com/labring/controllers/db/bytebase/client/environment.go similarity index 100% rename from controllers/db/bytebase/client/environment.go rename to staging/src/github.com/labring/controllers/db/bytebase/client/environment.go diff --git a/controllers/db/bytebase/client/instance.go b/staging/src/github.com/labring/controllers/db/bytebase/client/instance.go similarity index 100% rename from controllers/db/bytebase/client/instance.go rename to staging/src/github.com/labring/controllers/db/bytebase/client/instance.go diff --git a/controllers/db/bytebase/config/crd/bases/bytebase.db.sealos.io_bytebases.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/crd/bases/bytebase.db.sealos.io_bytebases.yaml similarity index 100% rename from controllers/db/bytebase/config/crd/bases/bytebase.db.sealos.io_bytebases.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/crd/bases/bytebase.db.sealos.io_bytebases.yaml diff --git a/controllers/db/bytebase/config/crd/kustomization.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/crd/kustomization.yaml similarity index 100% rename from controllers/db/bytebase/config/crd/kustomization.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/crd/kustomization.yaml diff --git a/controllers/db/bytebase/config/crd/kustomizeconfig.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/crd/kustomizeconfig.yaml similarity index 100% rename from controllers/db/bytebase/config/crd/kustomizeconfig.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/crd/kustomizeconfig.yaml diff --git a/controllers/db/bytebase/config/default/kustomization.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/default/kustomization.yaml similarity index 100% rename from controllers/db/bytebase/config/default/kustomization.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/default/kustomization.yaml diff --git a/controllers/db/bytebase/config/default/manager_auth_proxy_patch.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/default/manager_auth_proxy_patch.yaml similarity index 100% rename from controllers/db/bytebase/config/default/manager_auth_proxy_patch.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/default/manager_auth_proxy_patch.yaml diff --git a/controllers/db/bytebase/config/default/manager_config_patch.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/default/manager_config_patch.yaml similarity index 100% rename from controllers/db/bytebase/config/default/manager_config_patch.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/default/manager_config_patch.yaml diff --git a/controllers/db/bytebase/config/manager/controller_manager_config.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/manager/controller_manager_config.yaml similarity index 100% rename from controllers/db/bytebase/config/manager/controller_manager_config.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/manager/controller_manager_config.yaml diff --git a/controllers/db/bytebase/config/manager/kustomization.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/manager/kustomization.yaml similarity index 100% rename from controllers/db/bytebase/config/manager/kustomization.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/manager/kustomization.yaml diff --git a/controllers/db/bytebase/config/manager/manager.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/manager/manager.yaml similarity index 100% rename from controllers/db/bytebase/config/manager/manager.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/manager/manager.yaml diff --git a/controllers/db/bytebase/config/prometheus/kustomization.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/prometheus/kustomization.yaml similarity index 100% rename from controllers/db/bytebase/config/prometheus/kustomization.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/prometheus/kustomization.yaml diff --git a/controllers/db/bytebase/config/prometheus/monitor.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/prometheus/monitor.yaml similarity index 100% rename from controllers/db/bytebase/config/prometheus/monitor.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/prometheus/monitor.yaml diff --git a/controllers/db/bytebase/config/rbac/auth_proxy_client_clusterrole.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/rbac/auth_proxy_client_clusterrole.yaml similarity index 100% rename from controllers/db/bytebase/config/rbac/auth_proxy_client_clusterrole.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/rbac/auth_proxy_client_clusterrole.yaml diff --git a/controllers/db/bytebase/config/rbac/auth_proxy_role.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/rbac/auth_proxy_role.yaml similarity index 100% rename from controllers/db/bytebase/config/rbac/auth_proxy_role.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/rbac/auth_proxy_role.yaml diff --git a/controllers/db/bytebase/config/rbac/auth_proxy_role_binding.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/rbac/auth_proxy_role_binding.yaml similarity index 100% rename from controllers/db/bytebase/config/rbac/auth_proxy_role_binding.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/rbac/auth_proxy_role_binding.yaml diff --git a/controllers/db/bytebase/config/rbac/auth_proxy_service.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/rbac/auth_proxy_service.yaml similarity index 100% rename from controllers/db/bytebase/config/rbac/auth_proxy_service.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/rbac/auth_proxy_service.yaml diff --git a/controllers/db/bytebase/config/rbac/bytebase_editor_role.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/rbac/bytebase_editor_role.yaml similarity index 100% rename from controllers/db/bytebase/config/rbac/bytebase_editor_role.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/rbac/bytebase_editor_role.yaml diff --git a/controllers/db/bytebase/config/rbac/bytebase_viewer_role.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/rbac/bytebase_viewer_role.yaml similarity index 100% rename from controllers/db/bytebase/config/rbac/bytebase_viewer_role.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/rbac/bytebase_viewer_role.yaml diff --git a/controllers/db/bytebase/config/rbac/kustomization.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/rbac/kustomization.yaml similarity index 100% rename from controllers/db/bytebase/config/rbac/kustomization.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/rbac/kustomization.yaml diff --git a/controllers/db/bytebase/config/rbac/leader_election_role.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/rbac/leader_election_role.yaml similarity index 100% rename from controllers/db/bytebase/config/rbac/leader_election_role.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/rbac/leader_election_role.yaml diff --git a/controllers/db/bytebase/config/rbac/leader_election_role_binding.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/rbac/leader_election_role_binding.yaml similarity index 100% rename from controllers/db/bytebase/config/rbac/leader_election_role_binding.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/rbac/leader_election_role_binding.yaml diff --git a/controllers/db/bytebase/config/rbac/role.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/rbac/role.yaml similarity index 100% rename from controllers/db/bytebase/config/rbac/role.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/rbac/role.yaml diff --git a/controllers/db/bytebase/config/rbac/role_binding.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/rbac/role_binding.yaml similarity index 100% rename from controllers/db/bytebase/config/rbac/role_binding.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/rbac/role_binding.yaml diff --git a/controllers/db/bytebase/config/rbac/service_account.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/rbac/service_account.yaml similarity index 100% rename from controllers/db/bytebase/config/rbac/service_account.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/rbac/service_account.yaml diff --git a/controllers/db/bytebase/config/samples/bytebase_v1_bytebase.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/samples/bytebase_v1_bytebase.yaml similarity index 100% rename from controllers/db/bytebase/config/samples/bytebase_v1_bytebase.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/samples/bytebase_v1_bytebase.yaml diff --git a/controllers/db/bytebase/config/samples/config_v1_bytebasecontrollerconfig.yaml b/staging/src/github.com/labring/controllers/db/bytebase/config/samples/config_v1_bytebasecontrollerconfig.yaml similarity index 100% rename from controllers/db/bytebase/config/samples/config_v1_bytebasecontrollerconfig.yaml rename to staging/src/github.com/labring/controllers/db/bytebase/config/samples/config_v1_bytebasecontrollerconfig.yaml diff --git a/controllers/db/bytebase/controllers/bytebase/bytebase_controller.go b/staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/bytebase_controller.go similarity index 99% rename from controllers/db/bytebase/controllers/bytebase/bytebase_controller.go rename to staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/bytebase_controller.go index d81235d1a45..bb175a8508b 100644 --- a/controllers/db/bytebase/controllers/bytebase/bytebase_controller.go +++ b/staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/bytebase_controller.go @@ -33,6 +33,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/log" "github.com/go-logr/logr" + bbv1 "github.com/labring/sealos/controllers/db/bytebase/apis/bytebase/v1" bbclient "github.com/labring/sealos/controllers/db/bytebase/client" api "github.com/labring/sealos/controllers/db/bytebase/client/api" diff --git a/controllers/db/bytebase/controllers/bytebase/ingress.go b/staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/ingress.go similarity index 99% rename from controllers/db/bytebase/controllers/bytebase/ingress.go rename to staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/ingress.go index 463422b29cf..2a2f45f6282 100644 --- a/controllers/db/bytebase/controllers/bytebase/ingress.go +++ b/staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/ingress.go @@ -17,9 +17,10 @@ limitations under the License. package bytebase import ( - bbv1 "github.com/labring/sealos/controllers/db/bytebase/apis/bytebase/v1" networkingv1 "k8s.io/api/networking/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + + bbv1 "github.com/labring/sealos/controllers/db/bytebase/apis/bytebase/v1" ) func (r *Reconciler) createNginxIngress(bytebase *bbv1.Bytebase, host string, snippet string) *networkingv1.Ingress { diff --git a/controllers/db/bytebase/controllers/bytebase/instance.go b/staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/instance.go similarity index 99% rename from controllers/db/bytebase/controllers/bytebase/instance.go rename to staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/instance.go index c5e183d0b63..93b4f8a3ebb 100644 --- a/controllers/db/bytebase/controllers/bytebase/instance.go +++ b/staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/instance.go @@ -18,11 +18,12 @@ import ( "context" "fmt" - api "github.com/labring/sealos/controllers/db/bytebase/client/api" corev1 "k8s.io/api/core/v1" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/log" + + api "github.com/labring/sealos/controllers/db/bytebase/client/api" ) const ( diff --git a/controllers/db/bytebase/controllers/bytebase/suite_test.go b/staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/suite_test.go similarity index 100% rename from controllers/db/bytebase/controllers/bytebase/suite_test.go rename to staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/suite_test.go diff --git a/controllers/db/bytebase/controllers/bytebase/sync.go b/staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/sync.go similarity index 99% rename from controllers/db/bytebase/controllers/bytebase/sync.go rename to staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/sync.go index 3f85dd01618..a7c66fa033b 100644 --- a/controllers/db/bytebase/controllers/bytebase/sync.go +++ b/staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/sync.go @@ -25,9 +25,10 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "github.com/jaevor/go-nanoid" - bbv1 "github.com/labring/sealos/controllers/db/bytebase/apis/bytebase/v1" "k8s.io/apimachinery/pkg/api/resource" + bbv1 "github.com/labring/sealos/controllers/db/bytebase/apis/bytebase/v1" + "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" ) diff --git a/controllers/db/bytebase/controllers/bytebase/util.go b/staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/util.go similarity index 100% rename from controllers/db/bytebase/controllers/bytebase/util.go rename to staging/src/github.com/labring/controllers/db/bytebase/controllers/bytebase/util.go diff --git a/controllers/db/bytebase/deploy/Kubefile b/staging/src/github.com/labring/controllers/db/bytebase/deploy/Kubefile similarity index 100% rename from controllers/db/bytebase/deploy/Kubefile rename to staging/src/github.com/labring/controllers/db/bytebase/deploy/Kubefile diff --git a/controllers/db/bytebase/deploy/README.md b/staging/src/github.com/labring/controllers/db/bytebase/deploy/README.md similarity index 100% rename from controllers/db/bytebase/deploy/README.md rename to staging/src/github.com/labring/controllers/db/bytebase/deploy/README.md diff --git a/controllers/db/bytebase/deploy/manifests/deploy.yaml.tmpl b/staging/src/github.com/labring/controllers/db/bytebase/deploy/manifests/deploy.yaml.tmpl similarity index 100% rename from controllers/db/bytebase/deploy/manifests/deploy.yaml.tmpl rename to staging/src/github.com/labring/controllers/db/bytebase/deploy/manifests/deploy.yaml.tmpl diff --git a/controllers/db/bytebase/go.mod b/staging/src/github.com/labring/controllers/db/bytebase/go.mod similarity index 100% rename from controllers/db/bytebase/go.mod rename to staging/src/github.com/labring/controllers/db/bytebase/go.mod diff --git a/controllers/db/bytebase/go.sum b/staging/src/github.com/labring/controllers/db/bytebase/go.sum similarity index 100% rename from controllers/db/bytebase/go.sum rename to staging/src/github.com/labring/controllers/db/bytebase/go.sum diff --git a/controllers/db/bytebase/hack/boilerplate.go.txt b/staging/src/github.com/labring/controllers/db/bytebase/hack/boilerplate.go.txt similarity index 100% rename from controllers/db/bytebase/hack/boilerplate.go.txt rename to staging/src/github.com/labring/controllers/db/bytebase/hack/boilerplate.go.txt diff --git a/controllers/db/bytebase/main.go b/staging/src/github.com/labring/controllers/db/bytebase/main.go similarity index 100% rename from controllers/db/bytebase/main.go rename to staging/src/github.com/labring/controllers/db/bytebase/main.go diff --git a/frontend/providers/bytebase/.eslintrc.json b/staging/src/github.com/labring/frontend/providers/bytebase/.eslintrc.json similarity index 100% rename from frontend/providers/bytebase/.eslintrc.json rename to staging/src/github.com/labring/frontend/providers/bytebase/.eslintrc.json diff --git a/frontend/providers/bytebase/.gitignore b/staging/src/github.com/labring/frontend/providers/bytebase/.gitignore similarity index 100% rename from frontend/providers/bytebase/.gitignore rename to staging/src/github.com/labring/frontend/providers/bytebase/.gitignore diff --git a/frontend/providers/bytebase/Dockerfile b/staging/src/github.com/labring/frontend/providers/bytebase/Dockerfile similarity index 100% rename from frontend/providers/bytebase/Dockerfile rename to staging/src/github.com/labring/frontend/providers/bytebase/Dockerfile diff --git a/frontend/providers/bytebase/Makefile b/staging/src/github.com/labring/frontend/providers/bytebase/Makefile similarity index 100% rename from frontend/providers/bytebase/Makefile rename to staging/src/github.com/labring/frontend/providers/bytebase/Makefile diff --git a/frontend/providers/bytebase/README.md b/staging/src/github.com/labring/frontend/providers/bytebase/README.md similarity index 80% rename from frontend/providers/bytebase/README.md rename to staging/src/github.com/labring/frontend/providers/bytebase/README.md index 57350faae02..b4bf4577b17 100644 --- a/frontend/providers/bytebase/README.md +++ b/staging/src/github.com/labring/frontend/providers/bytebase/README.md @@ -1,5 +1,7 @@ # sealos bytebase +@Note: Deprecated, If one want to build bytebase frontend, please copy this dir into `frontend/providers/bytebase`, to have sealos workspace support. + ## directory ``` diff --git a/frontend/providers/bytebase/deploy/Kubefile b/staging/src/github.com/labring/frontend/providers/bytebase/deploy/Kubefile similarity index 100% rename from frontend/providers/bytebase/deploy/Kubefile rename to staging/src/github.com/labring/frontend/providers/bytebase/deploy/Kubefile diff --git a/frontend/providers/bytebase/deploy/manifests/deploy.yaml b/staging/src/github.com/labring/frontend/providers/bytebase/deploy/manifests/deploy.yaml similarity index 100% rename from frontend/providers/bytebase/deploy/manifests/deploy.yaml rename to staging/src/github.com/labring/frontend/providers/bytebase/deploy/manifests/deploy.yaml diff --git a/frontend/providers/bytebase/deploy/manifests/ingress.yaml.tmpl b/staging/src/github.com/labring/frontend/providers/bytebase/deploy/manifests/ingress.yaml.tmpl similarity index 100% rename from frontend/providers/bytebase/deploy/manifests/ingress.yaml.tmpl rename to staging/src/github.com/labring/frontend/providers/bytebase/deploy/manifests/ingress.yaml.tmpl diff --git a/frontend/providers/bytebase/next.config.js b/staging/src/github.com/labring/frontend/providers/bytebase/next.config.js similarity index 100% rename from frontend/providers/bytebase/next.config.js rename to staging/src/github.com/labring/frontend/providers/bytebase/next.config.js diff --git a/frontend/providers/bytebase/package.json b/staging/src/github.com/labring/frontend/providers/bytebase/package.json similarity index 100% rename from frontend/providers/bytebase/package.json rename to staging/src/github.com/labring/frontend/providers/bytebase/package.json diff --git a/frontend/providers/bytebase/public/favicon.ico b/staging/src/github.com/labring/frontend/providers/bytebase/public/favicon.ico similarity index 100% rename from frontend/providers/bytebase/public/favicon.ico rename to staging/src/github.com/labring/frontend/providers/bytebase/public/favicon.ico diff --git a/frontend/providers/bytebase/public/logo.svg b/staging/src/github.com/labring/frontend/providers/bytebase/public/logo.svg similarity index 100% rename from frontend/providers/bytebase/public/logo.svg rename to staging/src/github.com/labring/frontend/providers/bytebase/public/logo.svg diff --git a/frontend/providers/bytebase/src/interfaces/api.ts b/staging/src/github.com/labring/frontend/providers/bytebase/src/interfaces/api.ts similarity index 100% rename from frontend/providers/bytebase/src/interfaces/api.ts rename to staging/src/github.com/labring/frontend/providers/bytebase/src/interfaces/api.ts diff --git a/frontend/providers/bytebase/src/interfaces/bytebase.ts b/staging/src/github.com/labring/frontend/providers/bytebase/src/interfaces/bytebase.ts similarity index 100% rename from frontend/providers/bytebase/src/interfaces/bytebase.ts rename to staging/src/github.com/labring/frontend/providers/bytebase/src/interfaces/bytebase.ts diff --git a/frontend/providers/bytebase/src/interfaces/session.ts b/staging/src/github.com/labring/frontend/providers/bytebase/src/interfaces/session.ts similarity index 100% rename from frontend/providers/bytebase/src/interfaces/session.ts rename to staging/src/github.com/labring/frontend/providers/bytebase/src/interfaces/session.ts diff --git a/frontend/providers/bytebase/src/pages/_app.tsx b/staging/src/github.com/labring/frontend/providers/bytebase/src/pages/_app.tsx similarity index 100% rename from frontend/providers/bytebase/src/pages/_app.tsx rename to staging/src/github.com/labring/frontend/providers/bytebase/src/pages/_app.tsx diff --git a/frontend/providers/bytebase/src/pages/_document.tsx b/staging/src/github.com/labring/frontend/providers/bytebase/src/pages/_document.tsx similarity index 100% rename from frontend/providers/bytebase/src/pages/_document.tsx rename to staging/src/github.com/labring/frontend/providers/bytebase/src/pages/_document.tsx diff --git a/frontend/providers/bytebase/src/pages/api/apply.ts b/staging/src/github.com/labring/frontend/providers/bytebase/src/pages/api/apply.ts similarity index 100% rename from frontend/providers/bytebase/src/pages/api/apply.ts rename to staging/src/github.com/labring/frontend/providers/bytebase/src/pages/api/apply.ts diff --git a/frontend/providers/bytebase/src/pages/index.module.scss b/staging/src/github.com/labring/frontend/providers/bytebase/src/pages/index.module.scss similarity index 100% rename from frontend/providers/bytebase/src/pages/index.module.scss rename to staging/src/github.com/labring/frontend/providers/bytebase/src/pages/index.module.scss diff --git a/frontend/providers/bytebase/src/pages/index.tsx b/staging/src/github.com/labring/frontend/providers/bytebase/src/pages/index.tsx similarity index 100% rename from frontend/providers/bytebase/src/pages/index.tsx rename to staging/src/github.com/labring/frontend/providers/bytebase/src/pages/index.tsx diff --git a/frontend/providers/bytebase/src/service/auth.ts b/staging/src/github.com/labring/frontend/providers/bytebase/src/service/auth.ts similarity index 100% rename from frontend/providers/bytebase/src/service/auth.ts rename to staging/src/github.com/labring/frontend/providers/bytebase/src/service/auth.ts diff --git a/frontend/providers/bytebase/src/service/kubernetes.ts b/staging/src/github.com/labring/frontend/providers/bytebase/src/service/kubernetes.ts similarity index 100% rename from frontend/providers/bytebase/src/service/kubernetes.ts rename to staging/src/github.com/labring/frontend/providers/bytebase/src/service/kubernetes.ts diff --git a/frontend/providers/bytebase/src/service/request.ts b/staging/src/github.com/labring/frontend/providers/bytebase/src/service/request.ts similarity index 100% rename from frontend/providers/bytebase/src/service/request.ts rename to staging/src/github.com/labring/frontend/providers/bytebase/src/service/request.ts diff --git a/frontend/providers/bytebase/src/service/response.ts b/staging/src/github.com/labring/frontend/providers/bytebase/src/service/response.ts similarity index 100% rename from frontend/providers/bytebase/src/service/response.ts rename to staging/src/github.com/labring/frontend/providers/bytebase/src/service/response.ts diff --git a/frontend/providers/bytebase/src/stores/session.ts b/staging/src/github.com/labring/frontend/providers/bytebase/src/stores/session.ts similarity index 100% rename from frontend/providers/bytebase/src/stores/session.ts rename to staging/src/github.com/labring/frontend/providers/bytebase/src/stores/session.ts diff --git a/frontend/providers/bytebase/src/styles/globals.scss b/staging/src/github.com/labring/frontend/providers/bytebase/src/styles/globals.scss similarity index 100% rename from frontend/providers/bytebase/src/styles/globals.scss rename to staging/src/github.com/labring/frontend/providers/bytebase/src/styles/globals.scss diff --git a/frontend/providers/bytebase/tsconfig.json b/staging/src/github.com/labring/frontend/providers/bytebase/tsconfig.json similarity index 100% rename from frontend/providers/bytebase/tsconfig.json rename to staging/src/github.com/labring/frontend/providers/bytebase/tsconfig.json diff --git a/frontend/providers/imagehub/.env b/staging/src/github.com/labring/frontend/providers/imagehub/.env similarity index 100% rename from frontend/providers/imagehub/.env rename to staging/src/github.com/labring/frontend/providers/imagehub/.env diff --git a/frontend/providers/imagehub/.eslintrc.json b/staging/src/github.com/labring/frontend/providers/imagehub/.eslintrc.json similarity index 100% rename from frontend/providers/imagehub/.eslintrc.json rename to staging/src/github.com/labring/frontend/providers/imagehub/.eslintrc.json diff --git a/frontend/providers/imagehub/.gitignore b/staging/src/github.com/labring/frontend/providers/imagehub/.gitignore similarity index 100% rename from frontend/providers/imagehub/.gitignore rename to staging/src/github.com/labring/frontend/providers/imagehub/.gitignore diff --git a/frontend/providers/imagehub/.prettierrc.js b/staging/src/github.com/labring/frontend/providers/imagehub/.prettierrc.js similarity index 100% rename from frontend/providers/imagehub/.prettierrc.js rename to staging/src/github.com/labring/frontend/providers/imagehub/.prettierrc.js diff --git a/frontend/providers/imagehub/Dockerfile b/staging/src/github.com/labring/frontend/providers/imagehub/Dockerfile similarity index 100% rename from frontend/providers/imagehub/Dockerfile rename to staging/src/github.com/labring/frontend/providers/imagehub/Dockerfile diff --git a/frontend/providers/imagehub/Makefile b/staging/src/github.com/labring/frontend/providers/imagehub/Makefile similarity index 100% rename from frontend/providers/imagehub/Makefile rename to staging/src/github.com/labring/frontend/providers/imagehub/Makefile diff --git a/frontend/providers/imagehub/README.md b/staging/src/github.com/labring/frontend/providers/imagehub/README.md similarity index 94% rename from frontend/providers/imagehub/README.md rename to staging/src/github.com/labring/frontend/providers/imagehub/README.md index 9487b1bcda0..672b4e7b47a 100644 --- a/frontend/providers/imagehub/README.md +++ b/staging/src/github.com/labring/frontend/providers/imagehub/README.md @@ -1,5 +1,7 @@ # Image Hub +@Note: Deprecated, If one want to build imagehub frontend, please copy this dir into `frontend/providers/imagehub`, to have sealos workspace support. + https://www.sealos.io/docs/cloud/apps/appstore/ ## 目录说明 diff --git a/frontend/providers/imagehub/deploy/Kubefile b/staging/src/github.com/labring/frontend/providers/imagehub/deploy/Kubefile similarity index 100% rename from frontend/providers/imagehub/deploy/Kubefile rename to staging/src/github.com/labring/frontend/providers/imagehub/deploy/Kubefile diff --git a/frontend/providers/imagehub/deploy/manifests/deploy.yaml b/staging/src/github.com/labring/frontend/providers/imagehub/deploy/manifests/deploy.yaml similarity index 100% rename from frontend/providers/imagehub/deploy/manifests/deploy.yaml rename to staging/src/github.com/labring/frontend/providers/imagehub/deploy/manifests/deploy.yaml diff --git a/frontend/providers/imagehub/deploy/manifests/ingress.yaml.tmpl b/staging/src/github.com/labring/frontend/providers/imagehub/deploy/manifests/ingress.yaml.tmpl similarity index 100% rename from frontend/providers/imagehub/deploy/manifests/ingress.yaml.tmpl rename to staging/src/github.com/labring/frontend/providers/imagehub/deploy/manifests/ingress.yaml.tmpl diff --git a/frontend/providers/imagehub/deploy/manifests/rbac.yaml b/staging/src/github.com/labring/frontend/providers/imagehub/deploy/manifests/rbac.yaml similarity index 100% rename from frontend/providers/imagehub/deploy/manifests/rbac.yaml rename to staging/src/github.com/labring/frontend/providers/imagehub/deploy/manifests/rbac.yaml diff --git a/frontend/providers/imagehub/next.config.js b/staging/src/github.com/labring/frontend/providers/imagehub/next.config.js similarity index 100% rename from frontend/providers/imagehub/next.config.js rename to staging/src/github.com/labring/frontend/providers/imagehub/next.config.js diff --git a/frontend/providers/imagehub/package.json b/staging/src/github.com/labring/frontend/providers/imagehub/package.json similarity index 100% rename from frontend/providers/imagehub/package.json rename to staging/src/github.com/labring/frontend/providers/imagehub/package.json diff --git a/frontend/providers/imagehub/postcss.config.js b/staging/src/github.com/labring/frontend/providers/imagehub/postcss.config.js similarity index 100% rename from frontend/providers/imagehub/postcss.config.js rename to staging/src/github.com/labring/frontend/providers/imagehub/postcss.config.js diff --git a/frontend/providers/imagehub/public/favicon.ico b/staging/src/github.com/labring/frontend/providers/imagehub/public/favicon.ico similarity index 100% rename from frontend/providers/imagehub/public/favicon.ico rename to staging/src/github.com/labring/frontend/providers/imagehub/public/favicon.ico diff --git a/frontend/providers/imagehub/public/iconfont/iconfont.js b/staging/src/github.com/labring/frontend/providers/imagehub/public/iconfont/iconfont.js similarity index 100% rename from frontend/providers/imagehub/public/iconfont/iconfont.js rename to staging/src/github.com/labring/frontend/providers/imagehub/public/iconfont/iconfont.js diff --git a/frontend/providers/imagehub/public/images/background.png b/staging/src/github.com/labring/frontend/providers/imagehub/public/images/background.png similarity index 100% rename from frontend/providers/imagehub/public/images/background.png rename to staging/src/github.com/labring/frontend/providers/imagehub/public/images/background.png diff --git a/frontend/providers/imagehub/public/images/error.svg b/staging/src/github.com/labring/frontend/providers/imagehub/public/images/error.svg similarity index 100% rename from frontend/providers/imagehub/public/images/error.svg rename to staging/src/github.com/labring/frontend/providers/imagehub/public/images/error.svg diff --git a/frontend/providers/imagehub/public/images/error_timeout.svg b/staging/src/github.com/labring/frontend/providers/imagehub/public/images/error_timeout.svg similarity index 100% rename from frontend/providers/imagehub/public/images/error_timeout.svg rename to staging/src/github.com/labring/frontend/providers/imagehub/public/images/error_timeout.svg diff --git a/frontend/providers/imagehub/public/images/image_empty.svg b/staging/src/github.com/labring/frontend/providers/imagehub/public/images/image_empty.svg similarity index 100% rename from frontend/providers/imagehub/public/images/image_empty.svg rename to staging/src/github.com/labring/frontend/providers/imagehub/public/images/image_empty.svg diff --git a/frontend/providers/imagehub/public/logo.svg b/staging/src/github.com/labring/frontend/providers/imagehub/public/logo.svg similarity index 100% rename from frontend/providers/imagehub/public/logo.svg rename to staging/src/github.com/labring/frontend/providers/imagehub/public/logo.svg diff --git a/frontend/providers/imagehub/src/components/button/index.module.scss b/staging/src/github.com/labring/frontend/providers/imagehub/src/components/button/index.module.scss similarity index 100% rename from frontend/providers/imagehub/src/components/button/index.module.scss rename to staging/src/github.com/labring/frontend/providers/imagehub/src/components/button/index.module.scss diff --git a/frontend/providers/imagehub/src/components/button/index.tsx b/staging/src/github.com/labring/frontend/providers/imagehub/src/components/button/index.tsx similarity index 100% rename from frontend/providers/imagehub/src/components/button/index.tsx rename to staging/src/github.com/labring/frontend/providers/imagehub/src/components/button/index.tsx diff --git a/frontend/providers/imagehub/src/components/error/index.tsx b/staging/src/github.com/labring/frontend/providers/imagehub/src/components/error/index.tsx similarity index 100% rename from frontend/providers/imagehub/src/components/error/index.tsx rename to staging/src/github.com/labring/frontend/providers/imagehub/src/components/error/index.tsx diff --git a/frontend/providers/imagehub/src/components/iconfont/index.tsx b/staging/src/github.com/labring/frontend/providers/imagehub/src/components/iconfont/index.tsx similarity index 100% rename from frontend/providers/imagehub/src/components/iconfont/index.tsx rename to staging/src/github.com/labring/frontend/providers/imagehub/src/components/iconfont/index.tsx diff --git a/frontend/providers/imagehub/src/components/labels/index.module.scss b/staging/src/github.com/labring/frontend/providers/imagehub/src/components/labels/index.module.scss similarity index 100% rename from frontend/providers/imagehub/src/components/labels/index.module.scss rename to staging/src/github.com/labring/frontend/providers/imagehub/src/components/labels/index.module.scss diff --git a/frontend/providers/imagehub/src/components/labels/index.tsx b/staging/src/github.com/labring/frontend/providers/imagehub/src/components/labels/index.tsx similarity index 100% rename from frontend/providers/imagehub/src/components/labels/index.tsx rename to staging/src/github.com/labring/frontend/providers/imagehub/src/components/labels/index.tsx diff --git a/frontend/providers/imagehub/src/components/markdown/index.module.scss b/staging/src/github.com/labring/frontend/providers/imagehub/src/components/markdown/index.module.scss similarity index 100% rename from frontend/providers/imagehub/src/components/markdown/index.module.scss rename to staging/src/github.com/labring/frontend/providers/imagehub/src/components/markdown/index.module.scss diff --git a/frontend/providers/imagehub/src/components/markdown/index.tsx b/staging/src/github.com/labring/frontend/providers/imagehub/src/components/markdown/index.tsx similarity index 100% rename from frontend/providers/imagehub/src/components/markdown/index.tsx rename to staging/src/github.com/labring/frontend/providers/imagehub/src/components/markdown/index.tsx diff --git a/frontend/providers/imagehub/src/components/pgination/index.module.scss b/staging/src/github.com/labring/frontend/providers/imagehub/src/components/pgination/index.module.scss similarity index 100% rename from frontend/providers/imagehub/src/components/pgination/index.module.scss rename to staging/src/github.com/labring/frontend/providers/imagehub/src/components/pgination/index.module.scss diff --git a/frontend/providers/imagehub/src/components/pgination/index.tsx b/staging/src/github.com/labring/frontend/providers/imagehub/src/components/pgination/index.tsx similarity index 100% rename from frontend/providers/imagehub/src/components/pgination/index.tsx rename to staging/src/github.com/labring/frontend/providers/imagehub/src/components/pgination/index.tsx diff --git a/frontend/providers/imagehub/src/interfaces/api.ts b/staging/src/github.com/labring/frontend/providers/imagehub/src/interfaces/api.ts similarity index 100% rename from frontend/providers/imagehub/src/interfaces/api.ts rename to staging/src/github.com/labring/frontend/providers/imagehub/src/interfaces/api.ts diff --git a/frontend/providers/imagehub/src/interfaces/imagehub.ts b/staging/src/github.com/labring/frontend/providers/imagehub/src/interfaces/imagehub.ts similarity index 100% rename from frontend/providers/imagehub/src/interfaces/imagehub.ts rename to staging/src/github.com/labring/frontend/providers/imagehub/src/interfaces/imagehub.ts diff --git a/frontend/providers/imagehub/src/interfaces/session.ts b/staging/src/github.com/labring/frontend/providers/imagehub/src/interfaces/session.ts similarity index 100% rename from frontend/providers/imagehub/src/interfaces/session.ts rename to staging/src/github.com/labring/frontend/providers/imagehub/src/interfaces/session.ts diff --git a/frontend/providers/imagehub/src/layout/index.module.scss b/staging/src/github.com/labring/frontend/providers/imagehub/src/layout/index.module.scss similarity index 100% rename from frontend/providers/imagehub/src/layout/index.module.scss rename to staging/src/github.com/labring/frontend/providers/imagehub/src/layout/index.module.scss diff --git a/frontend/providers/imagehub/src/layout/index.tsx b/staging/src/github.com/labring/frontend/providers/imagehub/src/layout/index.tsx similarity index 100% rename from frontend/providers/imagehub/src/layout/index.tsx rename to staging/src/github.com/labring/frontend/providers/imagehub/src/layout/index.tsx diff --git a/frontend/providers/imagehub/src/mock/imagehub.ts b/staging/src/github.com/labring/frontend/providers/imagehub/src/mock/imagehub.ts similarity index 100% rename from frontend/providers/imagehub/src/mock/imagehub.ts rename to staging/src/github.com/labring/frontend/providers/imagehub/src/mock/imagehub.ts diff --git a/frontend/providers/imagehub/src/pages/_app.tsx b/staging/src/github.com/labring/frontend/providers/imagehub/src/pages/_app.tsx similarity index 100% rename from frontend/providers/imagehub/src/pages/_app.tsx rename to staging/src/github.com/labring/frontend/providers/imagehub/src/pages/_app.tsx diff --git a/frontend/providers/imagehub/src/pages/_document.tsx b/staging/src/github.com/labring/frontend/providers/imagehub/src/pages/_document.tsx similarity index 100% rename from frontend/providers/imagehub/src/pages/_document.tsx rename to staging/src/github.com/labring/frontend/providers/imagehub/src/pages/_document.tsx diff --git a/frontend/providers/imagehub/src/pages/api/get_detail.ts b/staging/src/github.com/labring/frontend/providers/imagehub/src/pages/api/get_detail.ts similarity index 100% rename from frontend/providers/imagehub/src/pages/api/get_detail.ts rename to staging/src/github.com/labring/frontend/providers/imagehub/src/pages/api/get_detail.ts diff --git a/frontend/providers/imagehub/src/pages/api/get_list.ts b/staging/src/github.com/labring/frontend/providers/imagehub/src/pages/api/get_list.ts similarity index 100% rename from frontend/providers/imagehub/src/pages/api/get_list.ts rename to staging/src/github.com/labring/frontend/providers/imagehub/src/pages/api/get_list.ts diff --git a/frontend/providers/imagehub/src/pages/detail.module.scss b/staging/src/github.com/labring/frontend/providers/imagehub/src/pages/detail.module.scss similarity index 100% rename from frontend/providers/imagehub/src/pages/detail.module.scss rename to staging/src/github.com/labring/frontend/providers/imagehub/src/pages/detail.module.scss diff --git a/frontend/providers/imagehub/src/pages/detail.tsx b/staging/src/github.com/labring/frontend/providers/imagehub/src/pages/detail.tsx similarity index 100% rename from frontend/providers/imagehub/src/pages/detail.tsx rename to staging/src/github.com/labring/frontend/providers/imagehub/src/pages/detail.tsx diff --git a/frontend/providers/imagehub/src/pages/index.module.scss b/staging/src/github.com/labring/frontend/providers/imagehub/src/pages/index.module.scss similarity index 100% rename from frontend/providers/imagehub/src/pages/index.module.scss rename to staging/src/github.com/labring/frontend/providers/imagehub/src/pages/index.module.scss diff --git a/frontend/providers/imagehub/src/pages/index.tsx b/staging/src/github.com/labring/frontend/providers/imagehub/src/pages/index.tsx similarity index 100% rename from frontend/providers/imagehub/src/pages/index.tsx rename to staging/src/github.com/labring/frontend/providers/imagehub/src/pages/index.tsx diff --git a/frontend/providers/imagehub/src/pages/store.module.scss b/staging/src/github.com/labring/frontend/providers/imagehub/src/pages/store.module.scss similarity index 100% rename from frontend/providers/imagehub/src/pages/store.module.scss rename to staging/src/github.com/labring/frontend/providers/imagehub/src/pages/store.module.scss diff --git a/frontend/providers/imagehub/src/pages/store.tsx b/staging/src/github.com/labring/frontend/providers/imagehub/src/pages/store.tsx similarity index 100% rename from frontend/providers/imagehub/src/pages/store.tsx rename to staging/src/github.com/labring/frontend/providers/imagehub/src/pages/store.tsx diff --git a/frontend/providers/imagehub/src/services/kubernetes.ts b/staging/src/github.com/labring/frontend/providers/imagehub/src/services/kubernetes.ts similarity index 100% rename from frontend/providers/imagehub/src/services/kubernetes.ts rename to staging/src/github.com/labring/frontend/providers/imagehub/src/services/kubernetes.ts diff --git a/frontend/providers/imagehub/src/services/request.ts b/staging/src/github.com/labring/frontend/providers/imagehub/src/services/request.ts similarity index 100% rename from frontend/providers/imagehub/src/services/request.ts rename to staging/src/github.com/labring/frontend/providers/imagehub/src/services/request.ts diff --git a/frontend/providers/imagehub/src/services/response.ts b/staging/src/github.com/labring/frontend/providers/imagehub/src/services/response.ts similarity index 100% rename from frontend/providers/imagehub/src/services/response.ts rename to staging/src/github.com/labring/frontend/providers/imagehub/src/services/response.ts diff --git a/frontend/providers/imagehub/src/services/wrapper.ts b/staging/src/github.com/labring/frontend/providers/imagehub/src/services/wrapper.ts similarity index 100% rename from frontend/providers/imagehub/src/services/wrapper.ts rename to staging/src/github.com/labring/frontend/providers/imagehub/src/services/wrapper.ts diff --git a/frontend/providers/imagehub/src/stores/session.ts b/staging/src/github.com/labring/frontend/providers/imagehub/src/stores/session.ts similarity index 100% rename from frontend/providers/imagehub/src/stores/session.ts rename to staging/src/github.com/labring/frontend/providers/imagehub/src/stores/session.ts diff --git a/frontend/providers/imagehub/src/styles/globals.scss b/staging/src/github.com/labring/frontend/providers/imagehub/src/styles/globals.scss similarity index 100% rename from frontend/providers/imagehub/src/styles/globals.scss rename to staging/src/github.com/labring/frontend/providers/imagehub/src/styles/globals.scss diff --git a/frontend/providers/imagehub/src/utils/strings.ts b/staging/src/github.com/labring/frontend/providers/imagehub/src/utils/strings.ts similarity index 100% rename from frontend/providers/imagehub/src/utils/strings.ts rename to staging/src/github.com/labring/frontend/providers/imagehub/src/utils/strings.ts diff --git a/frontend/providers/imagehub/tailwind.config.js b/staging/src/github.com/labring/frontend/providers/imagehub/tailwind.config.js similarity index 100% rename from frontend/providers/imagehub/tailwind.config.js rename to staging/src/github.com/labring/frontend/providers/imagehub/tailwind.config.js diff --git a/frontend/providers/imagehub/tsconfig.json b/staging/src/github.com/labring/frontend/providers/imagehub/tsconfig.json similarity index 100% rename from frontend/providers/imagehub/tsconfig.json rename to staging/src/github.com/labring/frontend/providers/imagehub/tsconfig.json diff --git a/service/hub/.gitignore b/staging/src/github.com/labring/service/hub/.gitignore similarity index 100% rename from service/hub/.gitignore rename to staging/src/github.com/labring/service/hub/.gitignore diff --git a/service/hub/Dockerfile b/staging/src/github.com/labring/service/hub/Dockerfile similarity index 100% rename from service/hub/Dockerfile rename to staging/src/github.com/labring/service/hub/Dockerfile diff --git a/service/hub/Makefile b/staging/src/github.com/labring/service/hub/Makefile similarity index 100% rename from service/hub/Makefile rename to staging/src/github.com/labring/service/hub/Makefile diff --git a/service/hub/README.md b/staging/src/github.com/labring/service/hub/README.md similarity index 100% rename from service/hub/README.md rename to staging/src/github.com/labring/service/hub/README.md diff --git a/service/hub/api/authenticate.go b/staging/src/github.com/labring/service/hub/api/authenticate.go similarity index 100% rename from service/hub/api/authenticate.go rename to staging/src/github.com/labring/service/hub/api/authenticate.go diff --git a/service/hub/api/authorize.go b/staging/src/github.com/labring/service/hub/api/authorize.go similarity index 100% rename from service/hub/api/authorize.go rename to staging/src/github.com/labring/service/hub/api/authorize.go diff --git a/service/hub/auth/authenticate.go b/staging/src/github.com/labring/service/hub/auth/authenticate.go similarity index 100% rename from service/hub/auth/authenticate.go rename to staging/src/github.com/labring/service/hub/auth/authenticate.go diff --git a/service/hub/auth/authorize.go b/staging/src/github.com/labring/service/hub/auth/authorize.go similarity index 100% rename from service/hub/auth/authorize.go rename to staging/src/github.com/labring/service/hub/auth/authorize.go diff --git a/service/hub/config/config.yml b/staging/src/github.com/labring/service/hub/config/config.yml similarity index 100% rename from service/hub/config/config.yml rename to staging/src/github.com/labring/service/hub/config/config.yml diff --git a/service/hub/deploy/README.md b/staging/src/github.com/labring/service/hub/deploy/README.md similarity index 100% rename from service/hub/deploy/README.md rename to staging/src/github.com/labring/service/hub/deploy/README.md diff --git a/service/hub/deploy/manifests/deploy.yaml b/staging/src/github.com/labring/service/hub/deploy/manifests/deploy.yaml similarity index 100% rename from service/hub/deploy/manifests/deploy.yaml rename to staging/src/github.com/labring/service/hub/deploy/manifests/deploy.yaml diff --git a/service/hub/deploy/manifests/ingress.yaml b/staging/src/github.com/labring/service/hub/deploy/manifests/ingress.yaml similarity index 100% rename from service/hub/deploy/manifests/ingress.yaml rename to staging/src/github.com/labring/service/hub/deploy/manifests/ingress.yaml diff --git a/service/hub/go.mod b/staging/src/github.com/labring/service/hub/go.mod similarity index 93% rename from service/hub/go.mod rename to staging/src/github.com/labring/service/hub/go.mod index 63f592f9d05..f9735446568 100644 --- a/service/hub/go.mod +++ b/staging/src/github.com/labring/service/hub/go.mod @@ -105,8 +105,8 @@ replace ( ) replace ( - github.com/labring/image-cri-shim => ../../staging/src/github.com/labring/image-cri-shim - github.com/labring/lvscare => ../../staging/src/github.com/labring/lvscare - github.com/labring/sealos => ../../ - github.com/labring/sealos/controllers/imagehub => ./../../staging/src/github.com/labring/controllers/imagehub + github.com/labring/image-cri-shim => ../../image-cri-shim + github.com/labring/lvscare => ../../lvscare + github.com/labring/sealos => ../../../../../../ + github.com/labring/sealos/controllers/imagehub => ../../controllers/imagehub ) diff --git a/service/hub/go.sum b/staging/src/github.com/labring/service/hub/go.sum similarity index 100% rename from service/hub/go.sum rename to staging/src/github.com/labring/service/hub/go.sum diff --git a/service/hub/main.go b/staging/src/github.com/labring/service/hub/main.go similarity index 100% rename from service/hub/main.go rename to staging/src/github.com/labring/service/hub/main.go diff --git a/service/hub/server/config.go b/staging/src/github.com/labring/service/hub/server/config.go similarity index 100% rename from service/hub/server/config.go rename to staging/src/github.com/labring/service/hub/server/config.go diff --git a/service/hub/server/server.go b/staging/src/github.com/labring/service/hub/server/server.go similarity index 100% rename from service/hub/server/server.go rename to staging/src/github.com/labring/service/hub/server/server.go diff --git a/service/hub/utils/ip.go b/staging/src/github.com/labring/service/hub/utils/ip.go similarity index 100% rename from service/hub/utils/ip.go rename to staging/src/github.com/labring/service/hub/utils/ip.go diff --git a/service/hub/utils/limiter.go b/staging/src/github.com/labring/service/hub/utils/limiter.go similarity index 100% rename from service/hub/utils/limiter.go rename to staging/src/github.com/labring/service/hub/utils/limiter.go diff --git a/tools/goimports b/tools/goimports deleted file mode 100755 index c90bfdbe17c..00000000000 Binary files a/tools/goimports and /dev/null differ