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

Add ServiceMonitor resources for both HiveMQ Platform Operator Helm charts and HiveMQ Platform Helm charts #399

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

afalhambra-hivemq
Copy link
Contributor

@afalhambra-hivemq afalhambra-hivemq commented Nov 27, 2024

https://hivemq.kanbanize.com/ctrl_board/22/cards/27143/details/

Edit: Haven't added the new matrix tags to the branch protection rules, as I would like to get first the approval. Will include that and re-trigger the verify job afterwards.

@afalhambra-hivemq afalhambra-hivemq self-assigned this Nov 27, 2024
@cla-bot cla-bot bot added the cla-signed label Nov 27, 2024
@afalhambra-hivemq afalhambra-hivemq force-pushed the feature/27143-create-service-monitor branch 3 times, most recently from 32bf2e7 to 057b37a Compare November 27, 2024 16:20
@@ -349,8 +358,8 @@ tests:
runAsUser: 185
asserts:
- failedTemplate:
errorMessage: |-
`runAsNonRoot` is set to `false` but `runAsUser` is not set to `0` (root)
errorPattern: |-
Copy link
Contributor

Choose a reason for hiding this comment

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

Stupid question: Is there a reason to use |- here? I've seen that you refactored a couple of the errorPattern into a single line and the majority seems to be like that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not a stupid question!
The only reason to use |- is because this unittest plugin does not work when the error message to match starts with some special character like ``` in this case. If you see, the |- is only applied to those starting with such character. It will fail with:

 FAIL   charts/hivemq-platform-operator/tests/hivemq_operator_deployment_test.yaml
        - Execution Error: 
                yaml: line 362: found character that cannot start any token

Actually, I'm going to raise this an issue on the Helm unittest plugin.
Another option would be to change the error message in our case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@mhofsche mhofsche left a comment

Choose a reason for hiding this comment

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

review of the values.yaml only

charts/hivemq-platform-operator/values.yaml Outdated Show resolved Hide resolved
charts/hivemq-platform-operator/values.yaml Outdated Show resolved Hide resolved
charts/hivemq-platform-operator/values.yaml Outdated Show resolved Hide resolved
charts/hivemq-platform-operator/values.yaml Outdated Show resolved Hide resolved
charts/hivemq-platform-operator/values.yaml Outdated Show resolved Hide resolved
charts/hivemq-platform-operator/values.yaml Outdated Show resolved Hide resolved
charts/hivemq-platform-operator/values.yaml Show resolved Hide resolved
charts/hivemq-platform-operator/values.yaml Outdated Show resolved Hide resolved
@afalhambra-hivemq afalhambra-hivemq force-pushed the feature/27143-create-service-monitor branch 2 times, most recently from 82562b2 to 6562192 Compare November 29, 2024 16:24
@afalhambra-hivemq afalhambra-hivemq force-pushed the feature/27143-create-service-monitor branch from 6562192 to b1b487f Compare November 29, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants