Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions template/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

debug/
target/
**/*.rs.bk
Expand Down
3 changes: 3 additions & 0 deletions template/.envrc.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

# vim: syntax=conf
#
# If you use direnv, you can autoload the nix shell:
Expand Down
3 changes: 3 additions & 0 deletions template/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

nix/** linguist-generated
Cargo.nix linguist-generated
crate-hashes.json linguist-generated
5 changes: 5 additions & 0 deletions template/.github/ISSUE_TEMPLATE/01-normal-issue.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
This file is automatically generated from the templates in stackabletech/operator-templating
DO NOT MANUALLY EDIT THIS FILE
-->

---
name: Normal issue
about: This is just a normal empty issue with a simple checklist
Expand Down
2 changes: 2 additions & 0 deletions template/.github/ISSUE_TEMPLATE/02-bug_report.yml.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE
---
name: "🐛 Bug Report"
description: "If something isn't working as expected 🤔."
Expand Down
2 changes: 2 additions & 0 deletions template/.github/ISSUE_TEMPLATE/config.yml.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE
---
blank_issues_enabled: true
contact_links:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
This file is automatically generated from the templates in stackabletech/operator-templating
DO NOT MANUALLY EDIT THIS FILE
-->

## Check and Update Getting Started Script

<!--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
This file is automatically generated from the templates in stackabletech/operator-templating
DO NOT MANUALLY EDIT THIS FILE
-->

## Bump Rust Dependencies for Stackable Release YY.M.X

<!--
Expand Down
2 changes: 2 additions & 0 deletions template/.github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE
---
self-hosted-runner:
# Ubicloud machines we are using
Expand Down
5 changes: 5 additions & 0 deletions template/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
This file is automatically generated from the templates in stackabletech/operator-templating
DO NOT MANUALLY EDIT THIS FILE
-->

## Description

*Please add a description here. This will become the commit message of the merge request later.*
Expand Down
2 changes: 2 additions & 0 deletions template/.github/workflows/integration-test-custom.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE
---
name: Integration Test (Custom)

Expand Down
2 changes: 2 additions & 0 deletions template/.github/workflows/integration-test-profile.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE
---
name: Integration Test (Profile + Schedule)

Expand Down
2 changes: 2 additions & 0 deletions template/.github/workflows/pr_prek.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE
---
name: prek

Expand Down
3 changes: 3 additions & 0 deletions template/.gitignore.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

tests/_work/
debug/
target/
Expand Down
2 changes: 2 additions & 0 deletions template/.hadolint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE
---
ignored:
# Warning: Use the -y switch to avoid manual input dnf install -y <package>
Expand Down
2 changes: 2 additions & 0 deletions template/.markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE
---
# All defaults or options can be checked here:
# https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml
Expand Down
2 changes: 2 additions & 0 deletions template/.pre-commit-config.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE
---
exclude: ^(Cargo\.nix|crate-hashes\.json|nix/.*)$

Expand Down
3 changes: 3 additions & 0 deletions template/.pylintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

[MESSAGES CONTROL]

# These rules are for missing docstrings which doesn't matter much for most of our simple scripts
Expand Down
9 changes: 9 additions & 0 deletions template/.vscode/DO_NOT_EDIT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# DO NOT EDIT

The files in this directory are automatically generated from the templates in stackabletech/operator-templating

DO NOT MANUALLY EDIT THESE FILES

> [!NOTE]
> This file only exists because VS Code currently doesn't support JSONC files.
> See <https://github.com/microsoft/vscode/issues/269824>
2 changes: 2 additions & 0 deletions template/.yamllint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE
---
extends: default

Expand Down
3 changes: 3 additions & 0 deletions template/Tiltfile.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

# Load the metadata first, so that we immediately get access to the operator name
meta = read_json('nix/meta.json')
operator_name = meta['operator']['name']
Expand Down
5 changes: 4 additions & 1 deletion template/deny.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

# This file is the source of truth for all our repos!
# This includes repos not templated by operator-templating, please copy/paste the file for this repos.

#
# TIP: Use "cargo deny check" to check if everything is fine

[graph]
Expand Down
3 changes: 3 additions & 0 deletions template/nix/sources.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion template/rust-toolchain.toml.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# DO NOT EDIT, this file is generated by operator-templating
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

[toolchain]
channel = "{[ rust_version }]"
profile = "default"
3 changes: 3 additions & 0 deletions template/rustfmt.toml.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

# This file includes unstable features, so you need to run "cargo +nightly fmt" to format your code.
# It's also ok to use the stable toolchain by simple running "cargo fmt", but using the nightly formatter is preferred.

Expand Down
4 changes: 4 additions & 0 deletions template/scripts/auto-retry-tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3

# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

"""
Automated test suite runner with intelligent retry logic for flaky integration tests.

Expand Down
4 changes: 4 additions & 0 deletions template/scripts/docs_templating.sh.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env bash

# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

set -euo pipefail

# Reads a file with variables to insert into templates, and templates all .*.j2 files
Expand Down
3 changes: 3 additions & 0 deletions template/scripts/ensure_one_trailing_newline.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

"""
Given the location of a file, trims all trailing blank lines and
places a single one. Used as post-processing step for README rendering.
Expand Down
4 changes: 4 additions & 0 deletions template/scripts/render_readme.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env bash

# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

set -euo pipefail

# Check if jinja2 is there
Expand Down
3 changes: 3 additions & 0 deletions template/scripts/run-tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env python
# vim: filetype=python syntax=python tabstop=4 expandtab

# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

import argparse
import collections.abc
import contextlib
Expand Down
3 changes: 3 additions & 0 deletions template/scripts/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env bash

# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

./scripts/run-tests "$@"
3 changes: 3 additions & 0 deletions template/shell.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE

let
self = import ./. {};
inherit (self) sources pkgs meta;
Expand Down
5 changes: 5 additions & 0 deletions template/tests/README-templating.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
This file is automatically generated from the templates in stackabletech/operator-templating
DO NOT MANUALLY EDIT THIS FILE
-->

# Test Scenario Templating

## Introduction
Expand Down
2 changes: 2 additions & 0 deletions template/tests/kuttl-test.yaml.jinja2
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE
---
apiVersion: kuttl.dev/v1beta1
kind: TestSuite
Expand Down
2 changes: 2 additions & 0 deletions template/tests/templates/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file is automatically generated from the templates in stackabletech/operator-templating
# DO NOT MANUALLY EDIT THIS FILE