Skip to content

Conversation

@teeohhem
Copy link
Contributor

Fixes: HDX-2198

@changeset-bot
Copy link

changeset-bot bot commented Aug 12, 2025

🦋 Changeset detected

Latest commit: eb5384a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
helm-charts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Collaborator

@dhable dhable left a comment

Choose a reason for hiding this comment

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

Just a quick question on the unit tests

clickhouse:
enabled: true
asserts:
- documentIndex: 0
Copy link
Collaborator

@dhable dhable Aug 12, 2025

Choose a reason for hiding this comment

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

documentIndex works as long as we don't change the ordering of the documents in the file. Would a better pattern be to use documentSelector?

  - it: should not include imagePullSecrets when not configured
    set:
      clickhouse:
        enabled: true
    documentSelector:
      path: kind
      value: Deployment
    asserts:
      - isNull:
          path: spec.template.spec.imagePullSecrets

It looks like we're using documentIndex in the code so this matches. Just wondering if that's the pattern we want to use? It's more important when using the isNull check because a surprise reordering could still have a passing test because the test is working on a document that it didn't expect and thus gives a false positive - the key is missing because it's the wrong document, not because the template did the right thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

documentSelector is a better approach (The index reference already bit me once when I resolved a merge conflict with two different tests). I propose a widespread change / another ticket.

Copy link
Collaborator

@dhable dhable left a comment

Choose a reason for hiding this comment

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

I'm fine tweaking the unit tests in another ticket. :shipit:

@kodiakhq kodiakhq bot merged commit 862b81f into main Aug 12, 2025
3 checks passed
@kodiakhq kodiakhq bot deleted the tom/add-image-pull-secrets branch August 12, 2025 16:35
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