Skip to content

Commit

Permalink
Initial implementation
Browse files Browse the repository at this point in the history
PV Watchdog automating manual procedures of cisco SOP regarding:
kubernetes/cloud-provider-openstack#150
kubernetes/kubernetes#33128

- watches on events for pods
- deletes a pod
    - that has relevant cinder emptyPath event
    - is in Pending phase
    - hasn't been deleted in past 60 sec
  • Loading branch information
Jan Wozniak committed Nov 29, 2018
1 parent 210d257 commit 3706f80
Show file tree
Hide file tree
Showing 2,010 changed files with 782,699 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pipeline:
publish_cisco:
image: plugins/docker
secrets: [docker_username, docker_password]
repo: containers.cisco.com/sopdsre/pvwatch
registry: containers.cisco.com
auto_tag: true
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM golang:latest AS golang
ENV GOPATH /go
WORKDIR /go/src/github.com/cisco-sso/pvwatch
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o pvwatch .

FROM scratch
COPY --from=golang /go/src/github.com/cisco-sso/pvwatch/pvwatch /
EXPOSE 8080
ENTRYPOINT ["/pvwatch"]
Loading

0 comments on commit 3706f80

Please sign in to comment.