-
Notifications
You must be signed in to change notification settings - Fork 100
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
Add remaining KComponent interfaces and implementations. #66
Add remaining KComponent interfaces and implementations. #66
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
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.
@markusthoemmes: 0 warnings.
In response to this:
Proposed Changes
As per title, this concludes the interface implementations and makes both types conform to the entire
KComponent
interface.Release Note
NONE
/assign @aliok @houshengbo @jcrossley3
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/retest I'd argue the coverage warning is benign. |
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 like it.
pkg/apis/operator/v1alpha1/common.go
Outdated
// KComponentSpec is a common interface for accessing the common spec of all known types. | ||
type KComponentSpec interface { | ||
// GetConfig returns means to override entries in upstream configmaps. | ||
GetConfig() map[string]map[string]string |
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.
nit: i think i'd like to typedef this to ConfigMapData
just to clarify its purpose and reduce the noise.
pkg/apis/operator/v1alpha1/common.go
Outdated
@@ -78,6 +101,21 @@ type CommonSpec struct { | |||
Resources []ResourceRequirementsOverride `json:"resources,omitempty"` | |||
} | |||
|
|||
// GetConfig implements KComponentSpec. | |||
func (c *CommonSpec) GetConfig() map[string]map[string]string { |
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.
ibid
244eea3
to
2e2ed78
Compare
@jcrossley3 implemented your suggestion |
/lgtm |
The following is the coverage report on the affected files.
|
@markusthoemmes: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Proposed Changes
As per title, this concludes the interface implementations and makes both types conform to the entire
KComponent
interface.Release Note
/assign @aliok @houshengbo @jcrossley3