Skip to content

Commit

Permalink
wip: charts
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Feb 29, 2024
1 parent 73467e8 commit d93791f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5,871 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,22 @@ jobs:
restore-keys: |
${{ github.job }}-${{ runner.os }}-go-
- run: sudo apt-get update && sudo apt install -y libxml2-dev libxslt1-dev liblzma-dev zlib1g-dev
- run: make deploy
- run: make release
env:
KO_DOCKER_REPO: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
DIST_DIR: /tmp/dist
if: success()
- run: |
go run tools/updater/main.go --file charts/typhoon/Chart.yaml --version ${{ env.RELEASE_VERSION }}
go run internal/tools/updater/main.go --file charts/typhoon/Chart.yaml --version ${{ env.RELEASE_VERSION }}
- uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_dir: charts
config: ${{ github.workspace }}/.cr.yml
config: ${{ github.workspace }}/.cr.yml
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: manifests
path: /tmp/dist
retention-days: 14
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
.DEFAULT_GOAL := build

BASE_DIR ?= $(CURDIR)
OUTPUT_DIR ?= $(BASE_DIR)/dist

GO ?= go
GO_RUN_TOOLS ?= $(GO) run -modfile ./tools/go.mod
GO_TEST ?= $(GO_RUN_TOOLS) gotest.tools/gotestsum --format pkgname
GO_RELEASER ?= $(GO_RUN_TOOLS) github.com/goreleaser/goreleaser
GO_KO ?= $(GO_RUN_TOOLS) github.com/google/ko
GO_MOD ?= $(shell ${GO} list -m)
BASE_DIR ?= $(CURDIR)

COMMANDS := $(notdir $(wildcard cmd/*))

Expand Down Expand Up @@ -52,11 +54,15 @@ deploy: ## Deploy the application.

.PHONY: release
release: ## Release the application.
$(GO_RELEASER) release --rm-dist
@mkdir -p $(DIST_DIR)
$(GO_KO) resolve -f $(BASE_DIR)/config/ -l 'typhoon.zeissß.com/crd-install' > $(DIST_DIR)/typhoon-crds.yaml
@cp config/namespace/100-namespace.yaml $(DIST_DIR)/typhoon.yaml
@cp $(DIST_DIR)/*.yaml $(BASE_DIR)/charts/typhoon/crds

.PHONY: help
help: ## Display this help screen.
@grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

# codegen
include hack/inc.codegen.mk
8888
3 changes: 1 addition & 2 deletions charts/typhoon/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ type: application

version: 0.1.0

#appVersion: "v1.26.0"
appVersion: "latest"
appVersion: "v0.1.0"

dependencies:
3 changes: 1 addition & 2 deletions charts/typhoon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ global:
# Default image used by all components
image:
# -- If defined, a repository applied to all Typhoon deployments
repository: ghcr.io/zeiss/typhoon
: ghcr.io/zeiss/typhoon
# -- Overrides the global Typhoon image tag whose default is the chart appVersion
tag: ""
# -- If defined, a imagePullPolicy applied to all Typhoon deployments
Expand All @@ -46,7 +46,6 @@ global:

## Typhoon Controller
controller:

# -- The number of typhoon controller pods to run.
# Additional replicas will cause sharding of managed clusters across number of replicas.
replicas: 1
Expand Down
Loading

0 comments on commit d93791f

Please sign in to comment.