Skip to content

AssetId support for adapters#8

Open
sondre81 wants to merge 1 commit into
mainfrom
FLA-191-rework-asset-support
Open

AssetId support for adapters#8
sondre81 wants to merge 1 commit into
mainfrom
FLA-191-rework-asset-support

Conversation

@sondre81
Copy link
Copy Markdown
Contributor

@sondre81 sondre81 commented May 5, 2026

Added support for assetId in adapters (FLA-191). Had to rework (FLA-839) as there became a lot of merge conflicts after stalling previous PR.

Made changes to GH Actions so it's easier to deploy and test in test environment after PR is completed.

Work done:

  • updated readme
  • updated to use LdapNameGeneratorUtil
  • added and made tests for LdapNameGeneratorUtil
  • added adapter dependent resource test
  • added tests for adapter
  • added assets to fint adapter
  • updated GH Actions
  • added Dependabot

- updated readme
- updated to use LdapNameGeneratorUtil
- added and made tests for LdapNameGeneratorUtil
- added adapter dependent resource test
- added tests for adapter
- added assets to fint adapter
- updated ghactions
- added dependabot
@sondre81 sondre81 self-assigned this May 5, 2026
Copy link
Copy Markdown

@sivertheisholt sivertheisholt left a comment

Choose a reason for hiding this comment

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

Good work, I dont know this operator that much, so left a few comments regarding assets/assetIds that im confused on. Should maybe also get @murillio4 to look over.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing:

Azure/k8s-artifact-substitute@v2

Without the azure/k8s-deploy@v6 wont work

Copy link
Copy Markdown

@murillio4 murillio4 May 6, 2026

Choose a reason for hiding this comment

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

Wrong. Finterator does not use FlaisApplication which does not work with newer versions of azure/k8s-deploy. azure/k8s-deploy@v6 will work with normal k8s Deployments, which finterator does use.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Oh yes, forgot that, my bad

private String orgId;
private String note;
private List<String> components = Collections.emptyList();
private List<String> assets = Collections.emptyList();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I see the use of assets and assetIds. What is the diff?

If they are the same, it seems inconsistent?

.build();
primary.getSpec().getComponents()
.forEach(component -> adapter.addComponent(String.format("ou=%s,ou=components,o=fint", component)));
primary.getSpec().getAssets()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

New created adapter gets values in assetIds, but existing adapter in assets?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My bad on that, just pure inconsistency. Mattis and I had a conversation about the naming, and i messed that up in the confusion around it. Will make a decision to use either asset or assetIds. assetIds would make it more verbose, but asset looks cleaner in the setup.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think we should use assets and not assetIds

@sondre81 sondre81 marked this pull request as ready for review May 6, 2026 12:37
Copy link
Copy Markdown

@murillio4 murillio4 left a comment

Choose a reason for hiding this comment

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

Nice work! 🙌

Copy link
Copy Markdown

@murillio4 murillio4 May 6, 2026

Choose a reason for hiding this comment

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

Wrong. Finterator does not use FlaisApplication which does not work with newer versions of azure/k8s-deploy. azure/k8s-deploy@v6 will work with normal k8s Deployments, which finterator does use.

Comment thread .github/dependabot.yaml
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You should add dependabot config for Docker and Gradle/Maven as well

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think using a naming convention similar to whats purposed in kafkarator PR 7 is better.

I think the method is more appropriate because its simpler, and reproducible. Especially since it uses a hash instead of using RandomStringUtils.randomAlphabetic.

.build();
primary.getSpec().getComponents()
.forEach(component -> adapter.addComponent(String.format("ou=%s,ou=components,o=fint", component)));
primary.getSpec().getAssets()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think we should use assets and not assetIds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants