Skip to content

Commit

Permalink
refactor(olm): remove OLM v0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
lwpk110 committed Nov 14, 2024
1 parent 1a0c7a4 commit 78d617d
Show file tree
Hide file tree
Showing 37 changed files with 1,002 additions and 834 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
# Ignore build and test binaries.
bin/
bundle.Dockerfile
17 changes: 4 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ jobs:
cache: false
- name: golangci-lint
run: |
make lint
make lint
chainsaw-test:
name: Chainsaw Test
Expand All @@ -74,21 +73,21 @@ jobs:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
swap-storage: true
- name: Create KinD clustet pur
env:
KINDTEST_K8S_VERSION: ${{ matrix.k8s-version}}
KUBECONFIG: kind-kubeconfig-${{ matrix.k8s-version }}
KIND_KUBECONFIG: kind-kubeconfig-${{ matrix.k8s-version }}
run: make kind-create
run: make kind-create
- name: Chainsaw test setup
env:
KINDTEST_K8S_VERSION: ${{ matrix.k8s-version }}
Expand All @@ -102,7 +101,6 @@ jobs:
KIND_KUBECONFIG: kind-kubeconfig-${{ matrix.k8s-version }}
run: make chainsaw-test


deploy-operator:
name: Deploy operator
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'zncdatadev' }}
Expand All @@ -127,10 +125,3 @@ jobs:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Build and push operator
run: |
make docker-buildx
- name: Build and push operator bundle
run: |
make bundle
make bundle-buildx
10 changes: 1 addition & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,8 @@ Dockerfile.cross
*.swo
*~

bundle.Dockerfile
bundle

bundle*

kind-kubeconfig*

catalog.Dockerfile
catalog

*-local.yaml

# test
Expand All @@ -44,4 +36,4 @@ cover.out
**/coverage

# ai code local
.codiumai.toml
.codiumai.toml
47 changes: 47 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
run:
timeout: 5m
allow-parallel-runners: true

issues:
# don't skip warning about doc comments
# don't exclude the default set of lint
exclude-use-default: false
# restore some of the defaults
# (fill in the rest as needed)
exclude-rules:
- path: "api/*"
linters:
- lll
- path: "internal/*"
linters:
- dupl
- lll
linters:
disable-all: true
enable:
- dupl
- errcheck
- copyloopvar
- ginkgolinter
- goconst
- gocyclo
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- prealloc
- revive
- staticcheck
- typecheck
- unconvert
- unparam
- unused

linters-settings:
revive:
rules:
- name: comment-spacings
Loading

0 comments on commit 78d617d

Please sign in to comment.