Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helmfile conversion #15

Merged
merged 18 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

## Overview

FinOps Stack is a comprehensive, turnkey solution designed to revolutionise financial operations (FinOps) by integrating a suite of applications into a unified platform. Our goal is to empower organisations with the tools they need to manage, visualise, and optimise their cloud resources in a fast-paced and ever-changing environment. FinOps Stack leverages advanced technologies to deliver real-time insights, enabling teams to make informed decisions swiftly and efficiently.
The FinOps Stack is the blueprint for a solution to automate FinOps best practices. It integrates a suite of open-source tools into a unified, easy-to-install platform.

Our goal is to empower organisations with the tools they need to manage, visualise, and optimise their cloud resources in complex, ever-changing environments.

The FinOps Stack is designed to work out-of-the-box seamlessly with GKE standard/autopilot clusters using Google Managed Prometheus, and can be customised for an organisation’s business requirements and/or Kubernetes distribution.

This repository contains the core components of FinOps Stack, including:

Expand All @@ -13,9 +17,7 @@ This repository contains the core components of FinOps Stack, including:

## Installation and Usage

For detailed installation instructions, please visit the [FinOps Stack documentation](https://finops-stack.jetstack.io).

To deploy FinOps Stack using the Helm chart, navigate to the `chart` directory and follow the instructions provided there.
For ease of use, the FinOps Stack is installed using a single Helmfile command. For detailed installation instructions, review the README under the `/installation` directory of this repository.

## Contributing

Expand All @@ -25,7 +27,7 @@ When contributing, please follow these guidelines:

1. **Raise an Issue**: Before starting work, check for existing issues. If none exist, raise a new one to discuss your idea.
2. **Follow Templates**: Use the provided issue and pull request templates to ensure your contribution is well-documented and easy to review.
3. **Suffix "Chart" for Chart Updates**: If your contribution involves changes to the Helm chart, please suffix the title of your issue or pull request with "Chart" to help us identify it quickly.
3. **Suffix "Chart" for Chart Updates**: If your contribution involves changes to the Helm charts, please suffix the title of your issue or pull request with "Chart" to help us identify it quickly.

## License

Expand Down
24 changes: 0 additions & 24 deletions chart/Chart.lock

This file was deleted.

57 changes: 0 additions & 57 deletions chart/Chart.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions chart/templates/opencost/gmp.opencost-podmonitoring.yaml

This file was deleted.

78 changes: 0 additions & 78 deletions chart/values-gke.yaml

This file was deleted.

87 changes: 0 additions & 87 deletions chart/values.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions charts/cert-manager-config/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v2
name: cert-manager-config
description: FinOps Stack related config for cert-manager
# 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: v0.1.0
42 changes: 42 additions & 0 deletions charts/cert-manager-config/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "cert-manager-config.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "cert-manager-config.dashboardname" -}}
{{ base .path | trimSuffix (ext .path) | lower | replace " " "-" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "cert-manager-config.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "cert-manager-config.labels" -}}
helm.sh/chart: {{ include "cert-manager-config.chart" . }}
{{ include "cert-manager-config.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "cert-manager-config.selectorLabels" -}}
app.kubernetes.io/name: {{ include "cert-manager-config.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
13 changes: 13 additions & 0 deletions charts/cert-manager-config/templates/grafana-ingress-cert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: grafana-ingress-tls
labels:
{{- include "cert-manager-config.labels" $ | nindent 4}}
spec:
secretName: {{ .Values.grafanaTLSCert.hostname }}-tls
issuerRef:
kind: ClusterIssuer
name: letsencrypt-prod
dnsNames:
- {{ .Values.grafanaTLSCert.hostname }}
Loading
Loading