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

init: azure rbac aks service discovery #1311

Merged
merged 12 commits into from
Aug 19, 2024

Conversation

girdharshubham
Copy link
Contributor

@girdharshubham girdharshubham commented Aug 12, 2024

Checklist

  • Documentation
  • Tests
  • Core

@girdharshubham girdharshubham force-pushed the azure-rbac-aks-discovery branch 2 times, most recently from 56f0943 to 29cc384 Compare August 13, 2024 10:20
Copy link
Member

@johanandren johanandren left a comment

Choose a reason for hiding this comment

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

Looking good, added some feedback

akka-discovery-azure-api/src/main/resources/reference.conf Outdated Show resolved Hide resolved
akka-discovery-azure-api/src/main/resources/reference.conf Outdated Show resolved Hide resolved
akka-discovery-azure-api/src/main/resources/reference.conf Outdated Show resolved Hide resolved
port = maybePort,
address = Some(InetAddress.getByName(ip))
)
}
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice if you could split this huge for comprehension into somewhat more digestible pieces, not exactly sure how, maybe some helper methods like runningPods(...), portFor(...) to get a bit higher level operations you can then use in a for comprehension?

* INTERNAL API
*/
@InternalApi private[azureapi] object JsonFormat extends SprayJsonSupport with DefaultJsonProtocol {
// If adding more formats here, remember to also add in META-INF/native-image reflect config
Copy link
Member

Choose a reason for hiding this comment

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

Not entirely sure we need to support native image with this module, but if we should, there should be a META-INF/native-image/com.lightbend.akka.management.akka-discovery-azure-api/reflect-config.json listing the model classes. You can look at the corresponding reflect-config.json in lease-kubernetes for an example.

jsonFormatN inspects them using reflection so must explicitly be made available for native image/graal through such config.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I plan on doing native image later in a different PR.

akka-discovery-azure-api/src/main/resources/reference.conf Outdated Show resolved Hide resolved
Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

Looking good

build.sbt Outdated Show resolved Hide resolved
@girdharshubham girdharshubham force-pushed the azure-rbac-aks-discovery branch 2 times, most recently from b29c597 to cd52a08 Compare August 13, 2024 15:44
@girdharshubham girdharshubham marked this pull request as ready for review August 13, 2024 15:44
@girdharshubham girdharshubham force-pushed the azure-rbac-aks-discovery branch from cd52a08 to 2d02c43 Compare August 13, 2024 15:49
@girdharshubham girdharshubham force-pushed the azure-rbac-aks-discovery branch from 2d02c43 to d304117 Compare August 13, 2024 15:54
@girdharshubham girdharshubham changed the title --wip-- init: azure rbac aks service discovery init: azure rbac aks service discovery Aug 13, 2024
Copy link

@mblund mblund left a comment

Choose a reason for hiding this comment

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

I read through the PR changes and gave some comments on the code.
Would probably have some way of testing this as well.

}
}

import system.dispatcher
Copy link

@mblund mblund Aug 13, 2024

Choose a reason for hiding this comment

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

Should probably be another dispatcher

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure about it 🤔

@girdharshubham girdharshubham force-pushed the azure-rbac-aks-discovery branch from 15839b5 to 76743d7 Compare August 14, 2024 12:41
add: License file
refactor: general clean up
@girdharshubham girdharshubham force-pushed the azure-rbac-aks-discovery branch from 76743d7 to 148202e Compare August 15, 2024 12:52
Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

looking good, just something minor...

build.sbt Outdated Show resolved Hide resolved
Co-authored-by: Johan Andrén <[email protected]>
Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

LGTM, great work!

Copy link
Member

@johanandren johanandren left a comment

Choose a reason for hiding this comment

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

LGTM, great work @girdharshubham

@johanandren johanandren merged commit 6d28eae into akka:main Aug 19, 2024
14 checks passed
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.

5 participants