diff --git a/.ci-operator.yaml b/.ci-operator.yaml new file mode 100644 index 00000000..a3628cf2 --- /dev/null +++ b/.ci-operator.yaml @@ -0,0 +1,4 @@ +build_root_image: + name: release + namespace: openshift + tag: rhel-9-release-golang-1.25-openshift-4.22 diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index d7052640..00000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,40 +0,0 @@ - - -**What type of PR is this?** -> Uncomment only one ` /kind <>` line, hit enter to put that in a new line, and remove leading whitespaces from that line: -> -> /kind api-change -> /kind bug -> /kind cleanup -> /kind design -> /kind documentation -> /kind failing-test -> /kind feature -> /kind flake - -**What this PR does / why we need it**: - -**Which issue(s) this PR fixes**: - -Fixes # - -**Special notes for your reviewer**: - -**Does this PR introduce a user-facing change?**: - -```release-note - -``` diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml deleted file mode 100644 index 064cb427..00000000 --- a/.github/dependabot.yaml +++ /dev/null @@ -1,40 +0,0 @@ -version: 2 -enable-beta-ecosystems: true -updates: -- package-ecosystem: gomod - directory: "/" - allow: - - dependency-type: "all" - schedule: - interval: weekly - groups: - golang-dependencies: - patterns: - - "github.com/golang*" - k8s-dependencies: - patterns: - - "k8s.io*" - - "sigs.k8s.io*" - - "github.com/kubernetes-csi*" - github-dependencies: - patterns: - - "*" - exclude-patterns: - - "github.com/golang*" - - "k8s.io*" - - "sigs.k8s.io*" - - "github.com/kubernetes-csi*" - labels: - - "area/dependency" - - "release-note-none" - - "ok-to-test" - open-pull-requests-limit: 10 -- package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" - labels: - - "area/dependency" - - "release-note-none" - - "ok-to-test" - open-pull-requests-limit: 10 diff --git a/.github/workflows/trivy.yaml b/.github/workflows/trivy.yaml deleted file mode 100644 index 3b5de9fc..00000000 --- a/.github/workflows/trivy.yaml +++ /dev/null @@ -1,39 +0,0 @@ -name: Trivy vulnerability scanner -on: - push: - branches: - - master - pull_request: -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v6 - - - name: Parse go version from release-tools/prow.sh - run: | - GO_VERSION=$(cat release-tools/prow.sh | grep "configvar CSI_PROW_GO_VERSION_BUILD" | awk '{print $3}' | sed 's/"//g') - echo "Using go from release-tools: $GO_VERSION" - echo "$GO_VERSION" >> '.go-version' - - - name: Install go - uses: actions/setup-go@v6 - with: - go-version-file: .go-version - - - name: Build an image from Dockerfile - run: | - make - docker build -t test/livenessprobe:latest -f Dockerfile --output=type=docker --label revision=latest . - - - name: Run Trivy vulnerability scanner - uses: aquasecurity/trivy-action@master - with: - image-ref: 'test/livenessprobe:latest' - format: 'table' - exit-code: '1' - ignore-unfixed: true - vuln-type: 'os,library' - severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN' diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..fa9fd308 --- /dev/null +++ b/.snyk @@ -0,0 +1,6 @@ +# References: +# https://docs.snyk.io/scan-applications/snyk-code/using-snyk-code-from-the-cli/excluding-directories-and-files-from-the-snyk-code-cli-test +# https://docs.snyk.io/snyk-cli/commands/ignore +exclude: + global: + - vendor/** diff --git a/Dockerfile.ocp b/Dockerfile.ocp new file mode 100644 index 00000000..0f8aa960 --- /dev/null +++ b/Dockerfile.ocp @@ -0,0 +1,8 @@ +FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder +WORKDIR /go/src/github.com/kubernetes-csi/livenessprobe +COPY . . +RUN make build + +FROM registry.ci.openshift.org/ocp/4.22:base-rhel9 +COPY --from=builder /go/src/github.com/kubernetes-csi/livenessprobe/bin/livenessprobe /usr/bin/ +ENTRYPOINT ["/usr/bin/livenessprobe"] diff --git a/Dockerfile.openshift b/Dockerfile.openshift new file mode 100644 index 00000000..a3cd479f --- /dev/null +++ b/Dockerfile.openshift @@ -0,0 +1,8 @@ +FROM registry.svc.ci.openshift.org/openshift/release:golang-1.13 AS builder +WORKDIR /go/src/github.com/kubernetes-csi/livenessprobe +COPY . . +RUN make build + +FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base +COPY --from=builder /go/src/github.com/kubernetes-csi/livenessprobe/bin/livenessprobe /usr/bin/ +ENTRYPOINT ["/usr/bin/livenessprobe"] diff --git a/OWNERS b/OWNERS index 19203ec7..a3edb319 100644 --- a/OWNERS +++ b/OWNERS @@ -1,7 +1,5 @@ # See the OWNERS docs at https://go.k8s.io/owners approvers: -- kubernetes-csi-approvers - -reviewers: -- kubernetes-csi-reviewers +- openshift-storage-maintainers +component: "Storage / Kubernetes External Components" diff --git a/OWNERS_ALIASES b/OWNERS_ALIASES deleted file mode 120000 index 3f60d461..00000000 --- a/OWNERS_ALIASES +++ /dev/null @@ -1 +0,0 @@ -release-tools/KUBERNETES_CSI_OWNERS_ALIASES \ No newline at end of file diff --git a/OWNERS_ALIASES b/OWNERS_ALIASES new file mode 100644 index 00000000..7956d00a --- /dev/null +++ b/OWNERS_ALIASES @@ -0,0 +1,10 @@ +aliases: + openshift-storage-maintainers: + - jsafrane + - tsmetana + - gnufied + - dobsonj + - RomanBednar + - mpatlasov + - dfajmon + - rhrmo \ No newline at end of file