Skip to content

Commit

Permalink
rename to galleybytes
Browse files Browse the repository at this point in the history
- refactor the repo for its not home in galleybytes
- remove the "v" prefix from the chart version
- make the resource names use the {{ .Release.Name }} instead of hard-coded
  • Loading branch information
isaaguilar committed Oct 7, 2022
1 parent 12e8f75 commit 73f468d
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-chart-releaser-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Run chart-releaser
uses: isaaguilar/chart-releaser-action@v1.1.0-7773ce63
uses: galleybytes/chart-releaser-action@v1.1.0-7773ce63
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Please refer to Helm's [documentation](https://helm.sh/docs/) to get started.
Once Helm is set up properly, add the repo as follows:

```console
$ helm repo add isaaguilar https://isaaguilar.github.io/helm-charts
$ helm repo add galleybytes https://galleybytes.github.io/helm-charts
```

You can then run `helm search repo isaaguilar` to see the charts.
You can then run `helm search repo galleybytes` to see the charts.

2 changes: 1 addition & 1 deletion charts/terraform-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: v0.9.0-pre3
description: A Helm chart to deploy the terraform-operator Controller and CRD.
name: terraform-operator
version: v0.2.14
version: 0.2.15
10 changes: 5 additions & 5 deletions charts/terraform-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# terraform-operator

![Version: v0.2.14](https://img.shields.io/badge/Version-v0.2.14-informational?style=flat-square) ![AppVersion: v0.9.0-pre3](https://img.shields.io/badge/AppVersion-v0.9.0--pre3-informational?style=flat-square)
![Version: 0.2.15](https://img.shields.io/badge/Version-0.2.15-informational?style=flat-square) ![AppVersion: v0.9.0-pre3](https://img.shields.io/badge/AppVersion-v0.9.0--pre3-informational?style=flat-square)

A Helm chart to deploy the terraform-operator Controller and CRD.

## TL;DR;

```console
$ helm repo add isaaguilar https://isaaguilar.github.io/helm-charts
$ helm install isaaguilar/terraform-operator --namespace tf-system
$ helm repo add galleybytes https://galleybytes.github.io/helm-charts
$ helm install galleybytes/terraform-operator --namespace tf-system
```

## Upgrading the Custom Resource Definition
Expand All @@ -24,14 +24,14 @@ kubectl apply -f crds/terraform.yaml
| Key | Description | Default |
|---|---|---|
| controller.affinity | `object` node/pod affinities | `{}` |
| controller.args | `list` additional arguments for the command | <a href="values.yaml#L22-L24">values.yaml</a> |
| controller.args | `list` additional arguments for the command | <a href="values.yaml#L23-L25">values.yaml</a> |
| controller.enabled | `bool` deploy the terraform-operator controller | `true` |
| controller.environmentVars | `object` key/value envs | `{}` |
| controller.image.pullPolicy | `string` Set how kubernetes determines when to pull the docker image. | `"IfNotPresent"` |
| controller.image.repository | `string` repo name without the tag. The init container shares the name and appends `-gencert`. | `"isaaguilar/terraform-operator"` |
| controller.image.tag | `string` tag of the image | `"v0.9.0-pre3"` |
| controller.nodeSelector | `object` node labels for pod assignment | `{}` |
| controller.replicaCount | `int` number of replicas | `1` |
| controller.resources | `object` CPU/Memory request and limit configuration | <a href="values.yaml#L28-L34">values.yaml</a> |
| controller.resources | `object` CPU/Memory request and limit configuration | <a href="values.yaml#L32-L38">values.yaml</a> |
| controller.tolerations | `list` List of node taints to tolerate | `[]` |
| webhook.enabled | `bool` enables the webhook - required most of the time | `true` |
4 changes: 2 additions & 2 deletions charts/terraform-operator/hack/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
## TL;DR;

```console
$ helm repo add isaaguilar https://isaaguilar.github.io/helm-charts
$ helm install isaaguilar/terraform-operator --namespace tf-system
$ helm repo add galleybytes https://galleybytes.github.io/helm-charts
$ helm install galleybytes/terraform-operator --namespace tf-system
```

## Upgrading the Custom Resource Definition
Expand Down
2 changes: 1 addition & 1 deletion charts/terraform-operator/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{{ if .Values.controller.enabled }}
Check logs with the following command:

kubectl -n {{ .Release.Namespace }} logs -f deploy/terraform-operator
kubectl -n {{ .Release.Namespace }} logs -f deploy/{{ .Release.Name }}
{{ end }}
---
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: terraform-operator
name: {{ .Release.Name }}
labels:
app: {{ .Chart.Name }}
chart: {{ template "_chart.label" . }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: terraform-operator
name: {{ .Release.Name }}
labels:
app: {{ .Chart.Name }}
chart: {{ template "_chart.label" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
subjects:
- kind: ServiceAccount
name: terraform-operator
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
name: terraform-operator
name: {{ .Release.Name }}
apiGroup: rbac.authorization.k8s.io
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: terraform-operator
name: {{ .Release.Name }}
labels:
app: {{ .Chart.Name }}
chart: {{ template "_chart.label" . }}
Expand All @@ -25,7 +25,7 @@ spec:
app: {{ .Chart.Name }}
release: {{ .Release.Name }}
spec:
serviceAccountName: terraform-operator
serviceAccountName: {{ .Release.Name }}
securityContext:
runAsNonRoot: true
runAsUser: 1001
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: terraform-operator
name: {{ .Release.Name }}
labels:
app: {{ .Chart.Name }}
chart: {{ template "_chart.label" . }}
Expand Down
5 changes: 2 additions & 3 deletions charts/terraform-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ controller:
pullPolicy: IfNotPresent

# controller.args -- additional arguments for the command
# @default -- <a href="values.yaml#L22-L24">values.yaml</a>
# @default -- <a href="values.yaml#L23-L25">values.yaml</a>
args:
- --zap-log-level=debug
- --zap-encoder=console
Expand All @@ -28,7 +28,7 @@ controller:
# - --max-concurrent-reconciles=10

# controller.resources -- CPU/Memory request and limit configuration
# @default -- <a href="values.yaml#L28-L34">values.yaml</a>
# @default -- <a href="values.yaml#L32-L38">values.yaml</a>
resources:
limits:
cpu: 50m
Expand All @@ -39,7 +39,6 @@ controller:

# controller.environmentVars -- key/value envs
environmentVars: {}
# DOCKERREPO: isaaguilar

# controller.nodeSelector -- node labels for pod assignment
nodeSelector: {}
Expand Down

0 comments on commit 73f468d

Please sign in to comment.