feat: Add ambient mode support to profile-controller (clone)#185
feat: Add ambient mode support to profile-controller (clone)#185kimwnasptd wants to merge 2 commits into
Conversation
241d593 to
ae53a68
Compare
|
I'm also getting the @juliusvonkohout do you know how to debug this? |
|
/retest |
1 similar comment
|
/retest |
|
@juliusvonkohout the PR is already based on top of latest EDIT: I closed and re-opened the PR and this seemed to do the trick... |
|
@juliusvonkohout the summary is that @madmecodes wanted to keep the existing manifests intact, and replicated the Do you suggest that we work on factoring out the common manifests in this PR? I'd personally be a bit cautious of whether we want to include this one as well in this PR. But WDYT? |
Yes a minimal kustomize component or if that not possible a minimal kustomize overlay. Otherwise the maintainability degrades a lot. |
|
/retest |
|
The unit tests are now suddenly failing with I see this in some other repos kubernetes-sigs/kueue#7786 but would need to look deeper @juliusvonkohout the requested manifests changes should now be ready for review |
74a7e55 to
b7ae577
Compare
b7ae577 to
8192ad8
Compare
|
Please rebase to master to fix the conflicts. |
|
Also, while we hope to get this in for the next release I am going to put a hold on it so I can cut a release without it in case we don't make it in time for the 1-2 weeks we have before Kubeflow 26.03 But please keep working on it. /hold |
0f554e2 to
bb7952a
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
bb7952a to
ce6e1f5
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds Istio ambient mode support to the profile-controller, enabling it to configure namespaces for ambient mesh with appropriate labels and create waypoint proxy resources. It is a clone of PR #127 with an additional fix to attach the AuthorizationPolicy to the waypoint (L7 traffic) via targetRefs. The PR also upgrades several dependencies including the Go version, istio.io/api, and various golang.org/x/* packages.
Changes:
- Adds ambient mode controller logic: new
ServiceMeshMode,WaypointName,WaypointNamespace,CreateWaypointconfiguration;createWaypoint()andupdateL4AuthorizationPolicy()functions; updatedsetNamespaceLabelsAndServiceMesh()to apply correct Istio labels per mode - Splits the
istioKustomize component intoistio-common(AuthorizationPolicy),istio-sidecar(VirtualService), andistio-ambient(HTTPRoute), and adds a newkubeflow-ambientoverlay - Bumps Go to 1.23,
istio.io/apito v1.28.1, addssigs.k8s.io/gateway-api v0.5.1, and upgrades various transitive dependencies
Reviewed changes
Copilot reviewed 15 out of 18 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
controllers/profile_controller.go |
Core ambient mode logic: waypoint creation, L4 policy, namespace labeling, targetRefs for AuthorizationPolicy, katib-controller principal addition |
controllers/profile_controller_test.go |
Updated tests to use setNamespaceLabelsAndServiceMesh instead of old setNamespaceLabels |
main.go |
New CLI flags for ambient mode config; Gateway API scheme registration |
go.mod |
Go version bump to 1.23, adds gateway-api dependency, bumps istio.io/api and other packages |
go.sum |
Updated checksums for new/bumped dependencies |
Dockerfile |
Go base image bump to 1.23; removes hashicorp copy step |
Makefile |
Contains an unresolved merge conflict marker |
manifests/.../istio-common/ |
Removes VirtualService (moved to istio-sidecar); now contains only AuthorizationPolicy |
manifests/.../istio-sidecar/ |
New component containing VirtualService for sidecar mode |
manifests/.../istio-ambient/ |
New component containing HTTPRoute for ambient mode |
manifests/.../kubeflow-ambient/ |
New overlay for deploying in ambient mode with appropriate params and patches |
manifests/.../kubeflow/kustomization.yaml |
Updated to use new istio-common + istio-sidecar split components |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@juliusvonkohout @thesuperzapper I've rebased on top of the latest main. But, I've sqashed the commits as it was being really painful to keep rebasing. I've kept one commit with the code changes and one with the manifests changes. On the manifests note, @thesuperzapper @alokdangre really great job refactoring the manifests! The changes I did in this PR are the following regarding the manifests:
This should now be ready for review! |
|
I'm also removing the hold as we don't yet have the freeze, so that this can't be included. Let's add it back once/if we know the PR should not be merged /hold cancel |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 15 out of 18 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
f3cdb2e to
e2bffdb
Compare
Signed-off-by: madmecodes <ayushguptadev1@gmail.com> Signed-off-by: Kimonas Sotirchos <kimonas.sotirchos@canonical.com>
e2bffdb to
06e76a2
Compare
Signed-off-by: Kimonas Sotirchos <kimwnasptd@gmail.com>
06e76a2 to
1ce141e
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity. Members may comment |
|
Closing this in favor of the rebased version in #267 picked up by @dariofaccin |
|
@christian-heusel: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This is a clone of the existing PR #127 plus the fixes from #127 (comment), so that the AuthorizationPolicy gets attached to the waypoint (L7 traffic).
The PR also bumps the golang version, as it's needed to use the latest Istio module version (for using
targetRefs).@madmecodes I'm happy to drop this PR, if we resolve the last comment on the other one. Otherwise let's move on with this PR to ensure we close the loop.
/cc @juliusvonkohout @madmecodes