Skip to content

Commit

Permalink
automated commit
Browse files Browse the repository at this point in the history
Signed-off-by: Public copy <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Oct 29, 2024
1 parent 63d1e6d commit f9d76b2
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions images/prometheus/config/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ output "config" {
"command" : "prometheus"
},
"accounts" : module.accts.block
"paths" = [
{
path = "/data",
type = "directory",
permissions = 511
}
]
})
}

Expand Down
54 changes: 54 additions & 0 deletions images/prometheus/tests/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,60 @@ resource "imagetest_feature" "basic" {
name = "Helm Install"
cmd = module.helm.install_cmd
},
{
name = "Ensure we can run a vanilla install"
cmd = <<EOF
kubectl apply -f - <<EOm
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus-server
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: prometheus-server
template:
metadata:
labels:
app: prometheus-server
spec:
containers:
- name: prometheus
image: ${var.digest}
ports:
- containerPort: 9090
volumeMounts:
- name: config-volume
mountPath: /prometheus.yml
subPath: prometheus.yml
volumes:
- name: config-volume
configMap:
name: prometheus-server-conf
defaultMode: 420
---
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-server-conf
namespace: default
data:
prometheus.yml: |
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
EOm
kubectl wait --for=condition=available deployment prometheus-server --timeout=120s
EOF
},
]

labels = {
Expand Down
2 changes: 1 addition & 1 deletion tflib/publisher/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ terraform {
}
imagetest = {
source = "chainguard-dev/imagetest"
version = "0.0.43"
version = "0.0.44"
}
}
}

0 comments on commit f9d76b2

Please sign in to comment.