Skip to content

Commit

Permalink
Merge pull request #62 from scylladb/issue_28
Browse files Browse the repository at this point in the history
member_controller: now using scylla manager agent
  • Loading branch information
Henrik Johansson authored Apr 14, 2020
2 parents 17112d2 + 82db3df commit 4b2a5a0
Show file tree
Hide file tree
Showing 1,701 changed files with 252,663 additions and 746 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ RUN chmod +x /usr/local/bin/tini
# Add files for the sidecar
RUN mkdir -p /sidecar

# Jolokia plugin to sidecar for JMX<->HTTP
ADD "http://search.maven.org/remotecontent?filepath=org/jolokia/jolokia-jvm/1.6.0/jolokia-jvm-1.6.0-agent.jar" /sidecar/jolokia.jar
# Add tini to sidecar
RUN cp /usr/local/bin/tini /sidecar/tini

Expand Down
227 changes: 218 additions & 9 deletions Gopkg.lock

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

20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ all: test local-build

# Run tests
test: fmt vet vendor
go test ./pkg/... ./cmd/... -coverprofile cover.out
./bin/deps/go/bin/go test ./pkg/... ./cmd/... -coverprofile cover.out

# Build local-build binary
local-build: fmt vet vendor
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o bin/manager github.com/scylladb/scylla-operator/cmd

# Run against the configured Kubernetes cluster in ~/.kube/config
run: fmt vet vendor
go run ./cmd operator --image="$(IMG)" --enable-admission-webhook=false
./bin/deps/go/bin/go run ./cmd operator --image="$(IMG)" --enable-admission-webhook=false

# Install CRDs into a cluster
install: manifests
Expand All @@ -36,24 +36,24 @@ deploy: install
kustomize build config | kubectl apply -f -

# Generate manifests e.g. CRD, RBAC etc.
manifests:
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all
manifests: bin/deps
./bin/deps/go/bin/go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all
cd config && kustomize edit set image yanniszark/scylla-operator="$(IMG)"
kustomize build config > examples/generic/operator.yaml
kustomize build config > examples/gke/operator.yaml
kustomize build config > examples/minikube/operator.yaml

# Run go fmt against code
fmt:
go fmt ./pkg/... ./cmd/...
fmt: bin/deps
./bin/deps/go/bin/go fmt ./pkg/... ./cmd/...

# Run go vet against code
vet:
go vet ./pkg/... ./cmd/...
vet: bin/deps
./bin/deps/go/bin/go vet ./pkg/... ./cmd/...

# Generate code
generate:
go generate ./pkg/... ./cmd/...
generate: bin/deps
./bin/deps/go/bin/go generate ./pkg/... ./cmd/...

# Ensure dependencies
vendor:
Expand Down
Loading

0 comments on commit 4b2a5a0

Please sign in to comment.