Skip to content

Commit

Permalink
nolint
Browse files Browse the repository at this point in the history
  • Loading branch information
fanny-jiang committed Nov 22, 2024
1 parent 048ebb2 commit 8355c2d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions components/datadog/apps/dda/datadogagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ func K8sAppDefinition(e config.Env, kubeProvider *kubernetes.Provider, namespace
}

ddaRef, err := componentskube.NewKubernetesObjRef(e, baseName, namespace, "DatadogAgent", pulumi.String("").ToStringOutput(), pulumi.String("datadoghq.com/v2alpha1").ToStringOutput(), map[string]string{"app": baseName})
if err != nil {
return nil, nil, err
}

return k8sComponent, ddaRef, nil
}
Expand Down
2 changes: 1 addition & 1 deletion components/datadog/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
components.JSONImporter
Operator compkubernetes.KubernetesObjectRef `json:"operator"`
}
Expand Down
4 changes: 2 additions & 2 deletions components/kubernetes/kubernetes_object_ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/DataDog/test-infra-definitions/components"
)

type KubernetesObjRefOutput struct {
type KubernetesObjRefOutput struct { // nolint:revive, We want to keep the name as <Component>Output
components.JSONImporter

Namespace string `json:"namespace"`
Expand All @@ -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
pulumi.ResourceState
components.Component

Expand Down

0 comments on commit 8355c2d

Please sign in to comment.