Skip to content

Commit 2ff5ca6

Browse files
committed
add initial changes
1 parent 7fb9657 commit 2ff5ca6

File tree

6 files changed

+3399
-0
lines changed

6 files changed

+3399
-0
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2022-present SPH Media
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

main.tf

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
locals {
2+
values = {
3+
prometheus_image_repository = var.prometheus_image_repository
4+
prometheus_image_tag = var.prometheus_image_tag
5+
6+
grafana_image_repository = var.grafana_image_repository
7+
grafana_image_tag = var.grafana_image_tag
8+
grafana_admin_password = var.grafana_admin_password
9+
10+
prometheus_operator_image_repository = var.prometheus_operator_image_repository
11+
prometheus_operator_image_tag = var.prometheus_operator_image_tag
12+
13+
resources_driver = jsonencode(var.resources_driver)
14+
resources_registrar = jsonencode(var.resources_registrar)
15+
resources_liveness = jsonencode(var.resources_liveness)
16+
17+
}
18+
}
19+
20+
resource "helm_release" "kube_prometheus_stack" {
21+
name = var.release_name
22+
chart = var.chart_name
23+
repository = var.chart_repository
24+
version = var.chart_version
25+
namespace = var.chart_namespace
26+
27+
max_history = var.max_history
28+
timeout = var.chart_timeout
29+
30+
values = [
31+
templatefile("${path.module}/templates/values.yaml", local.values),
32+
]
33+
}

outputs.tf

Whitespace-only changes.

0 commit comments

Comments
 (0)