From 8355c2d964502974f8334ddf8a13e36226697abc Mon Sep 17 00:00:00 2001 From: Fanny Jiang Date: Thu, 21 Nov 2024 20:15:51 -0500 Subject: [PATCH] nolint --- components/datadog/apps/dda/datadogagent.go | 3 +++ components/datadog/operator/operator.go | 2 +- components/kubernetes/kubernetes_object_ref.go | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/components/datadog/apps/dda/datadogagent.go b/components/datadog/apps/dda/datadogagent.go index 6048fc4b9..f0a2b4581 100644 --- a/components/datadog/apps/dda/datadogagent.go +++ b/components/datadog/apps/dda/datadogagent.go @@ -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 } diff --git a/components/datadog/operator/operator.go b/components/datadog/operator/operator.go index 76a309ff7..f08bdf195 100644 --- a/components/datadog/operator/operator.go +++ b/components/datadog/operator/operator.go @@ -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 Output components.JSONImporter Operator compkubernetes.KubernetesObjectRef `json:"operator"` } diff --git a/components/kubernetes/kubernetes_object_ref.go b/components/kubernetes/kubernetes_object_ref.go index 184ce25c9..29d79a1e5 100644 --- a/components/kubernetes/kubernetes_object_ref.go +++ b/components/kubernetes/kubernetes_object_ref.go @@ -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 Output components.JSONImporter Namespace string `json:"namespace"` @@ -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 Output pulumi.ResourceState components.Component