Skip to content

Commit 0122c8f

Browse files
DominikBasnerSotecdergraflarsheselCharles Hufnagelmprevide
authored
Update to new operator SDK (#34)
* updated vmq * update * INITIAL COMMIT * Create LICENSE * Create README.md * Update README.md * Update README.md * Update README.md * Add VerneMQ StatefulSet after scaffolding operator * Update README.md * Cleaning up a lot * initial stuff * ConfigMap reload * Add clusterViewSecret * Make clustering work * Add more stuff * Refactoring * Enable Env substitution * Add Travis CI support * add source * change source line * rename travis yaml * add .travis.yml (#3) * Added docs (#4) * Add more docs (#5) * Fix Readme and Getting Started Guide (#6) * Update getting-started.md * Handle cluster join error * Add full operator yaml * Use vmq-plugin-bundler to fetch plugin dependencies * Added Jsonnet support, added Jsonnet based full stack example * Add VerneMQ cluster to example * Fix examples * Travis should use only_vernemq example * Fix travis.ci * Don't generate ServiceMonitor for only_vernemq example * Provide Listener and Plugins through CRD * Improve Configuration via VerneMQ Custom Resource * Updated API docs * Properly parse integer * Fix config value parsing * Improve docs, allow interface instead of address when specifying listener * Yaml doesn't know how to handle unsinged ints :( * Set default listeners and configs in examples * Review (#8) A few small fixes and corrections * Configure plugins via command hooks (#10) * Configure plugins via commands * Log os:cmds * Fix a couple of bugs * Trim res to avoid the newline * Remove redirect stuff, not needed * Implement timeout handling * Improve logging * Omit timeout if empty * Fix swapped log lines * Fix bug when stopping plugins * Generate code for plugin configuration via command hooks * Add pod watch to operator roles in examples * Make the Plugin Bundler Image configurable * Update default VerneMQ image to 1.9.2-alpine * operator-sdk doesn't use dep anymore for managing deps * check for bundler deployment * try to get out some logs * Specify default Bundler Version * Fix typo in bundler image name * Cleanup dependency management - Use 'go mod' instead of 'dep' - Give up on vendoring dependencies - Use the operator-sdk binary releases to run the travis CI tests. * Fix protocol versions (#16) * Fix `vmq-admin listener start` allowed_protocol_versions name * Rerun make to ensure proper file generation * prometheus and grafana - order #14 (#15) * Update README.md * Update getting-started.md * Update image location & change operator deployment apiVersion (#22) * Update base image to vernemq/vernemq * make operator deployment v1 instead of v1beta since in k8s 1.16 the apis have changed * all Deployments api/v1beta2 -> apps/v1 * undo apiVersion change for node-exporter-daemonset * Change jsonnet api version also in jsonnet file not only in generated yaml (#23) * Fix git protocol (#29) The `git://` protocol was deprecated in March 15, 2022. If you change the protocol to `https://` vmq-operator will work again. * update * updated vmq * updated reamdme * kubectl call * conf update * config to statefulset.go * config away from statefulset.go * fixing smaller issues regarding docker-imgaes / names * public image changed * public image changed Co-authored-by: Andre Graf <andre@dergraf.org> Co-authored-by: Lars Hesel Christensen <lars@larshesel.dk> Co-authored-by: Charles Hufnagel <hufnagel@stratisiot.com> Co-authored-by: Mariane Previde <mariane.previde@gmail.com> Co-authored-by: ioolkos <afa@erl.io> Co-authored-by: Kusha Gharahi <3326002+kushagharahi@users.noreply.github.com> Co-authored-by: kaflake <8384990+kaflake@users.noreply.github.com> Co-authored-by: Leonardo Mariano <49132426+marianoleonardo@users.noreply.github.com>
1 parent 44adcef commit 0122c8f

File tree

167 files changed

+11396
-26712
lines changed

Some content is hidden

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

167 files changed

+11396
-26712
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
2+
# Ignore build and test binaries.
3+
bin/
4+
testbin/

.gitignore

Lines changed: 16 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,25 @@
1-
# Temporary Build Files
2-
build/_output
3-
build/_test
4-
# Created by https://www.gitignore.io/api/go,vim,emacs,visualstudiocode
5-
### Emacs ###
6-
# -*- mode: gitignore; -*-
7-
*~
8-
\#*\#
9-
/.emacs.desktop
10-
/.emacs.desktop.lock
11-
*.elc
12-
auto-save-list
13-
tramp
14-
.\#*
15-
# Org-mode
16-
.org-id-locations
17-
*_archive
18-
# flymake-mode
19-
*_flymake.*
20-
# eshell files
21-
/eshell/history
22-
/eshell/lastdir
23-
# elpa packages
24-
/elpa/
25-
# reftex files
26-
*.rel
27-
# AUCTeX auto folder
28-
/auto/
29-
# cask packages
30-
.cask/
31-
dist/
32-
# Flycheck
33-
flycheck_*.el
34-
# server auth directory
35-
/server/
36-
# projectiles files
37-
.projectile
38-
projectile-bookmarks.eld
39-
# directory configuration
40-
.dir-locals.el
41-
# saveplace
42-
places
43-
# url cache
44-
url/cache/
45-
# cedet
46-
ede-projects.el
47-
# smex
48-
smex-items
49-
# company-statistics
50-
company-statistics-cache.el
51-
# anaconda-mode
52-
anaconda-mode/
53-
### Go ###
1+
542
# Binaries for programs and plugins
553
*.exe
564
*.exe~
575
*.dll
586
*.so
597
*.dylib
60-
# Test binary, build with 'go test -c'
8+
bin
9+
testbin/*
10+
11+
# Test binary, build with `go test -c`
6112
*.test
13+
6214
# Output of the go coverage tool, specifically when used with LiteIDE
6315
*.out
64-
### Vim ###
65-
# swap
66-
.sw[a-p]
67-
.*.sw[a-p]
68-
# session
69-
Session.vim
70-
# temporary
71-
.netrwhist
72-
# auto-generated tag files
73-
tags
74-
### VisualStudioCode ###
75-
.vscode/*
76-
.history
77-
# End of https://www.gitignore.io/api/go,vim,emacs,visualstudiocode
16+
17+
# Kubernetes Generated files - skip generated files, except for vendored files
18+
19+
!vendor/**/zz_generated.*
20+
21+
# editor and IDE paraphernalia
22+
.idea
23+
*.swp
24+
*.swo
25+
*~

.travis.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.

Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Build the manager binary
2+
FROM golang:1.18 as builder
3+
4+
WORKDIR /workspace
5+
# Copy the Go Modules manifests
6+
COPY go.mod go.mod
7+
COPY go.sum go.sum
8+
# cache deps before building and copying source so that we don't need to re-download as much
9+
# and so that source changes don't invalidate our downloaded layer
10+
RUN go mod download
11+
12+
# Copy the go source
13+
COPY main.go main.go
14+
COPY api/ api/
15+
COPY controllers/ controllers/
16+
17+
# Build
18+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
19+
20+
# Use distroless as minimal base image to package the manager binary
21+
# Refer to https://github.com/GoogleContainerTools/distroless for more details
22+
FROM gcr.io/distroless/static:nonroot
23+
WORKDIR /
24+
COPY --from=builder /workspace/manager .
25+
USER 65532:65532
26+
27+
ENTRYPOINT ["/manager"]

0 commit comments

Comments
 (0)