Unverified Commit dc1cfc2e authored by André Carvalho's avatar André Carvalho Committed by GitHub

migrates operator-sdk to 0.4.0 (#3)

parent cdb47c6b

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

# Temporary Build Files
tmp/_output
tmp/_test
build/_output
build/_test
# Created by https://www.gitignore.io/api/go,vim,emacs,visualstudiocode
### Emacs ###
# -*- mode: gitignore; -*-
*~
......@@ -16,62 +12,44 @@ tmp/_test
auto-save-list
tramp
.\#*
# Org-mode
.org-id-locations
*_archive
# flymake-mode
*_flymake.*
# eshell files
/eshell/history
/eshell/lastdir
# elpa packages
/elpa/
# reftex files
*.rel
# AUCTeX auto folder
/auto/
# cask packages
.cask/
dist/
# Flycheck
flycheck_*.el
# server auth directory
/server/
# projectiles files
.projectile
projectile-bookmarks.eld
# directory configuration
.dir-locals.el
# saveplace
places
# url cache
url/cache/
# cedet
ede-projects.el
# smex
smex-items
# company-statistics
company-statistics-cache.el
# anaconda-mode
anaconda-mode/
### Go ###
# Binaries for programs and plugins
*.exe
......@@ -79,13 +57,10 @@ anaconda-mode/
*.dll
*.so
*.dylib
# Test binary, build with 'go test -c'
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
### Vim ###
# swap
.sw[a-p]
......@@ -96,14 +71,7 @@ Session.vim
.netrwhist
# auto-generated tag files
tags
### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history
# End of https://www.gitignore.io/api/go,vim,emacs,visualstudiocode
This diff is collapsed.
# Force dep to vendor the code generators, which aren't imported just used at dev time.
# Picking a subpackage with Go code won't be necessary once https://github.com/golang/dep/pull/1545 is merged.
required = [
"k8s.io/code-generator/cmd/defaulter-gen",
"k8s.io/code-generator/cmd/deepcopy-gen",
......@@ -10,43 +8,51 @@ required = [
"k8s.io/code-generator/cmd/informer-gen",
"k8s.io/code-generator/cmd/openapi-gen",
"k8s.io/gengo/args",
"k8s.io/apimachinery/pkg/apimachinery/registered",
]
[[override]]
name = "k8s.io/code-generator"
# revision for tag "kubernetes-1.9.3"
revision = "91d3f6a57905178524105a085085901bb73bd3dc"
# revision for tag "kubernetes-1.12.3"
revision = "3dcf91f64f638563e5106f21f50c31fa361c918d"
[[override]]
name = "k8s.io/api"
# revision for tag "kubernetes-1.9.3"
revision = "acf347b865f29325eb61f4cd2df11e86e073a5ee"
# revision for tag "kubernetes-1.12.3"
revision = "b503174bad5991eb66f18247f52e41c3258f6348"
[[override]]
name = "k8s.io/apiextensions-apiserver"
# revision for tag "kubernetes-1.12.3"
revision = "0cd23ebeb6882bd1cdc2cb15fc7b2d72e8a86a5b"
[[override]]
name = "k8s.io/apimachinery"
# revision for tag "kubernetes-1.9.3"
revision = "19e3f5aa3adca672c153d324e6b7d82ff8935f03"
# revision for tag "kubernetes-1.12.3"
revision = "eddba98df674a16931d2d4ba75edc3a389bf633a"
[[override]]
name = "k8s.io/client-go"
# revision for tag "kubernetes-1.9.3"
revision = "9389c055a838d4f208b699b3c7c51b70f2368861"
# revision for tag "kubernetes-1.12.3"
revision = "d082d5923d3cc0bfbb066ee5fbdea3d0ca79acf8"
[[override]]
name = "github.com/coreos/prometheus-operator"
version = "=v0.26.0"
[[override]]
name = "sigs.k8s.io/controller-runtime"
version = "=v0.1.8"
[[constraint]]
name = "github.com/operator-framework/operator-sdk"
# The version rule is used for a specific release and the master branch for in between releases.
branch = "master"
# version = "=v0.0.5"
branch = "master" #osdk_branch_annotation
# version = "=v0.4.0" #osdk_version_annotation
[prune]
non-go = true
unused-packages = true
go-tests = true
non-go = true
# Prevent dep from pruning build scripts and codegen templates
[[prune.project]]
name = "k8s.io/code-generator"
non-go = false
go-tests = false
unused-packages = false
\ No newline at end of file
[[prune.project]]
name = "k8s.io/code-generator"
non-go = false
FROM alpine:3.8
ENV OPERATOR=/usr/local/bin/nginx-operator \
USER_UID=1001 \
USER_NAME=nginx-operator
# install operator binary
COPY build/_output/bin/nginx-operator ${OPERATOR}
COPY build/bin /usr/local/bin
RUN /usr/local/bin/user_setup
ENTRYPOINT ["/usr/local/bin/entrypoint"]