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

mockgcp: add support for TagsTagBinding #1918

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

Conversation

justinsb
Copy link
Collaborator

  • mockgcp: add support for TagsTagBinding
  • chore: capture golden output for some tag tests

Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from justinsb. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Collaborator

@acpana acpana left a comment

Choose a reason for hiding this comment

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

overall this LGTM. Happy to have another look.

err := wait.PollImmediate(1*time.Second, 35*time.Minute, func() (done bool, err error) {
done = true
logger.V(2).Info("Testing to see if resource is ready", "kind", u.GetKind(), "name", u.GetName())
Copy link
Collaborator

Choose a reason for hiding this comment

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

here and below for samples.go -- do we want to disassociate the logs? Thinking that it may be irrelevant for whne running a single test but maybe useful for when running multiple?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What do you mean by "disassociate the logs" ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(If you mean "why did we stop adding the values, it's because we add them to the logger above:

logger := log.FromContext(t.Ctx).WithValues("kind", gvk.Kind, "name", id.Name)

)

mockgcp/mockresourcemanager/tagbindings.go Outdated Show resolved Hide resolved
Comment on lines +21 to +22
# TODO: projectId should work
external: //cloudresourcemanager.googleapis.com/projects/${projectNumber}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I may have lost state on this question, but are we going to make project-${uniquedId} work as a follow on or test that it works as a follow on?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I think we should make it work when we have a direct actuation implementation!

justinsb and others added 2 commits July 16, 2024 14:36
Co-authored-by: alex <8968914+acpana@users.noreply.github.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.

None yet

2 participants