Skip to content

Commit

Permalink
Adding some comments (#52)
Browse files Browse the repository at this point in the history
* Adding some comments
  • Loading branch information
alfespa17 authored Feb 28, 2023
1 parent 009dbc2 commit 9abc5f2
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 53 deletions.
55 changes: 31 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,34 @@
# Terrakube Helm Chart

## Requirements
## Helm Repository

## Usage

[Helm](https://helm.sh) must be installed to use the charts. Please refer to
Helm's [documentation](https://helm.sh/docs) to get started.

Once Helm has been set up correctly, add the repo as follows:

helm repo add terrakube-repo https://AzBuilder.github.io/terrakube-helm-chart

If you had already added this repo earlier, run `helm repo update` to retrieve
the latest versions of the packages. You can then run `helm search repo
terrakube-repo` to see the charts.

To install the chart:

kubectl create namespace terrakube
helm install terrakube terrakube-repo/terrakube -n terrakube

To uninstall the chart:

helm delete terrakube -n terrrakube

## Minikube

To quickly test Terrakube in Minikube please follow [this](https://docs.terrakube.org/getting-started/deployment/minikube)

## Advance Installation

To install Terrakube in a Kubernetes cluster you will need the following:

Expand Down Expand Up @@ -457,34 +485,13 @@ kubectl create namespace terrakube
```
Test the helm chart before installing:
```bash
helm install --dry-run --debug --values ./values.yaml terrakube ./terrakube-helm-chart/ -n terrakube
helm install --debug --dry-run --values ./values.yaml terrakube ./terrakube-helm-chart/charts/terrakube/ -n terrakube
```
Running the helm chart.
```bash
helm install --debug --values ./values.yaml terrakube ./terrakube-helm-chart/ -n terrakube
helm install --debug --values ./values.yaml terrakube ./terrakube-helm-chart/charts/terrakube/ -n terrakube
```

After installing you should be able to view the app using ui domain inside the values.yaml.

### 7. Helm Repository

## Usage

[Helm](https://helm.sh) must be installed to use the charts. Please refer to
Helm's [documentation](https://helm.sh/docs) to get started.

Once Helm has been set up correctly, add the repo as follows:

helm repo add terrakube-repo https://AzBuilder.github.io/terrakube-helm-chart

If you had already added this repo earlier, run `helm repo update` to retrieve
the latest versions of the packages. You can then run `helm search repo
terrakube-repo` to see the charts.

To install the <chart-name> chart:

helm install my-<chart-name> terrakube-repo/terrakube

To uninstall the chart:

helm delete my-<chart-name>
2 changes: 1 addition & 1 deletion charts/terrakube/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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: 3.0.1
version: 3.0.2

# 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
Expand Down
2 changes: 2 additions & 0 deletions charts/terrakube/templates/secrets-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ stringData:
{{- end }}

{{- if .Values.api.defaultDatabase -}}
#Checking default database options
DatasourceHostname: '{{ .Release.Name }}-postgresql'
DatasourceDatabase: '{{ .Values.postgresql.auth.database }}'
DatasourceUser: '{{ .Values.postgresql.auth.username}}'
Expand All @@ -82,6 +83,7 @@ stringData:


{{- if .Values.api.loadSampleData -}}
#Checking if we need to load the default data for testing
spring_profiles_active: 'demo'
{{- end }}

Expand Down
1 change: 1 addition & 0 deletions charts/terrakube/templates/secrets-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: terrakube-ui-secrets
type: Opaque
stringData:
# This UI configuration file is loaded in /app/env-config.js
env-config.js: |
window._env_ = {
REACT_APP_TERRAKUBE_API_URL: "{{- if .Values.ingress.useTls }}https{{else}}http{{ end }}://{{ .Values.ingress.api.domain }}/api/v1/",
Expand Down
30 changes: 2 additions & 28 deletions charts/terrakube/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
"storage": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable Dex",
"defaultStorage": {
"description": "Enable Default Storage",
"type": "boolean"
},
"azure": {
Expand Down Expand Up @@ -137,32 +137,6 @@
}
}
},
"minio": {
"type": "object",
"required": ["accessKey", "secretKey", "bucketName", "region"],
"properties": {
"accessKey": {
"description": "AWS Access Key",
"type": "string"
},
"secretKey": {
"description": "AWS Secret Key",
"type": "string"
},
"bucketName": {
"description": "AWS Bucket name",
"type": "string"
},
"region": {
"description": "AWS Region",
"type": "string"
},
"endpoint": {
"description": "Custom S3 Endpoint",
"type": "string"
}
}
},
"default": {
"type": "object",
"required": ["bucketName", "region"],
Expand Down

0 comments on commit 9abc5f2

Please sign in to comment.