Skip to content

Conversation

@TheBigLee
Copy link
Member

@TheBigLee TheBigLee commented Nov 19, 2025

Summary

  • This PR adds a new comp function to create an extra haproxy config for the metrics backends for the SPKS redis service

Checklist

  • Update tests.
  • Link this PR to related issues.
  • Merge with /merge comment.

Component PR: vshn/component-appcat#1007

@TheBigLee TheBigLee added enhancement New feature or request minor and removed enhancement New feature or request labels Nov 19, 2025
@TheBigLee TheBigLee requested review from a team, Kidswiss, mdnix, mikeshootzz and zugao and removed request for a team November 19, 2025 13:00
@github-actions
Copy link
Contributor

return runtime.NewFatalResult(fmt.Errorf("cannot parse release values from desired release: %w", err))
}

haproxyExtraConfig := fmt.Sprintf(`
Copy link
Contributor

Choose a reason for hiding this comment

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

Couldn't we just do this with a string format PnT patch? https://docs.crossplane.io/latest/guides/function-patch-and-transform/#string-format

Copy link
Member Author

@TheBigLee TheBigLee Nov 21, 2025

Choose a reason for hiding this comment

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

Yes but that would result in a huge unreadable patch. Would you prefer doing it with pnt patch?

Copy link
Contributor

@Kidswiss Kidswiss Nov 21, 2025

Choose a reason for hiding this comment

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

We could build the patch via Jsonnet, so only when it's rendered out it's not readable.

I would prefer to minimize the amount of comp functions for SPKS and only use it if there's no other way. Because the comp functions add another layer of complexity.

But let's see what @mdnix and @zugao think.

Copy link
Collaborator

@zugao zugao Nov 24, 2025

Choose a reason for hiding this comment

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

I thought we decided on that, we use comp-functions for SPKS only when necessary, we keep PnT as base as it used to be!

Update: One thing that I am investigating with our comp function architecture is to get out all the code that we can be configured either with project syn or another configuration manager such as KCL. So this approach here might be true for our appcat comp-functions as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok. Thanks for the input. I'll close this PR as I've integrated this logic directly into PnT.

@TheBigLee TheBigLee closed this Nov 25, 2025
@TheBigLee TheBigLee deleted the feat/spks_redis_haproxy_metrics branch November 25, 2025 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants