-
Notifications
You must be signed in to change notification settings - Fork 2
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
DDA w/operator component cleanups and improvements #1251
base: main
Are you sure you want to change the base?
Conversation
676da02
to
8355c2d
Compare
@@ -11,7 +11,7 @@ import ( | |||
) | |||
|
|||
// OperatorOutput is used to import the Operator component | |||
type OperatorOutput struct { | |||
type OperatorOutput struct { // nolint:revive, We want to keep the name as <Component>Output |
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.
What is the lint error?
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 was getting this lint error:
Error: components/datadog/operator/component.go:11:6: exported: type name will be used as operator.OperatorOutput by other packages, and that stutters; consider calling this Output (revive)
type OperatorOutput struct {
type OperatorOutput struct { // nolint:revive, We want to keep the name as <Component>Output | ||
components.JSONImporter | ||
|
||
Operator compkubernetes.KubernetesObjRefOutput `pulumi:"operator"` |
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.
Should use json
decorator on outputs
💬 suggestion
Operator compkubernetes.KubernetesObjRefOutput `pulumi:"operator"` | |
Operator compkubernetes.KubernetesObjRefOutput `json:"operator"` |
@@ -18,7 +18,7 @@ type KubernetesObjRefOutput struct { | |||
LabelSelectors map[string]string `json:"labelSelectors"` | |||
} | |||
|
|||
type KubernetesObjectRef struct { | |||
type KubernetesObjectRef struct { // nolint:revive, We want to keep the name as <Component>Output |
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.
❓ question
What is revive complaining about here? The comment seems to be a copy paste from above that does not fit here
What does this PR do?
namespace
and operator image path inagentwithoperatorparams
andoperatorparams
KubernetesObjectRef
to the kubernetes componentKubernetesObjectRef
to the operator component outputWhich scenarios this will impact?
Motivation
Additional Notes