Skip to content

Commit

Permalink
Merge pull request K0rdent#34 from Mirantis/cert-manager
Browse files Browse the repository at this point in the history
Add cert-manager helm chart
  • Loading branch information
Kshatrix authored Jun 21, 2024
2 parents 36e3c43 + e4e800a commit 90f0497
Show file tree
Hide file tree
Showing 6 changed files with 9,413 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ hmc-chart-generate: kustomize helmify ## Generate hmc helm chart
$(KUSTOMIZE) build config/default | $(HELMIFY) templates/hmc

.PHONY: templates-generate
templates-generate:
templates-generate: cert-manager
@hack/templates.sh

.PHONY: generate-all
Expand Down Expand Up @@ -173,6 +173,10 @@ LOCAL_REGISTRY_REPO ?= oci://127.0.0.1:$(LOCAL_REGISTRY_PORT)/charts

AWS_CREDENTIALS=${AWS_B64ENCODED_CREDENTIALS}

CERT_MANAGER_VERSION ?= v1.15.0
CERT_MANAGER_TEMPLATE_FOLDER ?= templates/cert-manager
CERT_MANAGER_URL ?= https://github.com/cert-manager/cert-manager/releases/download/$(CERT_MANAGER_VERSION)/cert-manager.yaml

ifndef ignore-not-found
ignore-not-found = false
endif
Expand Down Expand Up @@ -210,6 +214,10 @@ registry-undeploy:
helm-controller-deploy: helm
$(HELM) upgrade --install --create-namespace --set $(FLUX_CHART_VALUES) helm-controller $(FLUX_CHART_REPOSITORY) --version $(FLUX_CHART_VERSION) -n $(NAMESPACE)

.PHONY: cert-manager
cert-manager: yq
curl -Ls $(CERT_MANAGER_URL) -o $(CERT_MANAGER_TEMPLATE_FOLDER)/templates/cert-manager.yaml; \

.PHONY: crd-install
crd-install: generate-all kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/crd | $(KUBECTL) apply -f -
Expand Down
8 changes: 8 additions & 0 deletions config/templates/cert-manager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: hmc.mirantis.com/v1alpha1
kind: Template
metadata:
name: cert-manager
spec:
helm:
chartName: cert-manager
chartVersion: "0.1.0"
23 changes: 23 additions & 0 deletions templates/cert-manager/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
23 changes: 23 additions & 0 deletions templates/cert-manager/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v2
name: cert-manager
description: A Helm chart for Cert Manager components
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.0"
annotations:
hmc.mirantis.com/type: core
Loading

0 comments on commit 90f0497

Please sign in to comment.