From 836128c534057c8e6dd21cdb0c3bc306234bd5d4 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Thu, 9 Jan 2025 12:23:50 +0100 Subject: [PATCH] remove unneded stuff --- .../.devcontainer/devcontainer.json | 25 ---------- .../.devcontainer/post-install.sh | 23 --------- .../system/cozystack-controller/.dockerignore | 3 -- .../.github/workflows/lint.yml | 23 --------- .../.github/workflows/test-e2e.yml | 35 -------------- .../.github/workflows/test.yml | 23 --------- .../system/cozystack-controller/.golangci.yml | 47 ------------------- 7 files changed, 179 deletions(-) delete mode 100644 packages/system/cozystack-controller/.devcontainer/devcontainer.json delete mode 100644 packages/system/cozystack-controller/.devcontainer/post-install.sh delete mode 100644 packages/system/cozystack-controller/.dockerignore delete mode 100644 packages/system/cozystack-controller/.github/workflows/lint.yml delete mode 100644 packages/system/cozystack-controller/.github/workflows/test-e2e.yml delete mode 100644 packages/system/cozystack-controller/.github/workflows/test.yml delete mode 100644 packages/system/cozystack-controller/.golangci.yml diff --git a/packages/system/cozystack-controller/.devcontainer/devcontainer.json b/packages/system/cozystack-controller/.devcontainer/devcontainer.json deleted file mode 100644 index e2cdc09c9..000000000 --- a/packages/system/cozystack-controller/.devcontainer/devcontainer.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "Kubebuilder DevContainer", - "image": "golang:1.22", - "features": { - "ghcr.io/devcontainers/features/docker-in-docker:2": {}, - "ghcr.io/devcontainers/features/git:1": {} - }, - - "runArgs": ["--network=host"], - - "customizations": { - "vscode": { - "settings": { - "terminal.integrated.shell.linux": "/bin/bash" - }, - "extensions": [ - "ms-kubernetes-tools.vscode-kubernetes-tools", - "ms-azuretools.vscode-docker" - ] - } - }, - - "onCreateCommand": "bash .devcontainer/post-install.sh" -} - diff --git a/packages/system/cozystack-controller/.devcontainer/post-install.sh b/packages/system/cozystack-controller/.devcontainer/post-install.sh deleted file mode 100644 index 265c43ee8..000000000 --- a/packages/system/cozystack-controller/.devcontainer/post-install.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -x - -curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64 -chmod +x ./kind -mv ./kind /usr/local/bin/kind - -curl -L -o kubebuilder https://go.kubebuilder.io/dl/latest/linux/amd64 -chmod +x kubebuilder -mv kubebuilder /usr/local/bin/ - -KUBECTL_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt) -curl -LO "https://dl.k8s.io/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl" -chmod +x kubectl -mv kubectl /usr/local/bin/kubectl - -docker network create -d=bridge --subnet=172.19.0.0/24 kind - -kind version -kubebuilder version -docker --version -go version -kubectl version --client diff --git a/packages/system/cozystack-controller/.dockerignore b/packages/system/cozystack-controller/.dockerignore deleted file mode 100644 index a3aab7af7..000000000 --- a/packages/system/cozystack-controller/.dockerignore +++ /dev/null @@ -1,3 +0,0 @@ -# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file -# Ignore build and test binaries. -bin/ diff --git a/packages/system/cozystack-controller/.github/workflows/lint.yml b/packages/system/cozystack-controller/.github/workflows/lint.yml deleted file mode 100644 index f40d36579..000000000 --- a/packages/system/cozystack-controller/.github/workflows/lint.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Lint - -on: - push: - pull_request: - -jobs: - lint: - name: Run on Ubuntu - runs-on: ubuntu-latest - steps: - - name: Clone the code - uses: actions/checkout@v4 - - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: '~1.22' - - - name: Run linter - uses: golangci/golangci-lint-action@v6 - with: - version: v1.61 diff --git a/packages/system/cozystack-controller/.github/workflows/test-e2e.yml b/packages/system/cozystack-controller/.github/workflows/test-e2e.yml deleted file mode 100644 index 878064400..000000000 --- a/packages/system/cozystack-controller/.github/workflows/test-e2e.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: E2E Tests - -on: - push: - pull_request: - -jobs: - test-e2e: - name: Run on Ubuntu - runs-on: ubuntu-latest - steps: - - name: Clone the code - uses: actions/checkout@v4 - - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: '~1.22' - - - name: Install the latest version of kind - run: | - curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64 - chmod +x ./kind - sudo mv ./kind /usr/local/bin/kind - - - name: Verify kind installation - run: kind version - - - name: Create kind cluster - run: kind create cluster - - - name: Running Test e2e - run: | - go mod tidy - make test-e2e diff --git a/packages/system/cozystack-controller/.github/workflows/test.yml b/packages/system/cozystack-controller/.github/workflows/test.yml deleted file mode 100644 index 7baf65793..000000000 --- a/packages/system/cozystack-controller/.github/workflows/test.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Tests - -on: - push: - pull_request: - -jobs: - test: - name: Run on Ubuntu - runs-on: ubuntu-latest - steps: - - name: Clone the code - uses: actions/checkout@v4 - - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: '~1.22' - - - name: Running Tests - run: | - go mod tidy - make test diff --git a/packages/system/cozystack-controller/.golangci.yml b/packages/system/cozystack-controller/.golangci.yml deleted file mode 100644 index 6b2974623..000000000 --- a/packages/system/cozystack-controller/.golangci.yml +++ /dev/null @@ -1,47 +0,0 @@ -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