Skip to content

Commit

Permalink
Merge pull request #25 from empathyco/feature/helm-release
Browse files Browse the repository at this point in the history
Adding Helm releaser and updating Helm Chart
  • Loading branch information
kaskol10 authored Mar 14, 2022
2 parents 0d0a982 + 49603a1 commit 0d16e41
Show file tree
Hide file tree
Showing 18 changed files with 6,714 additions and 3,786 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/chart-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Helm Release

on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'charts/cost-report/Chart.yaml'
- 'charts/cost-report/**/*'

env:
HELM_VERSION: "v3.5.3"

jobs:
helm-release:
runs-on: 'ubuntu-latest'
steps:
- name: "Checkout main branch"
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: "Configure Git"
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: "Install Helm"
uses: azure/setup-helm@v1
with:
version: "${{ env.HELM_VERSION }}"

- name: "Run chart-releaser"
uses: helm/[email protected]
with:
charts_dir: charts
charts_repo_url: https://empathyco.github.io/kubernetes-cost-report/
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"

File renamed without changes.
4 changes: 2 additions & 2 deletions helm/cost-report/Chart.yaml → charts/cost-report/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ 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.4.0
version: 0.0.1

# 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.0.7"
appVersion: "0.0.12"
38 changes: 38 additions & 0 deletions charts/cost-report/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# cost-report

![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.12](https://img.shields.io/badge/AppVersion-0.0.12-informational?style=flat-square)

A Helm chart for Kubernetes

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | Kubernetes pod affinity |
| fullnameOverride | string | `""` | Chart full name override |
| image.pullPolicy | string | `"IfNotPresent"` | Image pullpolicy |
| image.repository | string | `"empathyco/cost-report"` | Image repository |
| image.tag | string | `"0.0.12"` | Image tag |
| imagePullSecrets | list | `[]` | Image pull secrets |
| nameOverride | string | `""` | Chart name override |
| nodeSelector | object | `{}` | Kubernetes node selector |
| podAnnotations | object | `{}` | Custom pod annotations |
| podSecurityContext | object | `{}` | Custom pod security context |
| replicaCount | int | `1` | Number of deployment replicas |
| resources | object | `{}` | Container resources |
| securityContext | object | `{}` | Custom container security context |
| service.port | int | `8080` | Service port |
| service.type | string | `"ClusterIP"` | Service type |
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
| serviceAccount.name | string | `""` | |
| serviceMonitor.additionalLabels | object | `{"release":"prometheus"}` | Prometheus instance selector labels |
| serviceMonitor.dashboards.annotations | object | `{}` | Create Grafana dashboard folder. |
| serviceMonitor.dashboards.enabled | bool | `true` | Create Grafana dashboard. This dashboard requires the recording rules in serviceMonitor.prometheusRules |
| serviceMonitor.enabled | bool | `true` | if true, creates a Prometheus Operator ServiceMonitor |
| serviceMonitor.prometheusRules.additionalLabels | object | `{"release":"prometheus"}` | prometheusRules selector labels. |
| serviceMonitor.prometheusRules.enabled | bool | `true` | Create Prometheus recording rules. |
| tolerations | list | `[]` | Kubernetes tolerations |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)
Loading

0 comments on commit 0d16e41

Please sign in to comment.