-
Notifications
You must be signed in to change notification settings - Fork 29
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
Refactor deployment.go code #365
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bshephar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test horizon-operator-build-deploy-kuttl |
574ee2a
to
fe0fd28
Compare
Seems to be an issue with the VolumeMounts:
Failure is related to the missing combined-ca-bundle mount:
|
3d38314
to
5c88425
Compare
/test horizon-operator-build-deploy-kuttl |
b705b6a
to
fa0ce3c
Compare
/test horizon-operator-build-deploy-kuttl |
/test functional |
Hmm, still complains that the secret is missing:
I was hoping we might be able to catch this with the functional test I added. But I might be misunderstanding the mechanism responsible for creating the ca-bundle. It should be created by: So, I'm not too sure why this change results in it being missing.
It's possible the must-gather is being collected too late I guess. Probably easier to find this issue in e2e tests. |
But it seems not to be only a tls issue, also the basic test is not successful, its just not stopping and continue also the tls test
Bot kuttl tests fail
|
8b021a6
to
6c84979
Compare
/test horizon-operator-build-deploy-kuttl |
6c84979
to
adb11d0
Compare
Yeah, there's something else going on. Maybe it's the probes, I should look closer at those probes:
|
adb11d0
to
4b0b057
Compare
/test horizon-operator-build-deploy-kuttl |
/test horizon-operator-build-deploy-kuttl |
/test horizon-operator-build-deploy-kuttl |
This change does some refactoring of the deployment.go code to avoid overuse of string literals and replace with consts. Along with moving excessive code from the main Deployment function into dedicated functions that are easier to test and read. Signed-off-by: Brendan Shephard <[email protected]>
Signed-off-by: Brendan Shephard <[email protected]>
dc2703a
to
8c236c8
Compare
Signed-off-by: Brendan Shephard <[email protected]>
8c236c8
to
7d2cef9
Compare
This change does some refactoring of the deployment.go code to avoid overuse of string literals and replace with consts. Along with moving excessive code from the main Deployment function into dedicated functions that are easier to test and read.
The second commit adds a dedicated
deployment_test.go
file. This will allow us to perform more comprehensive testing of the individual functions without depending on the limited number of scenarios we're running with envtest.