diff --git a/ci-operator/config/openstack-k8s-operators/ansibleee-operator/OWNERS b/ci-operator/config/openstack-k8s-operators/ansibleee-operator/OWNERS new file mode 100644 index 000000000000..a406a6425545 --- /dev/null +++ b/ci-operator/config/openstack-k8s-operators/ansibleee-operator/OWNERS @@ -0,0 +1,17 @@ +approvers: +- abays +- dprince +- jlarriba +- olliewalsh +- Sandeepyadav93 +- stuggi +- viroel +options: {} +reviewers: +- abays +- dprince +- jlarriba +- olliewalsh +- Sandeepyadav93 +- stuggi +- viroel diff --git a/ci-operator/config/openstack-k8s-operators/ansibleee-operator/openstack-k8s-operators-ansibleee-operator-main.yaml b/ci-operator/config/openstack-k8s-operators/ansibleee-operator/openstack-k8s-operators-ansibleee-operator-main.yaml new file mode 100644 index 000000000000..d26cc7c37e4e --- /dev/null +++ b/ci-operator/config/openstack-k8s-operators/ansibleee-operator/openstack-k8s-operators-ansibleee-operator-main.yaml @@ -0,0 +1,48 @@ +base_images: + golangci-lint: + name: golangci-lint + namespace: ci + tag: v1.46.0 +binary_build_commands: make build +build_root: + image_stream_tag: + name: release + namespace: openshift + tag: golang-1.18 +resources: + '*': + limits: + memory: 4Gi + requests: + cpu: 100m + memory: 200Mi +tests: +- as: unit + commands: make gotest + container: + from: src +- as: govet + commands: make govet + container: + from: src +- as: golangci + commands: | + export GOCACHE=/tmp/ + export GOLANGCI_LINT_CACHE=/tmp/.cache + export GOPROXY=https://proxy.golang.org + golangci-lint run --verbose --timeout=5m0s + container: + clone: true + from: golangci-lint +- as: golint + commands: make golint + container: + from: src +- as: gofmt + commands: make gofmt || true + container: + from: src +zz_generated_metadata: + branch: main + org: openstack-k8s-operators + repo: ansibleee-operator diff --git a/ci-operator/jobs/openstack-k8s-operators/ansibleee-operator/OWNERS b/ci-operator/jobs/openstack-k8s-operators/ansibleee-operator/OWNERS new file mode 100644 index 000000000000..a406a6425545 --- /dev/null +++ b/ci-operator/jobs/openstack-k8s-operators/ansibleee-operator/OWNERS @@ -0,0 +1,17 @@ +approvers: +- abays +- dprince +- jlarriba +- olliewalsh +- Sandeepyadav93 +- stuggi +- viroel +options: {} +reviewers: +- abays +- dprince +- jlarriba +- olliewalsh +- Sandeepyadav93 +- stuggi +- viroel diff --git a/ci-operator/jobs/openstack-k8s-operators/ansibleee-operator/openstack-k8s-operators-ansibleee-operator-main-presubmits.yaml b/ci-operator/jobs/openstack-k8s-operators/ansibleee-operator/openstack-k8s-operators-ansibleee-operator-main-presubmits.yaml new file mode 100644 index 000000000000..dd894ebb7a5c --- /dev/null +++ b/ci-operator/jobs/openstack-k8s-operators/ansibleee-operator/openstack-k8s-operators-ansibleee-operator-main-presubmits.yaml @@ -0,0 +1,247 @@ +presubmits: + openstack-k8s-operators/ansibleee-operator: + - agent: kubernetes + always_run: true + branches: + - ^main$ + - ^main- + cluster: build01 + context: ci/prow/gofmt + decorate: true + decoration_config: + skip_cloning: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openstack-k8s-operators-ansibleee-operator-main-gofmt + rerun_command: /test gofmt + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --report-credentials-file=/etc/report/credentials + - --target=gofmt + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )gofmt,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - ^main$ + - ^main- + cluster: build01 + context: ci/prow/golangci + decorate: true + decoration_config: + skip_cloning: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openstack-k8s-operators-ansibleee-operator-main-golangci + rerun_command: /test golangci + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --report-credentials-file=/etc/report/credentials + - --target=golangci + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )golangci,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - ^main$ + - ^main- + cluster: build01 + context: ci/prow/golint + decorate: true + decoration_config: + skip_cloning: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openstack-k8s-operators-ansibleee-operator-main-golint + rerun_command: /test golint + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --report-credentials-file=/etc/report/credentials + - --target=golint + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )golint,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - ^main$ + - ^main- + cluster: build01 + context: ci/prow/govet + decorate: true + decoration_config: + skip_cloning: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openstack-k8s-operators-ansibleee-operator-main-govet + rerun_command: /test govet + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --report-credentials-file=/etc/report/credentials + - --target=govet + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )govet,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - ^main$ + - ^main- + cluster: build01 + context: ci/prow/unit + decorate: true + decoration_config: + skip_cloning: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openstack-k8s-operators-ansibleee-operator-main-unit + rerun_command: /test unit + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --report-credentials-file=/etc/report/credentials + - --target=unit + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )unit,?($|\s.*) diff --git a/core-services/prow/02_config/openstack-k8s-operators/ansibleee-operator/OWNERS b/core-services/prow/02_config/openstack-k8s-operators/ansibleee-operator/OWNERS new file mode 100644 index 000000000000..a406a6425545 --- /dev/null +++ b/core-services/prow/02_config/openstack-k8s-operators/ansibleee-operator/OWNERS @@ -0,0 +1,17 @@ +approvers: +- abays +- dprince +- jlarriba +- olliewalsh +- Sandeepyadav93 +- stuggi +- viroel +options: {} +reviewers: +- abays +- dprince +- jlarriba +- olliewalsh +- Sandeepyadav93 +- stuggi +- viroel diff --git a/core-services/prow/02_config/openstack-k8s-operators/ansibleee-operator/_pluginconfig.yaml b/core-services/prow/02_config/openstack-k8s-operators/ansibleee-operator/_pluginconfig.yaml new file mode 100644 index 000000000000..37cc4caeeebe --- /dev/null +++ b/core-services/prow/02_config/openstack-k8s-operators/ansibleee-operator/_pluginconfig.yaml @@ -0,0 +1,68 @@ +approve: +- commandHelpLink: "" + repos: + - openstack-k8s-operators/ansibleee-operator + require_self_approval: false +external_plugins: + openstack-k8s-operators/ansibleee-operator: + - endpoint: http://refresh + events: + - issue_comment + name: refresh + - endpoint: http://cherrypick + events: + - issue_comment + - pull_request + name: cherrypick + - endpoint: http://needs-rebase + events: + - issue_comment + - pull_request + name: needs-rebase + - endpoint: http://backport-verifier + events: + - issue_comment + - pull_request + name: backport-verifier + - endpoint: http://payload-testing-prow-plugin + events: + - issue_comment + name: payload-testing-prow-plugin + - endpoint: http://jira-lifecycle-plugin + events: + - issue_comment + - pull_request + name: jira-lifecycle-plugin +lgtm: +- repos: + - openstack-k8s-operators/ansibleee-operator + review_acts_as_lgtm: true +plugins: + openstack-k8s-operators/ansibleee-operator: + plugins: + - assign + - blunderbuss + - bugzilla + - cat + - dog + - heart + - golint + - goose + - help + - hold + - jira + - label + - lgtm + - lifecycle + - override + - pony + - retitle + - shrug + - sigmention + - skip + - trigger + - verify-owners + - owners-label + - wip + - yuks + - approve diff --git a/core-services/prow/02_config/openstack-k8s-operators/ansibleee-operator/_prowconfig.yaml b/core-services/prow/02_config/openstack-k8s-operators/ansibleee-operator/_prowconfig.yaml new file mode 100644 index 000000000000..be0ed5a13fa1 --- /dev/null +++ b/core-services/prow/02_config/openstack-k8s-operators/ansibleee-operator/_prowconfig.yaml @@ -0,0 +1,15 @@ +tide: + queries: + - labels: + - approved + - lgtm + missingLabels: + - backports/unvalidated-commits + - bugzilla/invalid-bug + - do-not-merge/hold + - do-not-merge/invalid-owners-file + - do-not-merge/work-in-progress + - jira/invalid-bug + - needs-rebase + repos: + - openstack-k8s-operators/ansibleee-operator