Skip to content

Commit 16cbc7c

Browse files
justaugustusk8s-ci-robot
authored andcommitted
Update developer toolbox and documentation (#131)
- Update documentation - Update .gitignore - Remove skip_files in golangci config - Bump golang version (`1.12.1`) / switch thin image to `distroless/base` - Clean up Makefile - Bump bazel rules_go (`0.18.1`) - Bump kind version (`d4ff13e4808ee5a816ed92bf2d3348bda12413db`) - Rename build/asm_shim - Add bazel generator for kustomize - Update example specs - Update generate-yaml.sh - Update cmd packages - Add release tool - Regenerate CRDs Signed-off-by: Stephen Augustus <[email protected]>
1 parent 9fdc475 commit 16cbc7c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1215
-516
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ envfile
4444

4545
# vscode
4646
.vscode
47+
48+
# Ignore output manifests
49+
cmd/clusterctl/examples/azure/out
50+
cmd/clusterctl/examples/azure/provider-components-base.yaml

.golangci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
run:
2-
skip-files:
3-
- build/asm_shim/c.go
41
linters-settings:
52
govet:
63
check-shadowing: true
@@ -26,6 +23,8 @@ linters:
2623
- nakedret
2724
- prealloc
2825
- gosec
26+
# TODO: Enable deadcode module once types are cleaned up
27+
#- deadcode
2928
disable-all: true
3029
# Run with --fast=false for more extensive checks
3130
fast: true

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# Build the manager binary
16-
FROM golang:1.11.5 as builder
16+
FROM golang:1.12.1 as builder
1717

1818
# Copy in the go src
1919
WORKDIR /go/src/sigs.k8s.io/cluster-api-provider-azure
@@ -25,7 +25,7 @@ COPY vendor/ vendor/
2525
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager sigs.k8s.io/cluster-api-provider-azure/cmd/manager
2626

2727
# Copy the controller-manager into a thin image
28-
FROM alpine:3.9
28+
FROM gcr.io/distroless/base
2929
WORKDIR /root/
3030
COPY --from=builder /go/src/sigs.k8s.io/cluster-api-provider-azure/manager .
3131
ENTRYPOINT ["./manager"]

0 commit comments

Comments
 (0)