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

Automate adding new operands and generating documentation #2156

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

ryanemerson
Copy link
Contributor

@ryanemerson ryanemerson commented Sep 30, 2024

The Operands defined by the env var INFINISPAN_OPERAND_VERSIONS in config/manager/manager.yaml is now the canonical source of truth for Operands supported in the tag/branch. The testsuite uses a modified version of this array in commons.go, with the required downstream-version, Deprecated and CVE fields added as required by the testsuite. Similarly, all references to Operand versions in the documentation are now generated based upon the current Operator version (defined in ./version.txt) and Operands specified in INFINISPAN_OPERAND_VERSIONS.

@Crumby As the testsuite still loads INFINISPAN_OPERAND_VERSIONS from the environment variables if explicitly defined, I don't think this should have any impact on the downstream tests.

Here are various runs on my fork: https://github.com/ryanemerson/infinispan-operator/actions/workflows/add_operand.yml

You can see on main commits containing different operand versions that were added via the action.

Copy link
Collaborator

@rigazilla rigazilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work @ryanemerson !
I added some comments,
not a priority but it would be also great to have an "automatically generated" notice to all the generated files

.github/workflows/add_operand.yml Outdated Show resolved Hide resolved
@@ -0,0 +1 @@
2.4.5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add some info about this new file in the doc (maybe readme)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I plan to use the contents of this file more in the future, for example this will be used in scripts/ci/install-catalog-source.sh to initiate the VERSION field.

@ryanemerson
Copy link
Contributor Author

not a priority but it would be also great to have an "automatically generated" notice to all the generated files

Great idea! I've added a comment to the generated files with pointers to how/where they're generated.

README.md Outdated Show resolved Hide resolved
Co-authored-by: Vittorio Rigamonti <rigazilla@users.noreply.github.com>
@rigazilla rigazilla merged commit 233f3d5 into infinispan:main Oct 1, 2024
10 checks passed
@rigazilla
Copy link
Collaborator

thanks @ryanemerson !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants