-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from gopaddle-io/v0.0.2
Merge latest version with main
- Loading branch information
Showing
146 changed files
with
8,222 additions
and
3,006 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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
vendor/ | ||
labelconfig/* | ||
main | ||
configurator | ||
.history | ||
.vscode | ||
.idea |
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 |
---|---|---|
@@ -1,10 +1,27 @@ | ||
FROM golang | ||
MAINTAINER Bluemeric <info@bluemeric.com> | ||
# Build the manager binary | ||
FROM golang:1.16 as builder | ||
|
||
RUN mkdir /app/ | ||
WORKDIR /app/ | ||
|
||
### Added artifacts into application working directory | ||
Add configurator /app/ | ||
WORKDIR /workspace | ||
# Copy the Go Modules manifests | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
# cache deps before building and copying source so that we don't need to re-download as much | ||
# and so that source changes don't invalidate our downloaded layer | ||
RUN go mod download | ||
|
||
CMD ["./configurator"] | ||
# Copy the go source | ||
COPY main.go main.go | ||
COPY apis/ apis/ | ||
COPY controllers/ controllers/ | ||
COPY pkg/ pkg/ | ||
# Build | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go | ||
|
||
# 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:nonroot | ||
WORKDIR / | ||
COPY --from=builder /workspace/manager . | ||
USER 65532:65532 | ||
|
||
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
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,36 @@ | ||
domain: configurator.gopaddle.io | ||
layout: | ||
- go.kubebuilder.io/v3 | ||
multigroup: true | ||
projectName: configurator | ||
repo: github.com/gopaddle-io/configurator | ||
resources: | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: configurator.gopaddle.io | ||
group: configurator.gopaddle.io | ||
kind: CustomConfigMap | ||
path: github.com/gopaddle-io/configurator/apis/configurator.gopaddle.io/v1alpha1 | ||
version: v1alpha1 | ||
- controller: true | ||
group: core | ||
kind: ConfigMap | ||
path: k8s.io/api/core/v1 | ||
version: v1 | ||
- controller: true | ||
group: core | ||
kind: Secret | ||
path: k8s.io/api/core/v1 | ||
version: v1 | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: configurator.gopaddle.io | ||
group: configurator.gopaddle.io | ||
kind: CustomSecret | ||
path: github.com/gopaddle-io/configurator/apis/configurator.gopaddle.io/v1alpha1 | ||
version: v1alpha1 | ||
version: "3" |
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
Oops, something went wrong.