Skip to content

Commit

Permalink
Move provider to CAPI v1alpha3
Browse files Browse the repository at this point in the history
  • Loading branch information
nwoodmsft committed Apr 14, 2020
1 parent b48aa0d commit 7aa521b
Show file tree
Hide file tree
Showing 150 changed files with 5,137 additions and 4,205 deletions.
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.github
.vscode
config/
hack/
docs/
templates/
scripts/
**/.md
tilt-provider.json
46 changes: 37 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Binaries for programs and plugins
*.exe
*.exe~
Expand All @@ -13,15 +12,44 @@ bin
# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Kubernetes Generated files - skip generated files, except for vendored files
# Ansible
*.retry

# vim
*~
*.swp

# envfiles
.env
envfile

# kubeconfigs
kind.kubeconfig
minikube.kubeconfig
kubeconfig

# ssh keys
.ssh*

!vendor/**/zz_generated.*
# Example and binary output directory
/out

# editor and IDE paraphernalia
# vscode
.vscode

# goland
.idea
*.swp
*.swo
*~

# skip generated examples
examples/_out
# Ignore output manifests
config/samples
manager_image_patch.yaml-e

# Bazel
bazel-*

# Tilt files.
.tiltbuild

# e2e output
test/e2e/junit.e2e_suite.*.xml
test/e2e/logs/*
31 changes: 31 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
run:
deadline: 3m
skip-dirs:
- mock*
skip-files:
- "zz_generated.*\\.go$"
- ".*conversion.*\\.go$"
linters:
enable:
- golint
- govet
- gofmt
- structcheck
- varcheck
- interfacer
- unconvert
- ineffassign
- goconst
# - gocyclo
- maligned
- misspell
- nakedret
- prealloc
- gosec
- deadcode
disable-all: true
# Run with --fast=false for more extensive checks
fast: true
issue:
max-same-issues: 0
max-per-linter: 0
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@
# go build -a -ldflags '-extldflags "-static"' \
# -o manager .


# NOTE: Approach above is not used while we still have a couple of private git repo's.
# Can be uncommented later.

# Copy the controller-manager into a thin image
FROM gcr.io/distroless/static:latest
WORKDIR /
COPY bin/manager ./
USER nobody
ENTRYPOINT ["/manager"]
ENTRYPOINT ["/manager"]
Loading

0 comments on commit 7aa521b

Please sign in to comment.