Skip to content

Commit

Permalink
Adding .prow.yaml (#6)
Browse files Browse the repository at this point in the history
* Adding .prow.yaml

Signed-off-by: Helene Durand <[email protected]>

* Add missing script

Signed-off-by: Helene Durand <[email protected]>
  • Loading branch information
hdurand0710 authored Mar 30, 2022
1 parent 53a27a2 commit be11a59
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .prow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2022 The Kubermatic Kubernetes Platform contributors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

presubmits:
- name: pre-cloud-provider-kubevirt-verify-boilerplate
always_run: true
decorate: true
clone_uri: "ssh://[email protected]/kubermatic/cloud-provider-kubevirt.git"
spec:
containers:
- image: quay.io/kubermatic-labs/boilerplate:v0.2.0
command:
- ./hack/verify-boilerplate.sh
resources:
requests:
cpu: 200m
memory: 256Mi
25 changes: 25 additions & 0 deletions hack/verify-boilerplate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

# Copyright 2021 The Machine Controller Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -euo pipefail

cd $(dirname $0)/..

boilerplate \
-boilerplates hack/boilerplate \
-exclude pkg/machines/v1alpha1 \
-exclude pkg/signals \
-exclude pkg/userdata/scripts

0 comments on commit be11a59

Please sign in to comment.