Skip to content

Commit 007a738

Browse files
authoredNov 15, 2024··
refactor(olm): remove OLM v0 support (#113)
1 parent 92d02e2 commit 007a738

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+693
-995
lines changed
 

‎.dockerignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
22
# Ignore build and test binaries.
33
bin/
4-
bundle.Dockerfile

‎.github/workflows/main.yml

+58-96
Original file line numberDiff line numberDiff line change
@@ -7,63 +7,19 @@ jobs:
77
name: Markdown Lint
88
runs-on: ubuntu-22.04
99
steps:
10-
- name: Checkout Code
11-
uses: actions/checkout@v3
12-
with:
13-
fetch-depth: 0
14-
- name: Lint Code Base
15-
uses: github/super-linter@v4
16-
env:
17-
VALIDATE_MARKDOWN: true
18-
VALIDATE_ALL_CODEBASE: false
19-
DEFAULT_BRANCH: main
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21-
LINTER_RULES_PATH: /
22-
MARKDOWN_CONFIG_FILE: .markdownlint.yml
23-
24-
25-
golang-lint:
26-
name: Golang Lint
27-
runs-on: ubuntu-22.04
28-
steps:
29-
- uses: actions/checkout@v3
30-
- uses: actions/setup-go@v4
31-
with:
32-
go-version: '1.23'
33-
cache: false
34-
- name: golangci-lint
35-
uses: golangci/golangci-lint-action@v3
36-
with:
37-
# Require: The version of golangci-lint to use.
38-
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
39-
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
40-
version: latest
41-
42-
# Optional: working directory, useful for monorepos
43-
# working-directory: somedir
44-
45-
# Optional: golangci-lint command line arguments.
46-
#
47-
# Note: By default, the `.golangci.yml` file should be at the root of the repository.
48-
# The location of the configuration file can be changed by using `--config=`
49-
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0
50-
args: --timeout=30m
51-
52-
# Optional: show only new issues if it's a pull request. The default value is `false`.
53-
# only-new-issues: true
54-
55-
# Optional: if set to true, then all caching functionality will be completely disabled,
56-
# takes precedence over all other caching options.
57-
# skip-cache: true
58-
59-
# Optional: if set to true, then the action won't cache or restore ~/go/pkg.
60-
# skip-pkg-cache: true
61-
62-
# Optional: if set to true, then the action won't cache or restore ~/.cache/go-build.
63-
# skip-build-cache: true
64-
65-
# Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
66-
# install-mode: "goinstall"
10+
- name: Checkout Code
11+
uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
- name: Lint Code Base
15+
uses: github/super-linter@v4
16+
env:
17+
VALIDATE_MARKDOWN: true
18+
VALIDATE_ALL_CODEBASE: false
19+
DEFAULT_BRANCH: main
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
LINTER_RULES_PATH: /
22+
MARKDOWN_CONFIG_FILE: .markdownlint.yml
6723

6824

6925
golang-test:
@@ -72,21 +28,35 @@ jobs:
7228
strategy:
7329
matrix:
7430
go-version: ['1.23']
31+
steps:
32+
- uses: actions/checkout@v3
33+
with:
34+
fetch-depth: 1
35+
- uses: actions/checkout@v4
36+
- name: Setup Go ${{ matrix.go-version }}
37+
uses: actions/setup-go@v4
38+
with:
39+
go-version: ${{ matrix.go-version }}
40+
- name: Display Go version
41+
run: go version
42+
- name: Install dependencies
43+
run: go get ./...
44+
- name: Test with Go
45+
run: make test
46+
47+
48+
golang-lint:
49+
name: golang-lint
50+
runs-on: ubuntu-latest
7551
steps:
7652
- uses: actions/checkout@v3
53+
- uses: actions/setup-go@v4
7754
with:
78-
fetch-depth: 1
79-
- uses: actions/checkout@v4
80-
- name: Setup Go ${{ matrix.go-version }}
81-
uses: actions/setup-go@v4
82-
with:
83-
go-version: ${{ matrix.go-version }}
84-
- name: Display Go version
85-
run: go version
86-
- name: Install dependencies
87-
run: go get ./...
88-
- name: Test with Go
89-
run: make test
55+
go-version: '1.23'
56+
cache: false
57+
- name: golangci-lint
58+
run: |
59+
make lint
9060
9161
9262
chainsaw-test:
@@ -101,7 +71,7 @@ jobs:
10171
with:
10272
go-version: '1.23'
10373
cache: false
104-
- name: Create KinD cluster
74+
- name: Create KinD clustet
10575
env:
10676
KINDTEST_K8S_VERSION: ${{ matrix.k8s-version}}
10777
KUBECONFIG: kind-kubeconfig-${{ matrix.k8s-version }}
@@ -130,29 +100,21 @@ jobs:
130100
- golang-test
131101
- chainsaw-test
132102
steps:
133-
- uses: actions/checkout@v3
134-
with:
135-
fetch-depth: 1
136-
- name: Set up QEMU
137-
uses: docker/setup-qemu-action@v3
138-
- name: Set up Docker Buildx
139-
uses: docker/setup-buildx-action@v3
140-
with:
141-
platforms: linux/amd64,linux/arm64
142-
- name: Login to quay.io
143-
uses: docker/login-action@v2
144-
with:
145-
registry: quay.io
146-
username: ${{ secrets.QUAY_USERNAME }}
147-
password: ${{ secrets.QUAY_PASSWORD }}
148-
- name: Build and push operator
149-
run: |
150-
make docker-buildx
151-
- name: Build and push operator bundle
152-
run: |
153-
make bundle
154-
make bundle-buildx
155-
- name: Build and push catalog
156-
run: |
157-
make catalog
158-
make catalog-buildx
103+
- uses: actions/checkout@v3
104+
with:
105+
fetch-depth: 1
106+
- name: Set up QEMU
107+
uses: docker/setup-qemu-action@v3
108+
- name: Set up Docker Buildx
109+
uses: docker/setup-buildx-action@v3
110+
with:
111+
platforms: linux/amd64,linux/arm64
112+
- name: Login to quay.io
113+
uses: docker/login-action@v2
114+
with:
115+
registry: quay.io
116+
username: ${{ secrets.QUAY_USERNAME }}
117+
password: ${{ secrets.QUAY_PASSWORD }}
118+
- name: Build and push operator
119+
run: |
120+
make docker-buildx

0 commit comments

Comments
 (0)
Please sign in to comment.