[FLINK-37669][HELM] Add Helm chart unit tests to flink kubernetes operator#971
Conversation
545ca1a to
f8507c6
Compare
|
Why did you refactor the helm chart? Is that necessary for the tests to be added? |
It is not strictly really necessary, but refactoring it would make it easier to write Helm unit tests. If each template file contains only one resource, there will be no need to select the document to test from a multi-document YAML file. |
|
Makes sense, would it be possible to integrate the helm test into the maven build or at least the GitHub CI? |
gyfora
left a comment
There was a problem hiding this comment.
What would be a good way to compare and make sure that the helm chart did not change before and after the refactor?
Have raised PR #974 to add Helm lint and tests to the CI. |
Please include that commit in this PR so we can test together |
|
Could you please rebase on the latest (minor) helm chart changes? Also please provide some comment / proof to show that the helm chart did not change during the refactoring that would speed up the review and we can merge it faster |
f8507c6 to
83766ff
Compare
Sorry for the late response. I have opened another ticket and created a new PR #985 to reorganize the Helm chart directory structure first, I will rebase this PR onto it after it gets merged. |
|
I have merged the other PR, lets rebase this one :) |
a4a58d6 to
346e591
Compare
gyfora
left a comment
There was a problem hiding this comment.
Why are you making so many changes to the helm chart itself instead of just adding the tests?
Also did some refactoring to improve the Helm chart. I will split this PR into two smaller PRs and keep only unit tests in this PR. |
Signed-off-by: Yi Chen <github@chenyicn.net>
Signed-off-by: Yi Chen <github@chenyicn.net>
346e591 to
3f21e0e
Compare
|
I see this CI error: |
Signed-off-by: Yi Chen <github@chenyicn.net>
|
Have pinned external GitHub actions with git hash according to GitHub Actions Policy. |
What is the purpose of the change
(For example: This pull request adds a new feature to periodically create and maintain savepoints through the
FlinkDeploymentcustom resource.)Add Helm chart unit tests to flink kubernetes operator, see helm-unittest.
Brief change log
Reorganize the Helm chart directory.helmignoreto ingore helm unit test filesVerifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
CustomResourceDescriptors: (no)Documentation