-
Notifications
You must be signed in to change notification settings - Fork 26
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
Container Instances - Use of Private IPS #90
Conversation
src/main/resources/com/microsoft/jenkins/containeragents/aci/AciContainerTemplate/config.jelly
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/jenkins/containeragents/aci/AciContainerTemplate.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appears to be missing setting the variable?
I would expect an update in AciService
, see
Line 64 in 9ca34d6
variables.put("jenkinsInstance", |
Thanks @timja for reviewing it. I will recheck the AciService. Thanks for your hint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of minor comments can you confirm you've tested this and it's working for you?
src/main/resources/com/microsoft/jenkins/containeragents/aci/AciContainerTemplate/config.jelly
Outdated
Show resolved
Hide resolved
src/main/resources/com/microsoft/jenkins/containeragents/aci/AciContainerTemplate/config.jelly
Outdated
Show resolved
Hide resolved
81107df
to
846aafb
Compare
@timja thank you for your review. I found that the config was not saved correctly (I fixed it), so my previous tests are invalid. Now I found out that the container needs a network profile. So I have to investigate the azure documentation how to do it in the best way. I think I will have to do more changes, therefore, I put this PR in draft again. |
I tested the changes manually for both cases (public ip address and private ip address). A known limitation is that vnet and subnet must be in the resource group that is defined in the above field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to see a Configuration as code test showing that it works there.
This is looking really close, the blockers are in the src/main/resources/com/microsoft/jenkins/containeragents/aci/AciContainerTemplate/config.jelly file.
I haven't tested this myself interactively, have you? I see you posted after I started my review 👍
src/main/java/com/microsoft/jenkins/containeragents/builders/AciDeploymentTemplateBuilder.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/jenkins/containeragents/builders/AciDeploymentTemplateBuilder.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/jenkins/containeragents/builders/AciDeploymentTemplateBuilder.java
Show resolved
Hide resolved
src/main/java/com/microsoft/jenkins/containeragents/builders/AciDeploymentTemplateBuilder.java
Outdated
Show resolved
Hide resolved
src/main/resources/com/microsoft/jenkins/containeragents/aci/AciContainerTemplate/config.jelly
Outdated
Show resolved
Hide resolved
src/main/resources/com/microsoft/jenkins/containeragents/aci/AciContainerTemplate/config.jelly
Outdated
Show resolved
Hide resolved
...st/java/com/microsoft/jenkins/containeragents/builders/AciDeploymentTemplateBuilderTest.java
Outdated
Show resolved
Hide resolved
e56fa02
to
56c4d1f
Compare
Review Feedback
Review Feedback
Review Feedback
…oxes for virtual network information
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
result of code review
56c4d1f
to
f9fe4ca
Compare
I started with a JCasC test, but I fell in a rabbit hole because this plugin needs a dependency update. If it is OK for you, I will hand it later after a dependency update. |
I have a dependency update ready to go locally just need one component released, should have it up tonight / tomorrow morning UTC |
PR is #92, I've tested it locally and the tests pass, bom should be being released atm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
much better, infinite loop is the main blocker but the rest should be really quick
src/main/java/com/microsoft/jenkins/containeragents/aci/AciCleanTask.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/jenkins/containeragents/aci/AciService.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/jenkins/containeragents/aci/AciService.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/jenkins/containeragents/util/CustomJenkinsFacade.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/jenkins/containeragents/util/CustomJenkinsFacade.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/jenkins/containeragents/builders/AciDeploymentTemplateBuilder.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/jenkins/containeragents/builders/AciDeploymentTemplateBuilder.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/jenkins/containeragents/util/CustomJenkinsFacade.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non blocking comments
src/main/resources/com/microsoft/jenkins/containeragents/aci/networkProfileSnippet.json
Show resolved
Hide resolved
...es/com/microsoft/jenkins/containeragents/aci/AciContainerTemplate/help-privateIpAddress.html
Show resolved
Hide resolved
I added a minimal JCasC test for my feature. I hope that is enough for the first. Furthermore, I will open new issues for the non-blocking stuff. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final nits, the configuration as code plugin is in the plugin bom so you don't need to specify a version https://github.com/jenkinsci/bom
src/main/java/com/microsoft/jenkins/containeragents/util/InstanceIdentityFacade.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm you've re-tested this with the changes made during review?
I checked the UI saving etc but haven't run an actual test, all looks good though
This reverts commit 052b1a7.
np I cancelled the release |
Thank you 🙏 |
Based on @jplorier PR #60 I fixed the checkstyle issues and compilation errors.
Fixed #55
Fixes #25
Fixes #60