diff --git a/.github/workflows/dockers-index-deletion-image.yaml b/.github/workflows/dockers-index-deletion-image.yaml index 31c741d9e5..e30db57644 100644 --- a/.github/workflows/dockers-index-deletion-image.yaml +++ b/.github/workflows/dockers-index-deletion-image.yaml @@ -15,63 +15,63 @@ # # DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go - -name: 'Build docker image: index-deletion' + +name: "Build docker image: index-deletion" on: push: branches: - - main - - release/v*.* - - '!release/v*.*.*' + - main + - release/v*.* + - "!release/v*.*.*" tags: - - '*.*.*' - - v*.*.* - - '*.*.*-*' - - v*.*.*-* + - "*.*.*" + - v*.*.* + - "*.*.*-*" + - v*.*.*-* pull_request: paths: - - hack/docker/gen/main.go - - dockers/index/job/deletion/Dockerfile - - hack/actions/gen/main.go - - .github/workflows/dockers-index-deletion-image.yaml - - .github/actions/docker-build/action.yaml - - .github/workflows/_docker-image.yaml - - cmd/index/job/deletion/** - - pkg/index/job/deletion/** - - apis/grpc/** - - apis/proto/** - - go.mod - - go.sum - - versions/GO_VERSION - - internal/** - - '!internal/**/*_test.go' - - '!internal/**/*_mock.go' - - '!internal/db/**' - - '!internal/k8s/**' - - Makefile - - Makefile.d/** + - hack/docker/gen/main.go + - dockers/index/job/deletion/Dockerfile + - hack/actions/gen/main.go + - .github/workflows/dockers-index-deletion-image.yaml + - .github/actions/docker-build/action.yaml + - .github/workflows/_docker-image.yaml + - cmd/index/job/deletion/** + - pkg/index/job/deletion/** + - apis/grpc/** + - apis/proto/** + - go.mod + - go.sum + - versions/GO_VERSION + - internal/** + - "!internal/**/*_test.go" + - "!internal/**/*_mock.go" + - "!internal/db/**" + - "!internal/k8s/**" + - Makefile + - Makefile.d/** pull_request_target: paths: - - hack/docker/gen/main.go - - dockers/index/job/deletion/Dockerfile - - hack/actions/gen/main.go - - .github/workflows/dockers-index-deletion-image.yaml - - .github/actions/docker-build/action.yaml - - .github/workflows/_docker-image.yaml - - cmd/index/job/deletion/** - - pkg/index/job/deletion/** - - apis/grpc/** - - apis/proto/** - - go.mod - - go.sum - - versions/GO_VERSION - - internal/** - - '!internal/**/*_test.go' - - '!internal/**/*_mock.go' - - '!internal/db/**' - - '!internal/k8s/**' - - Makefile - - Makefile.d/** + - hack/docker/gen/main.go + - dockers/index/job/deletion/Dockerfile + - hack/actions/gen/main.go + - .github/workflows/dockers-index-deletion-image.yaml + - .github/actions/docker-build/action.yaml + - .github/workflows/_docker-image.yaml + - cmd/index/job/deletion/** + - pkg/index/job/deletion/** + - apis/grpc/** + - apis/proto/** + - go.mod + - go.sum + - versions/GO_VERSION + - internal/** + - "!internal/**/*_test.go" + - "!internal/**/*_mock.go" + - "!internal/db/**" + - "!internal/k8s/**" + - Makefile + - Makefile.d/** jobs: build: uses: ./.github/workflows/_docker-image.yaml diff --git a/pkg/index/job/deletion/service/deleter.go b/pkg/index/job/deletion/service/deleter.go index ce7fbfc044..9573e8d9fd 100644 --- a/pkg/index/job/deletion/service/deleter.go +++ b/pkg/index/job/deletion/service/deleter.go @@ -1,3 +1,16 @@ +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT 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 service import ( diff --git a/pkg/index/job/deletion/service/options.go b/pkg/index/job/deletion/service/options.go index ccc6ecffed..05103e1eff 100644 --- a/pkg/index/job/deletion/service/options.go +++ b/pkg/index/job/deletion/service/options.go @@ -1,3 +1,16 @@ +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT 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 service import (