Skip to content

Commit

Permalink
Merge pull request #254 from stakater/handle-resource-redeploy
Browse files Browse the repository at this point in the history
fix: Reload pods after redeploy secrets or configmap
  • Loading branch information
ahmedwaleedmalik committed Jul 30, 2021
2 parents d0aa627 + 953cbe9 commit 99a38bf
Show file tree
Hide file tree
Showing 5 changed files with 647 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
@@ -1,5 +1,5 @@
# Build the manager binary
FROM --platform=${BUILDPLATFORM} golang:1.15.2 as builder
FROM --platform=${BUILDPLATFORM} golang:1.16 as builder

ARG TARGETOS
ARG TARGETARCH
Expand All @@ -26,7 +26,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} GO111MODULE=on go build
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
USER nonroot:nonroot
USER 65532:65532

# Port for metrics and probes
EXPOSE 9090
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -26,6 +26,9 @@ default: build test
install:
"$(GOCMD)" mod download

run:
go run ./main.go

build:
"$(GOCMD)" build ${GOFLAGS} ${LDFLAGS} -o "${BINARY}"

Expand Down
17 changes: 11 additions & 6 deletions go.mod
@@ -1,22 +1,25 @@
module github.com/stakater/Reloader

go 1.15
go 1.16

require (
github.com/argoproj/argo-rollouts v1.0.1
github.com/argoproj/argo-rollouts v1.0.2
github.com/onsi/ginkgo v1.15.1 // indirect
github.com/onsi/gomega v1.11.0 // indirect
github.com/openshift/api v0.0.0-20210527122704-efd9d5958e01
github.com/openshift/client-go v0.0.0-20210521082421-73d9475a9142
github.com/prometheus/client_golang v1.10.0
github.com/sirupsen/logrus v1.7.0
github.com/spf13/cobra v1.1.3
k8s.io/api v0.21.1
k8s.io/apimachinery v0.21.1
k8s.io/client-go v0.21.1
k8s.io/api v0.21.2
k8s.io/apimachinery v0.21.2
k8s.io/client-go v0.21.2
)

// Replacements for argo-rollouts
replace (
github.com/go-check/check => github.com/go-check/check v0.0.0-20180628173108-788fd7840127
github.com/grpc-ecosystem/grpc-gateway => github.com/grpc-ecosystem/grpc-gateway v1.16.0
k8s.io/api => k8s.io/api v0.20.4
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.20.4
k8s.io/apimachinery => k8s.io/apimachinery v0.21.0-alpha.0
Expand All @@ -41,4 +44,6 @@ replace (
k8s.io/metrics => k8s.io/metrics v0.20.4
k8s.io/mount-utils => k8s.io/mount-utils v0.20.5-rc.0
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.20.4
)
k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.20.4
k8s.io/sample-controller => k8s.io/sample-controller v0.20.4
)

0 comments on commit 99a38bf

Please sign in to comment.