From 1a0dcff00fb69ac1cd78b1a7eeeec9ca1e20ea22 Mon Sep 17 00:00:00 2001 From: ivakoleva Date: Wed, 15 Feb 2023 16:00:44 +0200 Subject: [PATCH] versatile-data-kit: git pre-commit hooks config (#1625) Frontend config files were failing git pre-coming hooks due: * too large * JSON format inspection * PR title prefix License insertion now covers TypeScript, JavaScript, (S)CSS, HTML, Y(A)ML file types in addition. PR titles can be now associated with "frontend" component. Modified the pre-commit and gitlint configurations accordingly. Testing done: installed the hook locally, and verified all frontend/data-pipelines changes from multiple stacked PRs were committed and auto-modified correctly with the code header expected. --------- Signed-off-by: ivakoleva Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/dependabot.yml | 3 ++ .github/workflows/codacy.yml | 3 ++ .github/workflows/format.yml | 3 ++ .gitlint | 2 +- .pre-commit-config.yaml | 40 +++++++++++++++++++ projects/control-service/cicd/.gitlab-ci.yml | 3 ++ .../control-service/cicd/trino-values.yaml | 3 +- .../pipelines-control-service/Chart.yaml | 3 ++ .../configmap_datajob_template_file.yaml | 3 ++ .../templates/deployment.yaml | 3 ++ .../templates/fluentdconfig.yaml | 3 ++ .../templates/fluentdconfig_datajobs.yaml | 3 ++ .../templates/ingress.yaml | 3 ++ .../templates/prometheusrules.yaml | 3 ++ .../templates/role.yaml | 3 ++ .../templates/role_datajobs.yaml | 3 ++ .../templates/rolebindings.yaml | 3 ++ .../templates/rolebindings_datajobs.yaml | 3 ++ .../templates/secret_jdbc.yaml | 3 ++ .../secret_kubernetes_authenticator.yaml | 3 ++ .../templates/secret_pull_base_img.yaml | 3 ++ .../templates/secret_pull_builder_img.yaml | 3 ++ .../templates/secret_pull_img.yaml | 3 ++ ...et_pull_pipelines_control_service_img.yaml | 3 ++ .../templates/secret_pull_vdk_sdk_img.yaml | 3 ++ .../templates/secrets.yaml | 3 ++ .../templates/service.yaml | 3 ++ .../templates/serviceaccount.yaml | 3 ++ .../templates/servicemonitor.yaml | 3 ++ .../pipelines-control-service/values.yaml | 3 ++ projects/frontend/cicd/.gitlab-ci.yml | 3 +- .../shared-components/cicd/.gitlab.yml | 2 + projects/vdk-heartbeat/.gitlab-ci.yml | 2 + .../vdk-jupyterlab-extension/.eslintrc.js | 5 +++ .../vdk-jupyterlab-extension/babel.config.js | 5 +++ .../vdk-jupyterlab-extension/jest.config.js | 5 +++ .../vdk-jupyterlab-extension.spec.ts | 5 +++ .../vdk-jupyterlab-extension/src/handler.ts | 5 +++ .../vdk-jupyterlab-extension/src/index.ts | 5 +++ .../src/serverRequests.ts | 5 +++ .../vdk-jupyterlab-extension/src/utils.ts | 5 ++- .../vdk-jupyterlab-extension/style/base.css | 4 ++ .../vdk-jupyterlab-extension/style/index.css | 5 +++ .../vdk-jupyterlab-extension/style/index.js | 5 +++ .../style/vdkDialogs.css | 5 +++ .../ui-tests/playwright.config.js | 5 +++ .../tests/vdk-jupyterlab-extension.spec.ts | 5 +++ .../vdk/plugin/marquez/docker-compose.yaml | 3 ++ .../vdk-plugins/vdk-server/.plugin-ci.yml | 2 +- ...igmap-local-registry-hosting-template.yaml | 3 ++ .../plugin/server/ingress-nginx-deploy.yaml | 3 ++ .../server/kind-cluster-config-template.yaml | 3 ++ support/gitlab-runners/kubeconfig.yaml | 3 ++ 53 files changed, 214 insertions(+), 5 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9bd0ba1a02..490a5473a7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: diff --git a/.github/workflows/codacy.yml b/.github/workflows/codacy.yml index 0f3fc725f9..0e3603be05 100644 --- a/.github/workflows/codacy.yml +++ b/.github/workflows/codacy.yml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + # This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by # separate terms of service, privacy policy, and support diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index eb8794aa25..f5c94e2857 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + name: Google Java Format on: diff --git a/.gitlint b/.gitlint index 80a94987c2..dc0d25e7c9 100644 --- a/.gitlint +++ b/.gitlint @@ -6,4 +6,4 @@ contrib=contrib-body-requires-signed-off-by # commit-msg title must be matched to. # Note that the regex can contradict with other rules if not used correctly # (e.g. title-must-not-contain-word). -regex=(vdk-.*|versatile-data-kit|control-service|examples): .* +regex=(vdk-.*|versatile-data-kit|control-service|examples|frontend): .* diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c8e76089ba..0f626b887d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,9 +10,11 @@ repos: # exclude helm chart templates exclude: ^projects/control-service/projects/helm_charts - id: check-json + exclude: (^projects/frontend/data-pipelines/gui/tsconfig.json|^projects/frontend/data-pipelines/gui/package-lock.json|^projects/frontend/data-pipelines/gui/projects/data-pipelines/.eslintrc.json|^projects/frontend/data-pipelines/gui/projects/data-pipelines/tsconfig.lib.prod.json|^projects/frontend/data-pipelines/gui/projects/data-pipelines/tsconfig.spec.json|^projects/frontend/data-pipelines/gui/projects/data-pipelines/tsconfig.lib.json|^projects/frontend/data-pipelines/gui/projects/ui/.eslintrc.json|^projects/frontend/data-pipelines/gui/projects/ui/tsconfig.app.json|^projects/frontend/data-pipelines/gui/projects/ui/tsconfig.spec.json) - id: check-ast exclude: ^projects/vdk-core/tests/functional/run/jobs/syntax-error-job/1_step.py - id: check-added-large-files + exclude: (^projects/frontend/data-pipelines/gui/tsconfig.json|^projects/frontend/data-pipelines/gui/package-lock.json|^projects/frontend/data-pipelines/gui/projects/ui/src/assets/css/clr-ui.min.css) - id: end-of-file-fixer - id: trailing-whitespace - id: check-executables-have-shebangs @@ -77,6 +79,44 @@ repos: - NOTICE.txt - --comment-style - /*| *| */ + - id: insert-license + files: \.ts$ + args: + - --use-current-year + - --license-filepath + - NOTICE.txt + - --comment-style + - /*| *| */ + - id: insert-license + files: \.js$ + args: + - --use-current-year + - --license-filepath + - NOTICE.txt + - --comment-style + - /*| *| */ + - id: insert-license + files: \.html + args: + - --use-current-year + - --license-filepath + - NOTICE.txt + - --comment-style + - + - id: insert-license + files: (\.scss$|\.css$) + args: + - --use-current-year + - --license-filepath + - NOTICE.txt + - --comment-style + - /*| *| */ + - id: insert-license + files: (\.yaml$|\.yml$) + args: + - --use-current-year + - --license-filepath + - NOTICE.txt - id: insert-license files: \.py$ args: diff --git a/projects/control-service/cicd/.gitlab-ci.yml b/projects/control-service/cicd/.gitlab-ci.yml index 568d2c8391..5080687d8f 100644 --- a/projects/control-service/cicd/.gitlab-ci.yml +++ b/projects/control-service/cicd/.gitlab-ci.yml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + .control_service_retry: retry_options: max: 1 diff --git a/projects/control-service/cicd/trino-values.yaml b/projects/control-service/cicd/trino-values.yaml index 6eb9a561c6..c0d1ac21ff 100644 --- a/projects/control-service/cicd/trino-values.yaml +++ b/projects/control-service/cicd/trino-values.yaml @@ -1,4 +1,5 @@ - +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 image: repository: trinodb/trino diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/Chart.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/Chart.yaml index b30845d52e..899a119619 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/Chart.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/Chart.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + apiVersion: v2 name: pipelines-control-service description: A Helm chart for Versatile Data Kit Control Service diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/configmap_datajob_template_file.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/configmap_datajob_template_file.yaml index da640dcad4..1bccfac0d3 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/configmap_datajob_template_file.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/configmap_datajob_template_file.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if .Values.datajobTemplate.enabled }} apiVersion: v1 kind: ConfigMap diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/deployment.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/deployment.yaml index 57dca6bd5d..f7f8f1850b 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/deployment.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/deployment.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/fluentdconfig.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/fluentdconfig.yaml index bc764e021d..93d56a9ce9 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/fluentdconfig.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/fluentdconfig.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if .Values.fluentd.enabled }} apiVersion: logs.vdp.vmware.com/v1beta1 kind: FluentdConfig diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/fluentdconfig_datajobs.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/fluentdconfig_datajobs.yaml index 2a29fbf2ce..ff0ff6316f 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/fluentdconfig_datajobs.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/fluentdconfig_datajobs.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if .Values.dataJob.fluentd.enabled }} apiVersion: logs.vdp.vmware.com/v1beta1 kind: FluentdConfig diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/ingress.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/ingress.yaml index fa4325c381..99691d22a0 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/ingress.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/ingress.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if .Values.ingress.enabled -}} kind: Ingress metadata: diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/prometheusrules.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/prometheusrules.yaml index 1ec9704030..25e2670036 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/prometheusrules.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/prometheusrules.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if .Values.alerting.enabled }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/role.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/role.yaml index 55ecda6fac..0351ee3099 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/role.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/role.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/role_datajobs.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/role_datajobs.yaml index dd58073d4b..6bfcd1dc75 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/role_datajobs.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/role_datajobs.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if and .Values.rbac.create .Values.rbac.datajobsDeployment.create -}} apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/rolebindings.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/rolebindings.yaml index 281eb6d779..09ef753de4 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/rolebindings.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/rolebindings.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if and .Values.serviceAccount.create .Values.rbac.create }} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/rolebindings_datajobs.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/rolebindings_datajobs.yaml index 32497f5772..fd4a56850a 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/rolebindings_datajobs.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/rolebindings_datajobs.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if and .Values.serviceAccount.create .Values.rbac.create .Values.rbac.datajobsDeployment.create }} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_jdbc.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_jdbc.yaml index b12c65ece3..fe097c9c6c 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_jdbc.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_jdbc.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + ## Create a secret with JDBC credentials for embedded database (PostgreSQL or CockroachDB) only if externalSecretName is not supplied. ## If any of the fields are empty, we fall-back to defaults (f.e. local dev environment) {{- if not .Values.database.externalSecretName }} diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_kubernetes_authenticator.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_kubernetes_authenticator.yaml index 21e1238d57..2428148f6a 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_kubernetes_authenticator.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_kubernetes_authenticator.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + ## Create a secret with Kerberos keytab for authentication if kerberos authentication flag is turned on. ## The keytab file contents are set from the values.yaml file and are intended to be populated by an env ## variable. diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_base_img.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_base_img.yaml index ae82b8ca91..fdb953e7e7 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_base_img.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_base_img.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if .Values.deploymentDataJobBaseImage.password }} apiVersion: v1 kind: Secret diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_builder_img.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_builder_img.yaml index ffe8853acd..d8dcbd7dc3 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_builder_img.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_builder_img.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if .Values.deploymentBuilderImage.password }} apiVersion: v1 kind: Secret diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_img.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_img.yaml index dd671f7120..e7213b440c 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_img.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_img.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if and (eq .Values.deploymentDockerRegistryType "generic") .Values.deploymentDockerRegistryUsernameReadOnly .Values.deploymentDockerRegistryPasswordReadOnly }} apiVersion: v1 kind: Secret diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_pipelines_control_service_img.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_pipelines_control_service_img.yaml index 492c6cf7e9..de7decc12f 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_pipelines_control_service_img.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_pipelines_control_service_img.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if (include "shouldCreatePipelinesControlServiceDockerRepoSecret" .) }} apiVersion: v1 kind: Secret diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_vdk_sdk_img.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_vdk_sdk_img.yaml index b2b0d958db..12aa38f760 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_vdk_sdk_img.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secret_pull_vdk_sdk_img.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if (include "shouldCreateVdkSdkDockerRepoSecret" .) }} apiVersion: v1 kind: Secret diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secrets.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secrets.yaml index 030f873c11..14209994a4 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secrets.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/secrets.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + apiVersion: v1 kind: Secret metadata: diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/service.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/service.yaml index 41d5f84bd9..88134ecb00 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/service.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/service.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + apiVersion: v1 kind: Service metadata: diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/serviceaccount.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/serviceaccount.yaml index 075f4407b9..297cb41d76 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/serviceaccount.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/serviceaccount.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if .Values.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/servicemonitor.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/servicemonitor.yaml index 2088895b24..1d04f3ea76 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/templates/servicemonitor.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/templates/servicemonitor.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + {{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor diff --git a/projects/control-service/projects/helm_charts/pipelines-control-service/values.yaml b/projects/control-service/projects/helm_charts/pipelines-control-service/values.yaml index ed733858d1..2c77255836 100644 --- a/projects/control-service/projects/helm_charts/pipelines-control-service/values.yaml +++ b/projects/control-service/projects/helm_charts/pipelines-control-service/values.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + ## Global Docker image parameters ## Please, note that this will override the image parameters, including dependencies, configured to use the global value ## Current available global Docker image parameter(s): imageRegistry diff --git a/projects/frontend/cicd/.gitlab-ci.yml b/projects/frontend/cicd/.gitlab-ci.yml index 54c24c7bf8..f346cf25b7 100644 --- a/projects/frontend/cicd/.gitlab-ci.yml +++ b/projects/frontend/cicd/.gitlab-ci.yml @@ -1,4 +1,5 @@ - +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 frontend_publish_test_image: image: docker:19.03.15 diff --git a/projects/frontend/shared-components/cicd/.gitlab.yml b/projects/frontend/shared-components/cicd/.gitlab.yml index e69de29bb2..e6b31a37bb 100644 --- a/projects/frontend/shared-components/cicd/.gitlab.yml +++ b/projects/frontend/shared-components/cicd/.gitlab.yml @@ -0,0 +1,2 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 diff --git a/projects/vdk-heartbeat/.gitlab-ci.yml b/projects/vdk-heartbeat/.gitlab-ci.yml index 25db3e355d..877463c3ce 100644 --- a/projects/vdk-heartbeat/.gitlab-ci.yml +++ b/projects/vdk-heartbeat/.gitlab-ci.yml @@ -1,3 +1,5 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 image: "python:3.9" diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/.eslintrc.js b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/.eslintrc.js index 665374bf0e..7517d0ce77 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/.eslintrc.js +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/.eslintrc.js @@ -1,3 +1,8 @@ +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + module.exports = { extends: [ 'eslint:recommended', diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/babel.config.js b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/babel.config.js index 8b5c76420c..a4e6a6e40f 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/babel.config.js +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/babel.config.js @@ -1 +1,6 @@ +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + module.exports = require('@jupyterlab/testutils/lib/babel.config'); diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/jest.config.js b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/jest.config.js index 4f1bf3dab8..937f6ca34e 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/jest.config.js +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/jest.config.js @@ -1,3 +1,8 @@ +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + const jestJupyterLab = require('@jupyterlab/testutils/lib/jest-config'); const esModules = [ diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/__tests__/vdk-jupyterlab-extension.spec.ts b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/__tests__/vdk-jupyterlab-extension.spec.ts index ff980a2971..eb26ea6b45 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/__tests__/vdk-jupyterlab-extension.spec.ts +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/__tests__/vdk-jupyterlab-extension.spec.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + /** * Example of [Jest](https://jestjs.io/docs/getting-started) unit tests */ diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/handler.ts b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/handler.ts index da89917b7d..2faee049ec 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/handler.ts +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/handler.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import { URLExt } from '@jupyterlab/coreutils'; import { ServerConnection } from '@jupyterlab/services'; diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/index.ts b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/index.ts index bfae39e88e..59fbdf0f72 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/index.ts +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import { JupyterFrontEnd, JupyterFrontEndPlugin diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/serverRequests.ts b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/serverRequests.ts index 493b79c295..77c78cdab7 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/serverRequests.ts +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/serverRequests.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import { requestAPI } from './handler'; import { Dialog, showErrorMessage } from '@jupyterlab/apputils'; /** diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/utils.ts b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/utils.ts index 86dc0bcf08..52d8ff899f 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/utils.ts +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/src/utils.ts @@ -1,4 +1,7 @@ - +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ export function removeCreateJobDataFromSessionStorage(){ sessionStorage.removeItem('create-job-name'); diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/base.css b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/base.css index 07c9f33ee5..97c0fbcd4e 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/base.css +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/base.css @@ -1,3 +1,7 @@ +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ /* See the JupyterLab Developer Guide for useful CSS Patterns: diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/index.css b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/index.css index 8a7ea29e69..cb6e509137 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/index.css +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/index.css @@ -1 +1,6 @@ +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + @import url('base.css'); diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/index.js b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/index.js index a028a76408..6f565c8eda 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/index.js +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/index.js @@ -1 +1,6 @@ +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import './base.css'; diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/vdkDialogs.css b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/vdkDialogs.css index 1fb5558661..4c8e882f72 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/vdkDialogs.css +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/style/vdkDialogs.css @@ -1,3 +1,8 @@ +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + .jp-vdk-input-wrapper { display: flex; flex-direction: column; diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/ui-tests/playwright.config.js b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/ui-tests/playwright.config.js index 00ca420033..4e5c44b74e 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/ui-tests/playwright.config.js +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/ui-tests/playwright.config.js @@ -1,3 +1,8 @@ +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + /** * Configuration for Playwright using default from @jupyterlab/galata */ diff --git a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/ui-tests/tests/vdk-jupyterlab-extension.spec.ts b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/ui-tests/tests/vdk-jupyterlab-extension.spec.ts index 6bf73ea51e..90be70185d 100644 --- a/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/ui-tests/tests/vdk-jupyterlab-extension.spec.ts +++ b/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/ui-tests/tests/vdk-jupyterlab-extension.spec.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021-2023 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import { expect, test } from '@jupyterlab/galata'; import { assert } from 'console'; diff --git a/projects/vdk-plugins/vdk-lineage/src/vdk/plugin/marquez/docker-compose.yaml b/projects/vdk-plugins/vdk-lineage/src/vdk/plugin/marquez/docker-compose.yaml index e1234cf3ff..047e0e7814 100644 --- a/projects/vdk-plugins/vdk-lineage/src/vdk/plugin/marquez/docker-compose.yaml +++ b/projects/vdk-plugins/vdk-lineage/src/vdk/plugin/marquez/docker-compose.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + version: "3.7" services: api: diff --git a/projects/vdk-plugins/vdk-server/.plugin-ci.yml b/projects/vdk-plugins/vdk-server/.plugin-ci.yml index 84c8224d4f..6119df6e02 100644 --- a/projects/vdk-plugins/vdk-server/.plugin-ci.yml +++ b/projects/vdk-plugins/vdk-server/.plugin-ci.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2021 VMware, Inc. +# Copyright 2021-2023 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 image: "python:3.7" diff --git a/projects/vdk-plugins/vdk-server/src/vdk/plugin/server/configmap-local-registry-hosting-template.yaml b/projects/vdk-plugins/vdk-server/src/vdk/plugin/server/configmap-local-registry-hosting-template.yaml index 5591391a8f..c244e0f76f 100644 --- a/projects/vdk-plugins/vdk-server/src/vdk/plugin/server/configmap-local-registry-hosting-template.yaml +++ b/projects/vdk-plugins/vdk-server/src/vdk/plugin/server/configmap-local-registry-hosting-template.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + apiVersion: v1 kind: ConfigMap metadata: diff --git a/projects/vdk-plugins/vdk-server/src/vdk/plugin/server/ingress-nginx-deploy.yaml b/projects/vdk-plugins/vdk-server/src/vdk/plugin/server/ingress-nginx-deploy.yaml index 9131ade96d..551bc40a25 100644 --- a/projects/vdk-plugins/vdk-server/src/vdk/plugin/server/ingress-nginx-deploy.yaml +++ b/projects/vdk-plugins/vdk-server/src/vdk/plugin/server/ingress-nginx-deploy.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + # This is a copy of the ingress-nginx manifest for KinD, available here: # https://github.com/kubernetes/ingress-nginx/blob/main/deploy/static/provider/kind/deploy.yaml apiVersion: v1 diff --git a/projects/vdk-plugins/vdk-server/src/vdk/plugin/server/kind-cluster-config-template.yaml b/projects/vdk-plugins/vdk-server/src/vdk/plugin/server/kind-cluster-config-template.yaml index dce8f76d00..530c791225 100644 --- a/projects/vdk-plugins/vdk-server/src/vdk/plugin/server/kind-cluster-config-template.yaml +++ b/projects/vdk-plugins/vdk-server/src/vdk/plugin/server/kind-cluster-config-template.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: diff --git a/support/gitlab-runners/kubeconfig.yaml b/support/gitlab-runners/kubeconfig.yaml index 9ed272dd40..60059b1219 100644 --- a/support/gitlab-runners/kubeconfig.yaml +++ b/support/gitlab-runners/kubeconfig.yaml @@ -1,3 +1,6 @@ +# Copyright 2021-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + apiVersion: v1 clusters: - cluster: