-
Notifications
You must be signed in to change notification settings - Fork 291
feat: unify worflows api, mapper and fuzzer #5304
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
base: master
Are you sure you want to change the base?
Conversation
issue #5303 |
[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.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
// If not provided, data associated with the workflow will not be | ||
// CMEK-encrypted. | ||
// +optional | ||
KMSCryptoKeyRef *refs.KMSCryptoKeyRef `json:"kmsCryptoKeyRef,omitempty"` |
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.
We need to fix the json name otherwise mapper-generator cannot find out the KRM field.
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.
I thought the trick was that we could match by the field name, regardless of the json value. Do we have a standard for this (e.g. is it networkRef or computeNetworkRef)?
} | ||
} | ||
|
||
if normalizer, ok := v.(refs.ExternalNormalizer); ok { |
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.
This is for those refs who implements ExternalNormalizer, we can have another one for the new Ref (which support FromIdentity). Will do in follow up PR.
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.
Which is the ref? I think ExternalNormalizer is the legacy one, and I agree this code is relatively brittle
return nil, fmt.Errorf("error converting to %T: %w", obj, err) | ||
} | ||
|
||
if err := common.NormalizeReferences(ctx, reader, obj, nil); err != nil { |
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.
Yay 👍
BRIEF Change description
Fixes #
WHY do we need this change?
Special notes for your reviewer:
Does this PR add something which needs to be 'release noted'?
Additional documentation e.g., references, usage docs, etc.:
Intended Milestone
Please indicate the intended milestone.
Tests you have done
make ready-pr
to ensure this PR is ready for review.