Skip to content

Commit

Permalink
added cost mgmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tjungbauer committed Jan 22, 2024
1 parent 7fd47af commit df6df3b
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v2
name: setup-file-integrity-operator
description: Setup File Integrity Operator
version: 1.0.0
dependencies:
- name: helper-operator
version: ~1.0.0
repository: https://charts.stderr.at/
- name: helper-status-checker
version: ~3.0.0
repository: https://charts.stderr.at/
condition: helper-status-checker.enabled
- name: cost-management
version: ~1.0.0
repository: https://charts.stderr.at/
maintainers:
- name: tjungbauer
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "common.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 "common.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}

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

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

{{/*
Selector labels
*/}}
{{- define "common.selectorLabels" -}}
app.kubernetes.io/name: {{ include "common.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---

cost-management:
costmgmt:
enabled: true

name: costmanagementmetricscfg

airgapped: true

max_reports_to_store: 60

# must be less or equal to 100
# Default: 100
# max_size_MB: 100
upload_cycle: 360

# Deploys Operator --> Subscription and Operatorgroup
# Syncwave: 0
helper-operator:
operators:
cost-management-operator:
enabled: true
syncwave: '0'
namespace:
name: costmanagement-metrics-operator
create: true
subscription:
channel: stable
approval: Automatic
operatorName: costmanagement-metrics-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
operatorgroup:
create: true
notownnamespace: false

helper-status-checker:
enabled: true

# use the value of the currentCSV (packagemanifest) but WITHOUT the version !!
operatorName: costmanagement-metrics-operator

# where operator is installed
namespace:
name: costmanagement-metrics-operator

serviceAccount:
create: true
name: "sa-costmanagement-metrics"

0 comments on commit df6df3b

Please sign in to comment.