Skip to content

Commit

Permalink
Merge pull request #70 from nima-rx/main
Browse files Browse the repository at this point in the history
change prometheus url and go version
  • Loading branch information
nima-rx authored Dec 13, 2022
2 parents 4c83ba2 + 7db8767 commit 87b4642
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.17 as builder
FROM golang:1.19 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
5 changes: 5 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ spec:
configMapKeyRef:
name: grafana-complementary-config
key: grafana-url
- name: PROMETHEUS_URL
valueFrom:
configMapKeyRef:
name: grafana-complementary-config
key: prometheus-url
imagePullPolicy: Always
name: manager
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion controllers/namespace/namespace_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import (
const (
baseNs = "snappcloud-monitoring"
baseSa = "monitoring-datasource"
prometheusURL = "https://thanos-querier-custom.openshift-monitoring.svc.cluster.local:9092"
nsMonitoringLabel = "monitoring.snappcloud.io/grafana-datasource"
teamLabel = "snappcloud.io/team"
)
Expand All @@ -47,6 +46,7 @@ const (
var grafanaPassword = os.Getenv("GRAFANA_PASSWORD")
var grafanaUsername = os.Getenv("GRAFANA_USERNAME")
var grafanaURL = os.Getenv("GRAFANA_URL")
var prometheusURL = os.Getenv("PROMETHEUS_URL")

// NamespaceReconciler reconciles a Namespace object
type NamespaceReconciler struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/snapp-cab/grafana-complementary-operator

go 1.17
go 1.19

require (
github.com/grafana-operator/grafana-operator/v4 v4.6.0
Expand Down

0 comments on commit 87b4642

Please sign in to comment.