Skip to content

Conversation

@michaelawyu
Copy link
Collaborator

@michaelawyu michaelawyu commented Apr 30, 2025

Description of your changes

This PR enables the new CR-based envelope experience and removed the support for configMap wrapper

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

WIP

Special notes for your reviewer

This PR is a WIP; it will be submitted for review when completed.

Signed-off-by: michaelawyu <chenyu1@microsoft.com>
Signed-off-by: michaelawyu <chenyu1@microsoft.com>
@codecov
Copy link

codecov bot commented Apr 30, 2025

Ryan Zhang and others added 2 commits April 30, 2025 19:16
@ryanzhang-oss ryanzhang-oss force-pushed the feat/enable-new-envelopes branch 4 times, most recently from e360956 to c93b1a4 Compare May 10, 2025 01:40
@ryanzhang-oss ryanzhang-oss marked this pull request as ready for review May 12, 2025 22:05
@ryanzhang-oss ryanzhang-oss force-pushed the feat/enable-new-envelopes branch 7 times, most recently from 8788261 to f01739d Compare May 14, 2025 21:37
@ryanzhang-oss ryanzhang-oss changed the title feat: enable new CR-based envelope experience [WIP] feat: enable new CR-based envelope experience May 14, 2025
Signed-off-by: Ryan Zhang <zhangryan@microsoft.com>
@ryanzhang-oss ryanzhang-oss force-pushed the feat/enable-new-envelopes branch from f01739d to 8dc5d94 Compare May 14, 2025 22:58
Ryan Zhang and others added 2 commits May 14, 2025 16:36
Signed-off-by: Ryan Zhang <zhangryan@microsoft.com>
Copy link
Collaborator Author

@michaelawyu michaelawyu left a comment

Choose a reason for hiding this comment

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

Just some minor nits; otherwise LGTM ;)

rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"] No newline at end of file
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi Ryan! Just a nit: here needs a new line I assume.

namespace: ops
admissionReviewVersions: ["v1"]
sideEffects: None
timeoutSeconds: 10
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same new line nit.

rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"] No newline at end of file
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The empty line nit stuff.

"k8s.io/apimachinery/pkg/util/intstr"
)

const (
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi Ryan! We are removing these as the values in the v1 pkg are not used, right? Do we want to move onto v1 one day?

Copy link
Contributor

@ryanzhang-oss ryanzhang-oss May 15, 2025

Choose a reason for hiding this comment

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

no, I think we can keep it in v1beta1 forever as v1 always follows v1beta1

r.AddGroupKind(ClusterResourceOverrideGK)
r.AddGroupKind(ClusterResourceOverrideSnapshotGK)
r.AddGroupKind(ResourceOverrideGK)
r.AddGroupKind(ResourceOverrideSnapshotGK)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, we must remember to update this list for every new API types now

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, I wish we used a sub group for the envelopType

@michaelawyu
Copy link
Collaborator Author

I will do some upgrade compatibility tests to verify the upgrade behavior.

@michaelawyu
Copy link
Collaborator Author

michaelawyu commented May 15, 2025

It seems that the E2E's still failing; let me fix that, along with the other minor issues I reviewed earlier.

michaelawyu and others added 3 commits May 15, 2025 15:35
Signed-off-by: Ryan Zhang <zhangryan@microsoft.com>
Signed-off-by: michaelawyu <chenyu1@microsoft.com>
…lawyu/kubefleet into feat/enable-new-envelopes

Signed-off-by: michaelawyu <chenyu1@microsoft.com>
Signed-off-by: michaelawyu <chenyu1@microsoft.com>
@ryanzhang-oss ryanzhang-oss merged commit 491abff into kubefleet-dev:main May 15, 2025
16 of 17 checks passed
ryanzhang-oss pushed a commit to ryanzhang-oss/kubefleet that referenced this pull request May 20, 2025
Signed-off-by: michaelawyu <chenyu1@microsoft.com>
Signed-off-by: Ryan Zhang <zhangryan@microsoft.com>
Co-authored-by: Ryan Zhang <zhangryan@microsoft.com>
Signed-off-by: Ryan Zhang <zhangryan@microsoft.com>
ryanzhang-oss pushed a commit to ryanzhang-oss/kubefleet that referenced this pull request May 20, 2025
Signed-off-by: michaelawyu <chenyu1@microsoft.com>
Signed-off-by: Ryan Zhang <zhangryan@microsoft.com>
Co-authored-by: Ryan Zhang <zhangryan@microsoft.com>
Signed-off-by: Ryan Zhang <zhangryan@microsoft.com>
audrastump pushed a commit to audrastump/kubefleet that referenced this pull request Aug 20, 2025
Signed-off-by: michaelawyu <chenyu1@microsoft.com>
Signed-off-by: Ryan Zhang <zhangryan@microsoft.com>
Co-authored-by: Ryan Zhang <zhangryan@microsoft.com>
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.

2 participants