-
Notifications
You must be signed in to change notification settings - Fork 248
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
apis: ApigeeEnvgroupAttachment #3605
apis: ApigeeEnvgroupAttachment #3605
Conversation
} | ||
|
||
// ApigeeEnvgroupAttachmentStatus defines the observed state of ApigeeEnvgroupAttachment | ||
type ApigeeEnvgroupAttachmentStatus struct { |
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.
There should be an observedState.createdAt field?
int64 created_at = 1 [json_name="createdAt"]; |
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.
Let's add this in once we have the direct controller!
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.
Curious why would we wait to add this field? The API is already not compatible with the legacy DCL controller.
046c738
to
c51d2b3
Compare
c51d2b3
to
be0b17a
Compare
Signed-off-by: Alex Pana <[email protected]>
Signed-off-by: Alex Pana <[email protected]>
19b311c
to
f28af05
Compare
return "", fmt.Errorf("reading referenced %s %s: %w", EnvironmentGVK, key, err) | ||
} | ||
// Get external from status.externalRef. This is the most trustworthy place. | ||
actualExternalRef, found, err := unstructured.NestedString(u.Object, "status", "externalRef") |
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 realized this will not work actually, there is no status.externalRef field in the existing ApigeeEnvironment type. I created a PR to define types/refs for ApigeeEnvironment (and ApigeeOrganization), you will need to rebase to use updated code.
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.
Yup that's why I have my TODO lower. There's been chatter about how to fix this in a separate PR (for a different resource). I don't think we should block on this for now. TL;DR - for TF or DCL resources this field will not be populated. But I think we have a path forward.
Can we close on this PR so I can focus on the TODO (and the remaining work items) ?
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.
/approve
/assign @jasonvigil
Defer to Jason for the final vote.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yuwenma The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
94663d7
into
GoogleCloudPlatform:master
Adds direct style APIs for the
ApigeeEnvgroupAttachment
. This is an alpha resource, still running over the TF controller.Next PR:
change envgroup and environment fields to references![ did it in this PR ]