Skip to content

Commit

Permalink
Generated commit to update templated files based on rev 9219135 in st…
Browse files Browse the repository at this point in the history
…ackabletech/operator-templating repo. (#485)

Triggered by:
Manual run triggered by: NickLarsenNZ with message [deploy new release templates and assorted lint fixes]
  • Loading branch information
stackable-bot authored Jul 17, 2024
1 parent a15c61a commit 84f8a56
Show file tree
Hide file tree
Showing 17 changed files with 117 additions and 17 deletions.
16 changes: 8 additions & 8 deletions .github/ISSUE_TEMPLATE/new_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ assignees: ''

---

**Which new version of Apache Hive should we support?**
## Which new version of Apache Hive should we support?

Please specify the version, version range or version numbers to support, please also add these to the issue title

**Additional information**
## Additional information

If possible, provide a link to release notes/changelog

**Changes required**
## Changes required

Are there any upstream changes that we need to support?
e.g. new features, changed features, deprecated features etc.

## Implementation checklist


**Implementation checklist**

Please don't change anything in this list.
Not all of these steps are necessary for all versions.
<!--
Please don't change anything in this list.
Not all of these steps are necessary for all versions.
-->

- [ ] Update the Docker image
- [ ] Update documentation to include supported version(s)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Check and Update Getting Started Script

<!--
Make sure to update the link in 'issues/.github/ISSUE_TEMPLATE/pre-release-getting-started-scripts.md'
when you rename this file.
-->

<!--
Replace 'TRACKING_ISSUE' with the applicable release tracking issue number.
-->

Part of <https://github.com/stackabletech/issues/issues/TRACKING_ISSUE>

> [!NOTE]
> During a Stackable release we need to check (and optionally update) the
> getting-started scripts to ensure they still work after product and operator
> updates.
```shell
# Some of the scripts are in a code/ subdirectory
# pushd docs/modules/superset/examples/getting_started
# pushd docs/modules/superset/examples/getting_started/code
pushd $(fd -td getting_started | grep examples); cd code 2>/dev/null || true

# Make a fresh cluster (~12 seconds)
kind delete cluster && kind create cluster
./getting_started.sh stackablectl

# Make a fresh cluster (~12 seconds)
kind delete cluster && kind create cluster
./getting_started.sh helm

popd
```
38 changes: 38 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pre-release-rust-deps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Bump Rust Dependencies for Stackable Release XX.(X)X

<!--
Make sure to update the link in 'issues/.github/ISSUE_TEMPLATE/pre-release-operator-rust-deps.md'
when you rename this file.
-->

<!--
Replace 'TRACKING_ISSUE' with the applicable release tracking issue number.
-->

Part of <https://github.com/stackabletech/issues/issues/TRACKING_ISSUE>

> [!NOTE]
> During a Stackable release we need to update various Rust dependencies before
> entering the final release period to ensure we run the latest versions of
> crates. These bumps also include previously updated and released crates from
> the `operator-rs` repository.
```[tasklist]
### Tasks
- [ ] Bump Rust Dependencies, see below for more details.
- [ ] Add changelog entry stating which important crates were bumped (including the version).
```

> [!NOTE]
> The bumping / updating of Rust dependencies is done in multiple steps:
>
> 1. Update the minimum Version in the root `Cargo.toml` manifest.
> 2. Run the `cargo update` command, which also updates the `Cargo.lock` file.
> 3. Lastly, run `make regenerate-nix` to update the `Cargo.nix` file.
```[tasklist]
### Bump Rust Dependencies
- [ ] Bump `stackable-operator` and friends.
- [ ] Bump `product-version`.
- [ ] Bump all other dependencies.
```
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
key: udeps
cache-all-crates: "true"
- uses: stackabletech/cargo-install-action@cargo-udeps
- run: cargo udeps --workspace
- run: cargo udeps --workspace --all-targets

# This job evaluates the github environment to determine why this action is running and selects the appropriate
# target repository for published Helm charts based on this.
Expand Down
4 changes: 4 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ MD013:
# Number of characters for code blocks
code_block_line_length: 9999

# MD033/no-inline-html
MD033:
allowed_elements: [h1, img, p]

# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
MD024:
# Only check sibling headings
Expand Down
16 changes: 13 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
exclude: ^(Cargo\.nix|crate-hashes\.json|nix/.*)$

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
Expand Down Expand Up @@ -28,11 +30,19 @@ repos:
rev: v0.40.0
hooks:
- id: markdownlint
types: [text]
files: \.md(\.j2)*$

- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
# WARNING (@NickLarsenNZ): Nix users need to install ruff first.
# If you do not, you will need to delete the cached ruff binary shown in the
# error message
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
hooks:
- id: flake8
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format

- repo: local
hooks:
Expand Down
1 change: 1 addition & 0 deletions .readme/partials/borrowed/documentation.md.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- markdownlint-disable MD041 -->
## Documentation

The stable documentation for this operator can be found [here](https://docs.stackable.tech/home/stable/{{operator_docs_slug}}).
Expand Down
2 changes: 1 addition & 1 deletion .readme/partials/borrowed/footer.md.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- markdownlint-disable MD041 -->
## About The Stackable Data Platform

This operator is written and maintained by [Stackable](https://stackable.tech) and it is part of a larger data platform.
Expand All @@ -24,7 +25,6 @@ We develop and test our operators on the following cloud platforms:
* Kubernetes (for an up to date list of supported versions please check the release notes in our [docs](https://docs.stackable.tech))
* Red Hat OpenShift


## Other Operators

These are the operators that are currently part of the Stackable Data Platform:
Expand Down
1 change: 1 addition & 0 deletions .readme/partials/borrowed/header.md.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- markdownlint-disable MD041 -->
<p align="center">
<img width="150" src="./.readme/static/borrowed/Icon_Stackable.svg" alt="Stackable Logo"/>
</p>
Expand Down
2 changes: 1 addition & 1 deletion .readme/partials/borrowed/links.md.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

<!-- markdownlint-disable MD041 -->
{% if no_jenkins_job_badge %}{% else %}![Build Actions Status](https://ci.stackable.tech/buildStatus/icon?job={{operator_name}}%2doperator%2dit%2dnightly&subject=Integration%20Tests){% endif %}
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/stackabletech/{{operator_name}}-operator/graphs/commit-activity)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-green.svg)](https://docs.stackable.tech/home/stable/contributor/index.html)
Expand Down
1 change: 1 addition & 0 deletions .readme/partials/borrowed/overview_blurb.md.j2
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<!-- markdownlint-disable MD041 MD051 -->
It is part of the Stackable Data Platform, a curated selection of the best open source data apps like Apache Kafka, Apache Druid, Trino or Apache Spark, [all](#other-operators) working together seamlessly. Based on Kubernetes, it runs everywhere – [on prem or in the cloud](#supported-platforms).
1 change: 1 addition & 0 deletions .readme/partials/borrowed/related_reading.md.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- markdownlint-disable MD041 MD022 MD032 -->
{%- if related_reading_links -%}
## Related Reading
{% for (text, link) in related_reading_links %}
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<!-- markdownlint-disable MD041 -->
<p align="center">
<img width="150" src="./.readme/static/borrowed/Icon_Stackable.svg" alt="Stackable Logo"/>
</p>

<h1 align="center">Stackable Operator for Apache Hive</h1>

<!-- markdownlint-disable MD041 -->
![Build Actions Status](https://ci.stackable.tech/buildStatus/icon?job=hive%2doperator%2dit%2dnightly&subject=Integration%20Tests)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/stackabletech/hive-operator/graphs/commit-activity)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-green.svg)](https://docs.stackable.tech/home/stable/contributor/index.html)
Expand All @@ -13,6 +15,7 @@

This is a Kubernetes operator to manage [Apache Hive](https://hive.apache.org/).

<!-- markdownlint-disable MD041 MD051 -->
It is part of the Stackable Data Platform, a curated selection of the best open source data apps like Apache Kafka, Apache Druid, Trino or Apache Spark, [all](#other-operators) working together seamlessly. Based on Kubernetes, it runs everywhere – [on prem or in the cloud](#supported-platforms).

## Installation
Expand All @@ -25,6 +28,7 @@ Read on to get started with it, or see it in action in one of our [demos](https:

You can follow this [tutorial](https://docs.stackable.tech/home/stable/hive/getting_started/first_steps).

<!-- markdownlint-disable MD041 -->
## Documentation

The stable documentation for this operator can be found [here](https://docs.stackable.tech/home/stable/hive).
Expand All @@ -34,6 +38,7 @@ The documentation for all Stackable products can be found at [docs.stackable.tec

If you have a question about the Stackable Data Platform contact us via our [homepage](https://stackable.tech/) or ask a public questions in our [Discussions forum](https://github.com/orgs/stackabletech/discussions).

<!-- markdownlint-disable MD041 -->
## About The Stackable Data Platform

This operator is written and maintained by [Stackable](https://stackable.tech) and it is part of a larger data platform.
Expand All @@ -60,7 +65,6 @@ We develop and test our operators on the following cloud platforms:
* Kubernetes (for an up to date list of supported versions please check the release notes in our [docs](https://docs.stackable.tech))
* Red Hat OpenShift


## Other Operators

These are the operators that are currently part of the Stackable Data Platform:
Expand Down Expand Up @@ -98,3 +102,5 @@ This is enforced automatically when you submit a Pull Request where a bot will g
## Support

Get started with the community edition! If you want professional support, [we offer subscription plans and custom licensing](https://stackable.tech/en/plans/).

<!-- markdownlint-disable MD041 MD022 MD032 -->
2 changes: 2 additions & 0 deletions deploy/DO_NOT_EDIT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# DO NOT EDIT

These Helm charts and manifests are automatically generated.
Please do not edit anything except for files explicitly mentioned below in this
directory manually.
Expand Down
3 changes: 2 additions & 1 deletion deploy/helm/hive-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- markdownlint-disable MD034 -->
# Helm Chart for Stackable Operator for Apache Hive

This Helm Chart can be used to install Custom Resource Definitions and the Operator for Apache Hive provided by Stackable.
Expand All @@ -24,4 +25,4 @@ The operator has example requests included in the [`/examples`](https://github.c

## Links

https://github.com/stackabletech/hive-operator
<https://github.com/stackabletech/hive-operator>
2 changes: 1 addition & 1 deletion scripts/ensure_one_trailing_newline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Given the location of a file, trims all trailing blank lines and
places a single one. Used as post-processing step for README rendering.
"""

import re
import unittest

Expand Down Expand Up @@ -34,7 +35,6 @@ def process_lines(lines):


class TestCoreMethods(unittest.TestCase):

def test_trailing_new_line(self):
self.assertTrue(has_trailing_newline("something\n"))
self.assertTrue(has_trailing_newline("\n"))
Expand Down
1 change: 1 addition & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ in pkgs.mkShell rec {
packages = with pkgs; [
## cargo et-al
rustup # this breaks pkg-config if it is in the nativeBuildInputs
cargo-udeps

## Extra dependencies for use in a pure env (nix-shell --pure)
## These are mosuly useful for maintainers of this shell.nix
Expand Down

0 comments on commit 84f8a56

Please sign in to comment.