-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit da176d2
Showing
27 changed files
with
388 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
; This file is for unifying the coding style for different editors and IDEs. | ||
; More information at https://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{y*ml,*json*,*sonnet}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.*sonnet] | ||
# C-style doc comments | ||
block_comment_start = /* | ||
block_comment = * | ||
block_comment_end = */ | ||
|
||
[.gitkeep] | ||
insert_final_newline = false | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: 🐜 Bug report | ||
about: Create a report to help us improve 🔧 | ||
labels: bug | ||
--- | ||
|
||
<!-- Place a general description or your issue here. --> | ||
|
||
## Steps to Reproduce the Problem | ||
<!-- Tell us how to reproduce your issue --> | ||
|
||
1. | ||
1. | ||
1. | ||
|
||
## Actual Behavior | ||
<!-- What did happen as a result of the above? --> | ||
|
||
## Expected Behavior | ||
<!-- What is your expectation of the result? --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: 🚀 Feature request | ||
about: Suggest an idea for this project 💡 | ||
labels: enhancement | ||
--- | ||
|
||
## Context | ||
<!-- | ||
Please let us know what you are trying to do and how you would want to do it differently? | ||
Is it something you currently cannot do? | ||
Is this related to an issue/problem? | ||
--> | ||
|
||
## Alternatives | ||
<!-- | ||
Can you achieve the same result doing it in an alternative way? | ||
Is the alternative considerable? | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: ❓ Help and Support RocketChat Channel | ||
url: https://community.appuio.ch | ||
about: Please ask and answer questions here. 🏥 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- | ||
Thank you for your pull request. Please provide a description above and | ||
review the checklist below. | ||
Contributors guide: ./CONTRIBUTING.md | ||
--> | ||
|
||
## Checklist | ||
<!-- | ||
Remove items that do not apply. For completed items, change [ ] to [x]. | ||
--> | ||
|
||
- [ ] Keep pull requests small so they can be easily reviewed. | ||
- [ ] Update the documentation. | ||
- [ ] Categorize the PR by setting a good title and adding one of the labels: | ||
`bug`, `enhancement`, `documentation`, `change`, `breaking`, `dependency` | ||
as they show up in the changelog | ||
- [ ] Link this PR to related issues. | ||
|
||
<!-- | ||
NOTE: these things are not required to open a PR and can be done afterwards, | ||
while the PR is open. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
{ | ||
"pr_template": "- ${{TITLE}} (#${{NUMBER}})", | ||
"categories": [ | ||
{ | ||
"title": "## 🚀 Features", | ||
"labels": ["enhancement", "feature"] | ||
}, | ||
{ | ||
"title": "## 🛠️ Minor Changes", | ||
"labels": ["change"] | ||
}, | ||
{ | ||
"title": "## 🔎 Breaking Changes", | ||
"labels": ["breaking"] | ||
}, | ||
{ | ||
"title": "## 🐛 Fixes", | ||
"labels": ["bug", "fix"] | ||
}, | ||
{ | ||
"title": "## 📄 Documentation", | ||
"labels": ["documentation"] | ||
}, | ||
{ | ||
"title": "## 🔗 Dependency Updates", | ||
"labels": ["dependency"] | ||
} | ||
], | ||
"template": "${{CATEGORIZED_COUNT}} changes since ${{FROM_TAG}}\n\n${{CHANGELOG}}" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "0" | ||
- name: Build changelog from PRs with labels | ||
id: build_changelog | ||
uses: mikepenz/release-changelog-builder-action@v2 | ||
with: | ||
configuration: ".github/changelog-configuration.json" | ||
# PreReleases still get a changelog, but the next full release gets a diff since the last full release, | ||
# combining possible changelogs of all previous PreReleases in between. | ||
# PreReleases show a partial changelog since last PreRelease. | ||
ignorePreReleases: "${{ !contains(github.ref, '-rc') }}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
body: ${{steps.build_changelog.outputs.changelog}} | ||
prerelease: "${{ contains(github.ref, '-rc') }}" | ||
# Ensure target branch for release is "master" | ||
commit: master | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Pull Request | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
linting: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
command: | ||
- lint_jsonnet | ||
- lint_yaml | ||
- docs-vale | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run ${{ matrix.command }} | ||
run: make ${{ matrix.command }} | ||
editorconfig: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: snow-actions/[email protected] | ||
with: | ||
args: 'check' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
_archive/ | ||
_public/ | ||
.cache/ | ||
helmcharts/ | ||
manifests/ | ||
vendor/ | ||
jsonnetfile.lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extends: default | ||
|
||
rules: | ||
# 80 chars should be enough, but don't fail if a line is longer | ||
line-length: | ||
max: 80 | ||
level: warning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Code of Conduct | ||
|
||
This code repository is part of Project Syn and the code of conduct at | ||
https://syn.tools/syn/about/code_of_conduct.html does apply. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# How to contribute | ||
|
||
This code repository is part of Project Syn and the contribution guide at | ||
https://syn.tools/syn/about/contribution_guide.html does apply. | ||
|
||
Submit Pull Requests at https://github.com/projectsyn/component-rook-ceph/pulls. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Copyright 2021, VSHN AG <[email protected]> | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
* Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
MAKEFLAGS += --warn-undefined-variables | ||
SHELL := bash | ||
.SHELLFLAGS := -eu -o pipefail -c | ||
.DEFAULT_GOAL := all | ||
.DELETE_ON_ERROR: | ||
.SUFFIXES: | ||
|
||
DOCKER_CMD ?= docker | ||
DOCKER_ARGS ?= run --rm --user "$$(id -u)" -v "$${PWD}:/component" --workdir /component | ||
|
||
JSONNET_FILES ?= $(shell find . -type f -not -path './vendor/*' \( -name '*.*jsonnet' -or -name '*.libsonnet' \)) | ||
JSONNETFMT_ARGS ?= --in-place --pad-arrays | ||
JSONNET_IMAGE ?= docker.io/bitnami/jsonnet:latest | ||
JSONNET_DOCKER ?= $(DOCKER_CMD) $(DOCKER_ARGS) --entrypoint=jsonnetfmt $(JSONNET_IMAGE) | ||
|
||
YAML_FILES ?= $(shell find . -type f -not -path './vendor/*' \( -name '*.yaml' -or -name '*.yml' \)) | ||
YAMLLINT_ARGS ?= --no-warnings | ||
YAMLLINT_CONFIG ?= .yamllint.yml | ||
YAMLLINT_IMAGE ?= docker.io/cytopia/yamllint:latest | ||
YAMLLINT_DOCKER ?= $(DOCKER_CMD) $(DOCKER_ARGS) $(YAMLLINT_IMAGE) | ||
|
||
VALE_CMD ?= $(DOCKER_CMD) $(DOCKER_ARGS) --volume "$${PWD}"/docs/modules:/pages vshn/vale:2.1.1 | ||
VALE_ARGS ?= --minAlertLevel=error --config=/pages/ROOT/pages/.vale.ini /pages | ||
|
||
ANTORA_PREVIEW_CMD ?= $(DOCKER_CMD) run --rm --publish 2020:2020 --volume "${PWD}":/antora vshn/antora-preview:2.3.3 --style=syn --antora=docs | ||
|
||
.PHONY: all | ||
all: lint open | ||
|
||
.PHONY: lint | ||
lint: lint_jsonnet lint_yaml docs-vale | ||
|
||
.PHONY: lint_jsonnet | ||
lint_jsonnet: $(JSONNET_FILES) | ||
$(JSONNET_DOCKER) $(JSONNETFMT_ARGS) --test -- $? | ||
|
||
.PHONY: lint_yaml | ||
lint_yaml: $(YAML_FILES) | ||
$(YAMLLINT_DOCKER) -f parsable -c $(YAMLLINT_CONFIG) $(YAMLLINT_ARGS) -- $? | ||
|
||
.PHONY: format | ||
format: format_jsonnet | ||
|
||
.PHONY: format_jsonnet | ||
format_jsonnet: $(JSONNET_FILES) | ||
$(JSONNET_DOCKER) $(JSONNETFMT_ARGS) -- $? | ||
|
||
.PHONY: docs-serve | ||
docs-serve: | ||
$(ANTORA_PREVIEW_CMD) | ||
|
||
.PHONY: docs-vale | ||
docs-vale: | ||
$(VALE_CMD) $(VALE_ARGS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Commodore Component: Rook Ceph | ||
|
||
This is a [Commodore][commodore] Component for Rook Ceph. | ||
|
||
This repository is part of Project Syn. | ||
For documentation on Project Syn and this component, see https://syn.tools. | ||
|
||
## Documentation | ||
|
||
Documentation for this component is written using [Asciidoc][asciidoc] and [Antora][antora]. | ||
It is located in the [docs/](docs) folder. | ||
The [Divio documentation structure](https://documentation.divio.com/) is used to organize its content. | ||
|
||
Run the `make docs-serve` command in the root of the project, and then browse to http://localhost:2020 to see a preview of the current state of the documentation. | ||
|
||
After writing the documentation, please use the `make docs-vale` command and correct any warnings raised by the tool. | ||
|
||
## Contributing and license | ||
|
||
This library is licensed under [BSD-3-Clause](LICENSE). | ||
For information about how to contribute see [CONTRIBUTING](CONTRIBUTING.md). | ||
|
||
[commodore]: https://docs.syn.tools/commodore/index.html | ||
[asciidoc]: https://asciidoctor.org/ | ||
[antora]: https://antora.org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
parameters: | ||
rook_ceph: | ||
=_metadata: {} | ||
namespace: syn-rook-ceph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
parameters: | ||
kapitan: | ||
compile: | ||
- input_paths: | ||
- rook-ceph/component/app.jsonnet | ||
input_type: jsonnet | ||
output_path: apps/ | ||
- input_paths: | ||
- rook-ceph/component/main.jsonnet | ||
input_type: jsonnet | ||
output_path: rook-ceph/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
local kap = import 'lib/kapitan.libjsonnet'; | ||
local inv = kap.inventory(); | ||
local params = inv.parameters.rook_ceph; | ||
local argocd = import 'lib/argocd.libjsonnet'; | ||
|
||
local app = argocd.App('rook-ceph', params.namespace); | ||
|
||
{ | ||
'rook-ceph': app, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// main template for rook-ceph | ||
local kap = import 'lib/kapitan.libjsonnet'; | ||
local kube = import 'lib/kube.libjsonnet'; | ||
local inv = kap.inventory(); | ||
// The hiera parameters for the component | ||
local params = inv.parameters.rook_ceph; | ||
|
||
// Define outputs below | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: rook-ceph | ||
title: Rook Ceph | ||
version: master | ||
start_page: ROOT:index.adoc | ||
nav: | ||
- modules/ROOT/partials/nav.adoc |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
= Rook Ceph | ||
|
||
rook-ceph is a Commodore component to manage Rook Ceph. | ||
|
||
See the xref:references/parameters.adoc[parameters] reference for further details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
= Parameters | ||
|
||
The parent key for all of the following parameters is `rook_ceph`. | ||
|
||
== `namespace` | ||
|
||
[horizontal] | ||
type:: string | ||
default:: `syn-rook-ceph` | ||
|
||
The namespace in which to deploy this component. | ||
|
||
|
||
== Example | ||
|
||
[source,yaml] | ||
---- | ||
namespace: example-namespace | ||
---- |
Empty file.
Oops, something went wrong.