diff --git a/.github/workflows/license-eyes.yml b/.github/workflows/license-eyes.yml index 422d282..320a24e 100644 --- a/.github/workflows/license-eyes.yml +++ b/.github/workflows/license-eyes.yml @@ -17,18 +17,21 @@ # --- name: License Check -on: - pull_request_target: - push: - branches: - - master +on: [push, pull_request_target] + jobs: license-check: name: "License Check" runs-on: ubuntu-latest steps: - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" + if: ${{ github.event_name != 'pull_request_target' }} uses: actions/checkout@v3 + - name: Checkout ${{ github.ref }} ( ${{ github.event.pull_request.head.sha }} ) + if: ${{ github.event_name == 'pull_request_target' }} + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Check License uses: apache/skywalking-eyes@v0.2.0 env: diff --git a/.licenserc.yaml b/.licenserc.yaml index 84192b9..8987865 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -16,6 +16,7 @@ header: - "**/*.json" - "**/*.txt" - '**/.helmignore' + - 'helm-charts/doris-operator/crds/doris.selectdb.com_dorisclusters.yaml - 'LICENSE' - 'NOTICE' - 'PROJECT' diff --git a/config/operator/fdb-operator.yaml b/config/operator/fdb-operator.yaml index 23485fa..7b256f4 100644 --- a/config/operator/fdb-operator.yaml +++ b/config/operator/fdb-operator.yaml @@ -1,3 +1,21 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT 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: v1 kind: ServiceAccount metadata: diff --git a/doc/examples/disaggregated/cluster/ddc-configmap.yaml b/doc/examples/disaggregated/cluster/ddc-configmap.yaml index bab8211..b204052 100644 --- a/doc/examples/disaggregated/cluster/ddc-configmap.yaml +++ b/doc/examples/disaggregated/cluster/ddc-configmap.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT 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: disaggregated.cluster.doris.com/v1 kind: DorisDisaggregatedCluster metadata: diff --git a/doc/examples/disaggregated/cluster/ddc-pvc.yaml b/doc/examples/disaggregated/cluster/ddc-pvc.yaml index 06ce392..9f75563 100644 --- a/doc/examples/disaggregated/cluster/ddc-pvc.yaml +++ b/doc/examples/disaggregated/cluster/ddc-pvc.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT 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: disaggregated.cluster.doris.com/v1 kind: DorisDisaggregatedCluster metadata: diff --git a/doc/examples/disaggregated/cluster/ddc-sample.yaml b/doc/examples/disaggregated/cluster/ddc-sample.yaml index 9e9aac2..d493cec 100644 --- a/doc/examples/disaggregated/cluster/ddc-sample.yaml +++ b/doc/examples/disaggregated/cluster/ddc-sample.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT 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: disaggregated.cluster.doris.com/v1 kind: DorisDisaggregatedCluster metadata: diff --git a/doc/examples/disaggregated/fdb/cluster-single.yaml b/doc/examples/disaggregated/fdb/cluster-single.yaml index 0a94e3e..1b67869 100644 --- a/doc/examples/disaggregated/fdb/cluster-single.yaml +++ b/doc/examples/disaggregated/fdb/cluster-single.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT 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.foundationdb.org/v1beta2 kind: FoundationDBCluster metadata: diff --git a/doc/examples/disaggregated/fdb/cluster.yaml b/doc/examples/disaggregated/fdb/cluster.yaml index 1fecf11..9831a6e 100644 --- a/doc/examples/disaggregated/fdb/cluster.yaml +++ b/doc/examples/disaggregated/fdb/cluster.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT 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.foundationdb.org/v1beta2 kind: FoundationDBCluster metadata: diff --git a/hack/kube_codegen.sh b/hack/kube_codegen.sh index e700ad2..b996999 100755 --- a/hack/kube_codegen.sh +++ b/hack/kube_codegen.sh @@ -1,5 +1,22 @@ #!/usr/bin/env bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# # Copyright 2023 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License");