1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-16 09:16:38 +00:00

Rename controller to operator

This commit is contained in:
Fabian Reinartz 2016-11-01 14:19:25 +01:00
parent c4675fef69
commit 3d55bcb006
9 changed files with 11 additions and 11 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
/controller /operator

View file

@ -1,5 +1,5 @@
FROM quay.io/prometheus/busybox:latest FROM quay.io/prometheus/busybox:latest
ADD controller /bin/controller ADD operator /bin/operator
ENTRYPOINT ["/bin/controller"] ENTRYPOINT ["/bin/operator"]

View file

@ -1,5 +1,5 @@
build: build:
go build github.com/coreos/kube-prometheus-controller/cmd/controller go build github.com/coreos/prometheus-operator/cmd/operator
container: container:
docker build -t quay.io/coreos/kube-prometheus-controller . docker build -t quay.io/coreos/prometheus-operator.

View file

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/coreos/kube-prometheus-controller/pkg/controller" "github.com/coreos/prometheus-operator/pkg/controller"
) )
var cfg controller.Config var cfg controller.Config

View file

@ -10,4 +10,4 @@ cafile=$(kubectl config view -o jsonpath="{.clusters[?(@.name == \"$1\")].cluste
certfile=$(kubectl config view -o jsonpath="{.users[?(@.name == \"$1\")].user.client-certificate}") certfile=$(kubectl config view -o jsonpath="{.users[?(@.name == \"$1\")].user.client-certificate}")
keyfile=$(kubectl config view -o jsonpath="{.users[?(@.name == \"$1\")].user.client-key}") keyfile=$(kubectl config view -o jsonpath="{.users[?(@.name == \"$1\")].user.client-key}")
./controller --apiserver=$apiserver --ca-file=$cafile --cert-file=$certfile --key-file=$keyfile ./operator --apiserver=$apiserver --ca-file=$cafile --cert-file=$certfile --key-file=$keyfile

View file

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"time" "time"
"github.com/coreos/kube-prometheus-controller/pkg/spec" "github.com/coreos/prometheus-operator/pkg/spec"
"k8s.io/client-go/1.5/pkg/api" "k8s.io/client-go/1.5/pkg/api"
"k8s.io/client-go/1.5/pkg/api/unversioned" "k8s.io/client-go/1.5/pkg/api/unversioned"
"k8s.io/client-go/1.5/pkg/runtime" "k8s.io/client-go/1.5/pkg/runtime"

View file

@ -9,7 +9,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/coreos/kube-prometheus-controller/pkg/spec" "github.com/coreos/prometheus-operator/pkg/spec"
"github.com/go-kit/kit/log" "github.com/go-kit/kit/log"
"k8s.io/client-go/1.5/kubernetes" "k8s.io/client-go/1.5/kubernetes"

View file

@ -3,7 +3,7 @@ package controller
import ( import (
"fmt" "fmt"
"github.com/coreos/kube-prometheus-controller/pkg/spec" "github.com/coreos/prometheus-operator/pkg/spec"
"k8s.io/client-go/1.5/pkg/api/v1" "k8s.io/client-go/1.5/pkg/api/v1"
"k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1" "k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1"
"k8s.io/client-go/1.5/pkg/util/intstr" "k8s.io/client-go/1.5/pkg/util/intstr"

View file

@ -3,7 +3,7 @@ package controller
import ( import (
"html/template" "html/template"
"github.com/coreos/kube-prometheus-controller/pkg/spec" "github.com/coreos/prometheus-operator/pkg/spec"
) )
type templateConfig struct { type templateConfig struct {