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

[KOGITO-9218] - Implement Conditions API and review SonataFlowPlatform #214

Merged
merged 5 commits into from
Aug 9, 2023

Conversation

ricardozanini
Copy link
Member

@ricardozanini ricardozanini commented Aug 2, 2023

Description of the change:
In this PR we did:

  1. Aligned the SonataFlowPlatform status with the Kubernetes Conditions API and best practices. There is only one condition type for the static resource Succeed. If false, we have the field .status.reason to read the flow.
  2. Reviewed the SonataFlowPlatform spec to have two major structures spec.build and spec.devMode. Within these two structures, we can now define specifics for these use cases. I think it's clearer now.
  3. Reviewed the SonataFlowBuild controller to define the ImageTag correctly. Now, OpenShift Build won't spawn two pods after the first workflow build (cc @radtriste)

TODO:

  • - Update documentation

Motivation for the change:
See: https://issues.redhat.com/browse/KOGITO-9218

Checklist

  • Add or Modify a unit test for your change
  • Have you verified that tall the tests are passing?
How to backport a pull request to a different branch?

In order to automatically create a backporting pull request please add one or more labels having the following format backport-<branch-name>, where <branch-name> is the name of the branch where the pull request must be backported to (e.g., backport-7.67.x to backport the original PR to the 7.67.x branch).

NOTE: backporting is an action aiming to move a change (usually a commit) from a branch (usually the main one) to another one, which is generally referring to a still maintained release branch. Keeping it simple: it is about to move a specific change or a set of them from one branch to another.

Once the original pull request is successfully merged, the automated action will create one backporting pull request per each label (with the previous format) that has been added.

If something goes wrong, the author will be notified and at this point a manual backporting is needed.

NOTE: this automated backporting is triggered whenever a pull request on main branch is labeled or closed, but both conditions must be satisfied to get the new PR created.

@ricardozanini ricardozanini changed the title [KOGITO-9218] - Implement Conditions API and review SonataFlowPlatfor… [KOGITO-9218] - Implement Conditions API and review SonataFlowPlatform Aug 2, 2023
@apache apache deleted a comment from kie-ci Aug 2, 2023
@apache apache deleted a comment from kie-ci Aug 3, 2023
@ricardozanini ricardozanini marked this pull request as ready for review August 3, 2023 20:31
@MarianMacik MarianMacik self-requested a review August 4, 2023 12:42
@desmax74 desmax74 self-requested a review August 4, 2023 12:48
Signed-off-by: Ricardo Zanini <[email protected]>
@ricardozanini ricardozanini merged commit 4c0f5af into apache:main Aug 9, 2023
7 checks passed
@ricardozanini ricardozanini deleted the kogito-9218 branch August 9, 2023 19:59
MarianMacik pushed a commit to MarianMacik/kogito-serverless-operator that referenced this pull request Oct 3, 2023
hack/3.11deploy.sh:
  - Simplify file globbing logic and adjust exit status to improve user
feedback.
  - Also add feedback for when no deployment files are found. This scenario
yields exit code 3, avoiding UNIX reserved exit codes.
  - Change "*crd.yaml" to "*_crd.yaml" for consistency with other scripts.

hack/scorecard.sh:
  - Simplify globbing with nullglob so no checks are necessary within the
loops.
  - Assign files to a variable so it's not calculated twice
unnecessarily. This assumes the files won't be changed within the script
or some other program.
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.

4 participants