Skip to content
Merged
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 .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 .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 .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
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/01-normal-issue.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
# 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
title: ''
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/02-bug_report.yml
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 .github/ISSUE_TEMPLATE/config.yml
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
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pre-release-rust-deps.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
-->

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

<!--
Expand Down
2 changes: 2 additions & 0 deletions .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 .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 .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 .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 .github/workflows/pr_prek.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: prek

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
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 .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 .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 .pre-commit-config.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
---
exclude: ^(Cargo\.nix|crate-hashes\.json|nix/.*)$

Expand Down
3 changes: 3 additions & 0 deletions .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 .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 .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 Tiltfile
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 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
19 changes: 19 additions & 0 deletions deploy/helm/opa-operator/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{ .Chart.Name }} {{ .Chart.AppVersion }} is installed in namespace {{ .Release.Namespace }}.

This installs the Stackable operator for OpenPolicyAgent only.

Find more information in our documentation:

* https://docs.stackable.tech/home/stable/opa/
* https://hub.stackable.tech/components/opa
{{ if .Values.maintenance.customResourceDefinitions.maintain }}
The operator installs and updates its own CustomResourceDefinitions when it starts, so the chart
does not ship them. They appear shortly after the pod becomes ready.
{{- else }}
WARNING: maintenance.customResourceDefinitions.maintain is false, so this operator will not install
its CustomResourceDefinitions and the chart does not ship them either. Apply them yourself before
creating any resources managed by this operator, otherwise the API server will reject them.
{{- end }}

Learn more at https://stackable.tech
Thank you for using Stackable!
3 changes: 3 additions & 0 deletions 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 rust-toolchain.toml
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 = "1.97.1"
profile = "default"
3 changes: 3 additions & 0 deletions rustfmt.toml
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 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 scripts/docs_templating.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

# Reads a file with variables to insert into templates, and templates all .*.j2 files
Expand Down
3 changes: 3 additions & 0 deletions 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 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 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 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 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 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 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 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
Loading