Skip to content

Commit

Permalink
Pr v1alpha2 further refactorings (kubernetes-sigs#455)
Browse files Browse the repository at this point in the history
* further refactorings for v1alpha2

* test fix & define targets for prow

* regen & fix typo in log message

* fix tests

* fix gen examples

* minor renaming,

* nil pointer fix

* implement machinedeployment

* fix tests

* review fixes
  • Loading branch information
sbueringer authored and k8s-ci-robot committed Sep 2, 2019
1 parent b5fe8bc commit 7e4e4a8
Show file tree
Hide file tree
Showing 64 changed files with 1,615 additions and 685 deletions.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.git
.github
.vscode
bin/
config/
hack/
docs/
examples/
**/.md
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ network_closure.sh

# User cluster configs
.kubeconfig
kubeconfig

.tags*

Expand Down
21 changes: 21 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
linters:
enable:
- golint
- govet
- gofmt
- structcheck
- varcheck
- interfacer
- unconvert
- ineffassign
- goconst
- misspell
- nakedret
- prealloc
- deadcode
disable-all: true
# Run with --fast=false for more extensive checks
fast: true
issue:
max-same-issues: 0
max-per-linter: 0
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,19 @@
# Build the manager binary
FROM golang:1.12.9

# default the go proxy
# Run this with docker build --build_arg $(go env GOPROXY) to override the goproxy
ARG goproxy=https://proxy.golang.org

# run this with docker build --build_arg $(go env GOPROXY) to override the goproxy
ENV GOPROXY=$goproxy

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
# 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

# Copy the go source
# Copy the sources
COPY main.go main.go
COPY api/ api/
COPY controllers/ controllers/
Expand Down
Loading

0 comments on commit 7e4e4a8

Please sign in to comment.