-
Notifications
You must be signed in to change notification settings - Fork 99
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
Consolidate transformers for common CRD fields, registry and config #29
Conversation
/retest |
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.
/lgtm
/approve
/hold
/assign @aliok @houshengbo
I'd love if somebody else could take a look as well. I don't feel quite qualified enough.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jcrossley3, markusthoemmes 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 |
Fixes knative#26 Also factored the common test utilities out of images.go and into a common/testing package. All tests should remain intact -- eventing had a few more than serving -- now all in a single place.
I like seeing the exact list of transformers in the reconciler's transform function.
The following is the coverage report on the affected files.
|
/retest |
if overrideImage := registry.Override[containerName]; overrideImage != "" { | ||
return overrideImage | ||
func getNewImage(registry *v1alpha1.Registry, containerName, parent string) string { | ||
if image, ok := registry.Override[parent+delimiter+containerName]; 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 made the operator CR support /containerName
as valid key when parent is empty. I know it does not seem harmful, but is this what you intentionally to enable?
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.
It wasn't intentional, but I'm not sure it's worth accounting for since /
isn't a valid character in container names. At least, that's how I interpret this: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#path-segment-names
/hold cancel |
Signed-off-by: Matthias Wessendorf <[email protected]>
Fixes #26
Also factored the common test utilities out of images.go and into a common/testing package.
All tests should remain intact -- eventing had a few more than serving -- now all in a single place.