Skip to content

Commit

Permalink
Merge pull request #81 from zakkg3/helm-crd-patrungel
Browse files Browse the repository at this point in the history
Helm crd patrungel
  • Loading branch information
zakkg3 authored Aug 31, 2023
2 parents 54b281c + 7882d7f commit 7f5a9d4
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 15 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release Charts

on:
push:
branches:
- master
paths:
- 'charts/**'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ For older kubernetes (<1.19) use the image tag `0.0.6` in your helm values file.

```bash
helm repo add clutersecret https://charts.clustersecret.io/
helm install clustersecret clutersecret/ClusterSecret --version 0.1.1 -n clustersecret --create-namespace
helm install clustersecret clutersecret/cluster-secret --version 0.2.1 -n clustersecret --create-namespace
```

# with just kubectl
Expand Down
2 changes: 1 addition & 1 deletion charts/cluster-secret/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: cluster-secret
description: ClusterSecret Operator
kubeVersion: '>= 1.16.0-0'
type: application
version: 0.2.0
version: 0.2.1
icon: https://clustersecret.io/assets/csninjasmall.png
sources:
- https://github.com/zakkg3/ClusterSecret
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clustersecrets.clustersecret.io
annotations:
cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "cluster-secret.fullname" . }}-
labels:

{{- include "cluster-secret.labels" . | nindent 4 }}
spec:
group: clustersecret.io
names:
Expand Down Expand Up @@ -45,9 +40,3 @@ spec:
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
4 changes: 2 additions & 2 deletions charts/cluster-secret/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ If release name contains chart name it will be used as a full name.
*/}}
{{- define "cluster-secret.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- .Values.fullnameOverride | lower | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- $name := default .Chart.Name .Values.nameOverride | lower }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
Expand Down

0 comments on commit 7f5a9d4

Please sign in to comment.