Skip to content

Commit

Permalink
Merge pull request #6 from flanksource/cleanup-unused
Browse files Browse the repository at this point in the history
refactor: cleanup unused code
  • Loading branch information
moshloop authored Jun 2, 2023
2 parents be74fb8 + 5e54665 commit 753a4f3
Show file tree
Hide file tree
Showing 33 changed files with 3 additions and 2,171 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,45 +16,6 @@ jobs:
release-version: ${{ steps.semantic.outputs.release-version }}
new-release-published: ${{ steps.semantic.outputs.new-release-published }}

helm:
runs-on: ubuntu-latest
needs: [semantic-release]
if: needs.semantic-release.outputs.new-release-published == 'true'
steps:
- uses: actions/checkout@v3
- name: Set version
run: |
git fetch --prune --unshallow
echo "RELEASE_VERSION=$(git describe --abbrev=0 --tags | sed -e 's/^v//')" >> $GITHUB_ENV
- name: Update app version
uses: mikefarah/yq@master
with:
cmd: yq -i e '(.version = "${{ env.RELEASE_VERSION }}") | (.appVersion = "${{ env.RELEASE_VERSION }}")' chart/Chart.yaml
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.8.0
- name: Package Helm chart
run: |
helm package ./chart
- name: Clone charts repo
uses: actions/checkout@v3
with:
repository: "${{ github.repository_owner }}/charts"
path: charts
token: "${{ secrets.FLANKBOT }}"
- name: Update chart repo
run: |
cd charts
cp ../kopper-*.tgz ./
helm repo index --merge index.yaml .
- name: Push changes to chart repo
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Release ${{ needs.semantic-release.outputs.release-version }} of ${{ github.repository }}"
branch: gh-pages
repository: ./charts

bump-clients:
runs-on: ubuntu-latest
needs: [semantic-release]
Expand Down
15 changes: 0 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
else
GOBIN=$(shell go env GOBIN)
endif

# Setting SHELL to bash allows bash commands to be executed by recipes.
# Options are set to exit when a recipe line exits non-zero or a piped command fails.
SHELL = /usr/bin/env bash -o pipefail
.SHELLFLAGS = -ec

.PHONY: all
all: build

.PHONY: help
help: ## Display this help.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
Expand Down
70 changes: 0 additions & 70 deletions api/v1/connection_types.go

This file was deleted.

36 changes: 0 additions & 36 deletions api/v1/groupversion_info.go

This file was deleted.

128 changes: 0 additions & 128 deletions api/v1/zz_generated.deepcopy.go

This file was deleted.

23 changes: 0 additions & 23 deletions chart/.helmignore

This file was deleted.

6 changes: 0 additions & 6 deletions chart/Chart.yaml

This file was deleted.

Loading

0 comments on commit 753a4f3

Please sign in to comment.