Skip to content

Commit

Permalink
Update to new operator SDK (#34)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: Lars Hesel Christensen <[email protected]>
Co-authored-by: Charles Hufnagel <[email protected]>
Co-authored-by: Mariane Previde <[email protected]>
Co-authored-by: ioolkos <[email protected]>
Co-authored-by: Kusha Gharahi <[email protected]>
Co-authored-by: kaflake <[email protected]>
Co-authored-by: Leonardo Mariano <[email protected]>
  • Loading branch information
9 people authored Oct 19, 2022
1 parent 44adcef commit 0122c8f
Show file tree
Hide file tree
Showing 167 changed files with 11,396 additions and 26,712 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
# Ignore build and test binaries.
bin/
testbin/
84 changes: 16 additions & 68 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,77 +1,25 @@
# Temporary Build Files
build/_output
build/_test
# Created by https://www.gitignore.io/api/go,vim,emacs,visualstudiocode
### Emacs ###
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
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
*.exe~
*.dll
*.so
*.dylib
# Test binary, build with 'go test -c'
bin
testbin/*

# 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]
.*.sw[a-p]
# session
Session.vim
# temporary
.netrwhist
# auto-generated tag files
tags
### VisualStudioCode ###
.vscode/*
.history
# End of https://www.gitignore.io/api/go,vim,emacs,visualstudiocode

# Kubernetes Generated files - skip generated files, except for vendored files

!vendor/**/zz_generated.*

# editor and IDE paraphernalia
.idea
*.swp
*.swo
*~
78 changes: 0 additions & 78 deletions .travis.yml

This file was deleted.

27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Build the manager binary
FROM golang:1.18 as builder

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
# and so that source changes don't invalidate our downloaded layer
RUN go mod download

# Copy the go source
COPY main.go main.go
COPY api/ api/
COPY controllers/ controllers/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
USER 65532:65532

ENTRYPOINT ["/manager"]
Loading

0 comments on commit 0122c8f

Please sign in to comment.