Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add charts folder allowing direct repo usage #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,27 @@ KUBEBUILDER_VERSION=2.3.1

TEST_ZONE_NAME ?= example.com.

test: test/kubebuilder
test: test/kubebuilder test/hemllint
TEST_ZONE_NAME=$(TEST_ZONE_NAME) go test -v ./

test/kubebuilder:
curl -fsSL https://github.com/kubernetes-sigs/kubebuilder/releases/download/v$(KUBEBUILDER_VERSION)/kubebuilder_$(KUBEBUILDER_VERSION)_$(OS)_$(ARCH).tar.gz -o kubebuilder-tools.tar.gz
mkdir -p $(OUT)/kubebuilder
mkdir -p "$(OUT)/kubebuilder"
tar -xvf kubebuilder-tools.tar.gz
mv kubebuilder_$(KUBEBUILDER_VERSION)_$(OS)_$(ARCH)/bin $(OUT)/kubebuilder/
mv kubebuilder_$(KUBEBUILDER_VERSION)_$(OS)_$(ARCH)/bin "$(OUT)/kubebuilder/"
rm kubebuilder-tools.tar.gz
rm -R kubebuilder_$(KUBEBUILDER_VERSION)_$(OS)_$(ARCH)

test/helmlint:
helm lint deploy/domeneshop-webhook

clean-kubebuilder:
rm -Rf $(OUT)/kubebuilder
rm -Rf "$(OUT)/kubebuilder"

clean-helm:
rm -Rf "$(OUT)/helm"

clean: clean-kubebuilder clean-helm

docker:
docker build \
Expand All @@ -42,3 +50,13 @@ rendered-manifest.yaml:
--set image.repository=$(IMAGE_NAME) \
--set image.tag=$(IMAGE_TAG) \
deploy/cert-manager-webhook-domeneshop > "$(OUT)/rendered-manifest.yaml"

.PHONY: chart
chart: test/helmlint clean-helm
helm package --destination "$(OUT)/helm" deploy/domeneshop-webhook
helm repo index "$(OUT)/helm" \
--url "https://awigen.github.io/cert-manager-webhook-domeneshop" \
--merge "charts/index.yaml"
mv -f "$(OUT)/helm/index.yaml" charts/
mv -f "$(OUT)/helm/"*.tgz charts/

Binary file added charts/cert-manager-webhook-domeneshop-1.0.0.tgz
Binary file not shown.
14 changes: 14 additions & 0 deletions charts/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
entries:
cert-manager-webhook-domeneshop:
- apiVersion: v1
appVersion: 1.0.0
created: "2023-02-11T10:00:30.956379488+10:00"
description: cert-manager webhook for Domeneshop
digest: 5928b0874909c52b6b04f82e0573676fc306fa27c7892bf850980c64cc65a3dc
icon: https://domene.shop/svg/logo-no.svg
name: cert-manager-webhook-domeneshop
urls:
- https://awigen.github.io/cert-manager-webhook-domeneshop/cert-manager-webhook-domeneshop-1.0.0.tgz
version: 1.0.0
generated: "2023-02-11T10:00:30.955364063+10:00"
1 change: 1 addition & 0 deletions deploy/domeneshop-webhook/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ appVersion: "1.0.0"
description: cert-manager webhook for Domeneshop
name: cert-manager-webhook-domeneshop
version: 1.0.0
icon: https://domene.shop/svg/logo-no.svg