Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Initial Operator Implementation #13

Merged
merged 61 commits into from
Nov 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
d0c4fc6
WIP added skeleton and first modifications
fhennig Oct 22, 2021
20cc3db
Added custom start script
fhennig Oct 22, 2021
5f61ee3
WIP
fhennig Oct 22, 2021
dd23596
WIP config files should get generated now
fhennig Oct 25, 2021
9e5b26f
WIP Updated CRD
fhennig Oct 25, 2021
2b26dd4
WIP A pod is generated
fhennig Oct 26, 2021
5eee5ec
Fixed eligible node configuration, now all pods get generated
fhennig Oct 26, 2021
3dae03e
WIP Added log4j config
fhennig Oct 26, 2021
7cc9672
Made SQL DB configurable in the CRD
fhennig Oct 27, 2021
52a7d66
Added Metadata Storage Connection properties to product config
fhennig Oct 28, 2021
ec6a611
Added psql and msql extension
fhennig Oct 28, 2021
605ed5f
Handling of druid.host changed
fhennig Oct 28, 2021
eb3e996
Updated depndencies
fhennig Oct 29, 2021
bff7dc2
Fixed errors
fhennig Oct 29, 2021
70aff73
Added zookeeper discovery
fhennig Oct 29, 2021
fb94351
Added deep storage config
fhennig Nov 1, 2021
5a3fbb5
Added restart order and start stop commands
fhennig Nov 3, 2021
abe1f06
Updated docs
fhennig Nov 4, 2021
d5ed335
Docker changes
fhennig Nov 1, 2021
0e46fd7
Docker changes
fhennig Nov 1, 2021
184297e
Moved all paths into the /stackable dir
fhennig Nov 4, 2021
7fe573c
use generateName with start/stop/restart commands
fhennig Nov 4, 2021
34dfcd3
Fixed zookeeper connection
fhennig Nov 4, 2021
e721ea8
Merge branch 'dockerize' into start
fhennig Nov 5, 2021
34f0987
Removed JAVA_HOME from CRD and code
fhennig Nov 5, 2021
8865123
Updated docs
fhennig Nov 5, 2021
88c4ba5
Removed script since it moved to the docker-images repo
fhennig Nov 5, 2021
824ad91
Fixed clippy issues
fhennig Nov 5, 2021
38b0466
Added .github repo with workflows etc
fhennig Nov 5, 2021
fed5b67
Updated docs
fhennig Nov 5, 2021
7be330a
Updated dependencies
fhennig Nov 5, 2021
2509251
formatting fix
fhennig Nov 5, 2021
24111c6
Fixed docker image reference
fhennig Nov 5, 2021
c52623f
Experimental: added kind dev cluster config.
razvan Nov 5, 2021
13ebbd0
Fixed docker run command
fhennig Nov 5, 2021
29f3644
Merge branch 'start' of github.com:stackabletech/druid-operator into …
fhennig Nov 5, 2021
b5e2eb6
Made plaintext port required to enforce that a config is created
fhennig Nov 5, 2021
89089e3
Removed dead code; fixed tests
fhennig Nov 5, 2021
b2b9f3c
Added deny.toml
fhennig Nov 5, 2021
895ec09
Added packaging dir
fhennig Nov 5, 2021
db38ea5
Updated deny.toml
fhennig Nov 5, 2021
1237670
Update docs/modules/ROOT/pages/usage.adoc
razvan Nov 8, 2021
f7821d6
Update rust/operator/src/config.rs
razvan Nov 8, 2021
9a85020
Example volume mount
razvan Nov 9, 2021
895df5c
Volume mount code
razvan Nov 9, 2021
9bfb6b9
Local deepstorage
fhennig Nov 9, 2021
ebda090
Fix clippy warning.
razvan Nov 9, 2021
32afa2e
Removed artefact publishing workflows.
razvan Nov 9, 2021
812dd70
Update docs.
razvan Nov 9, 2021
66a60c1
Bugfix: remove security context
razvan Nov 10, 2021
71b2b18
Update image tag.
razvan Nov 11, 2021
0be18de
Update container entry point.
razvan Nov 11, 2021
1223634
Added in the possiblity to set extra labels
fhennig Nov 12, 2021
1fdcd35
Added node selector to the CRD
fhennig Nov 12, 2021
585a422
Merge branch 'local-deepstorage-node-selector-2' into start
fhennig Nov 12, 2021
2ae01a9
Bump stackable-zookeeper-crd to 0.5.0
razvan Nov 12, 2021
b6c58e5
Merge branch 'start' of github.com:stackabletech/druid-operator into …
fhennig Nov 12, 2021
368001e
Updated docs to explain deep storage config
fhennig Nov 12, 2021
3526be7
clippy fixes
fhennig Nov 12, 2021
f3573d0
Added druid-data label to the kind cluster
fhennig Nov 12, 2021
c846787
Clarify usage docs.
razvan Nov 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# =============
# This file is automatically generated from the templates in stackabletech/operator-templating
# DON'T MANUALLY EDIT THIS FILE
# =============
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "type/dependencies"
reviewers:
- "stackabletech/developers"

- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
labels:
- "type/dependencies"
reviewers:
- "stackabletech/rust-developers"
ignore:
# We never want to be notified about a kube-rs update.
# It often contains breaking changes so it has to be updated manually anyway
# and it needs to be updated together with kube-runtime, kube-derive etc.
- dependency-name: "kube*"
- dependency-name: "k8s-openapi"
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Description

## Review Checklist
- [ ] Code contains useful comments
- [ ] (Integration-)Test cases added (or not applicable)
- [ ] Documentation added (or not applicable)
- [ ] Changelog updated (or not applicable)
- [ ] Cargo.toml only contains references to git tags (not specific commits or branches)
19 changes: 19 additions & 0 deletions .github/workflows/daily_security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# =============
# This file is automatically generated from the templates in stackabletech/operator-templating
# DON'T MANUALLY EDIT THIS FILE
# =============
name: Security audit

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions-rs/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# =============
# This file is automatically generated from the templates in stackabletech/operator-templating
# DON'T MANUALLY EDIT THIS FILE
# =============
name: Docker

on:
push:
branches:
- main

jobs:
build:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- shell: bash
env:
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: make docker
117 changes: 117 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# =============
# This file is automatically generated from the templates in stackabletech/operator-templating
# DON'T MANUALLY EDIT THIS FILE
# =============
name: Rust

on:
push:
branches:
- main
pull_request:

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: '0'
CARGO_PROFILE_DEV_DEBUG: '0'
RUSTFLAGS: "-D warnings -W rust-2021-compatibility"

jobs:

test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/[email protected]
- uses: actions-rs/[email protected]
with:
command: test
- uses: actions-rs/[email protected]
with:
command: clean

rustfmt:
name: Run rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
components: rustfmt
override: true
- uses: actions-rs/[email protected]
with:
command: fmt
args: --all -- --check

doc:
name: Run rustdoc
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
components: rustfmt
override: true
- uses: Swatinem/[email protected]
- uses: actions-rs/[email protected]
with:
command: doc
args: --document-private-items

clippy:
name: Run clippy
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
components: clippy
override: true
# We need this due to: https://github.com/actions-rs/clippy-check/issues/2
- name: Check workflow permissions
id: check_permissions
uses: scherermichael-oss/[email protected]
with:
required-permission: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run clippy action to produce annotations
uses: actions-rs/clippy-check@v1
if: steps.check_permissions.outputs.has-permission
with:
args: --all-targets -- -D warnings
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run clippy manually without annotations
if: ${{ !steps.check_permissions.outputs.has-permission }}
run: cargo clippy --all-targets -- -D warnings

cargo-deny:
name: Run cargo deny
runs-on: ubuntu-latest
strategy:
matrix:
checks:
- advisories
- bans licenses sources

# Prevent sudden announcement of a new advisory from failing ci:
continue-on-error: ${{ matrix.checks == 'advisories' }}

steps:
- uses: actions/[email protected]
- uses: EmbarkStudios/[email protected]
with:
command: check ${{ matrix.checks }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
target/
.idea/
*.iml

Loading