-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support all variations of responseTypes (#104)
- Loading branch information
1 parent
ca4fe77
commit a7a2caa
Showing
6 changed files
with
74 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM golang:1.16 as builder | ||
WORKDIR /go/src/app | ||
RUN os=$(go env GOOS) &&\ | ||
arch=$(go env GOARCH) &&\ | ||
curl -sL https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.3.2/kubebuilder_2.3.2_${os}_${arch}.tar.gz | tar -xz -C /tmp/ &&\ | ||
mv /tmp/kubebuilder_2.3.2_${os}_${arch} /usr/local/kubebuilder &&\ | ||
export PATH=$PATH:/usr/local/kubebuilder/bin | ||
COPY . . | ||
RUN make test &&\ | ||
make manager | ||
|
||
# Use distroless as minimal base image to package the manager binary | ||
# Refer to https://github.com/GoogleContainerTools/distroless for more details | ||
FROM gcr.io/distroless/static:latest | ||
COPY --from=builder /go/src/app/manager . | ||
USER 1000 | ||
ENTRYPOINT ["/manager"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,12 +34,12 @@ test: generate fmt vet manifests | |
# Start KIND pseudo-cluster | ||
.PHONY: kind-start | ||
kind-start: | ||
GO111MODULE=on go get "sigs.k8s.io/[email protected]" && kind create cluster | ||
kind create cluster | ||
|
||
# Stop KIND pseudo-cluster | ||
.PHONY: kind-stop | ||
kind-stop: | ||
GO111MODULE=on go get "sigs.k8s.io/[email protected]" && kind delete cluster | ||
kind delete cluster | ||
|
||
# Deploy on KIND | ||
# Ensures the controller image is built, deploys the image to KIND cluster along with necessary configuration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters