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

Support generic cr in mesh #750

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jiangpengcheng
Copy link
Member

@jiangpengcheng jiangpengcheng commented May 11, 2024

(If this PR fixes a github issue, please add Fixes #<xyz>.)

Fixes #753

(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)

Master Issue: #

Motivation

Explain here the context, and why you're making that change. What is the problem you're trying to solve.

Modifications

Describe the modifications you've done.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@jiangpengcheng jiangpengcheng requested review from nlu90, freeznet and a team as code owners May 11, 2024 02:35
@github-actions github-actions bot added the doc-required This pr needs a document label May 11, 2024
if len(mesh.Spec.GenericResources) != len(mesh.Status.GenericResourceConditions) {
for resourceName, resourceCondition := range mesh.Status.GenericResourceConditions {
if resourceCondition.Condition == v1alpha1.Orphaned {
// clean up the orphaned generic resource
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't these resources have deletion timestamps as well if this is the case?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, these resources are not refering to a k8s resources directly, but just a condition struct in function-mesh

Copy link
Contributor

@illegalnumbers illegalnumbers left a comment

Choose a reason for hiding this comment

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

Just one question on this. Also, is there a ticket number associated with this change?

@jiangpengcheng
Copy link
Member Author

Just one question on this. Also, is there a ticket number associated with this change?

not yet, I will create one to track

@jiangpengcheng jiangpengcheng force-pushed the support_generic_cr_in_mesh branch from fbb1627 to 59cee79 Compare May 14, 2024 01:08
@freeznet freeznet added this to the 2024-06 v0.22.0 milestone May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-required This pr needs a document
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support generic resource in function-mesh
3 participants