Skip to content
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

Merged
merged 18 commits into from
Dec 12, 2024

Conversation

fanny-jiang
Copy link
Contributor

@fanny-jiang fanny-jiang commented Nov 19, 2024

What does this PR do?

  • Remove hardcoded values such as namespace and operator image path in agentwithoperatorparams and operatorparams
  • Move KubernetesObjectRef to the kubernetes component
  • Add KubernetesObjectRef to the operator component output
  • Add DDAConfig param option for the datadogagent app component

Which scenarios this will impact?

Motivation

Additional Notes

components/datadog/agent/kubernetes_operator.go Outdated Show resolved Hide resolved
components/datadog/apps/dda/datadogagent.go Outdated Show resolved Hide resolved
@fanny-jiang fanny-jiang force-pushed the fanny/operator-namespaces branch from 676da02 to 8355c2d Compare November 22, 2024 01:16
@@ -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
Copy link
Contributor

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?

Copy link
Contributor Author

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 {

@fanny-jiang fanny-jiang changed the title DDA w/operator component cleanups DDA w/operator component cleanups and improvements Dec 9, 2024
components/datadog/operator/component.go Outdated Show resolved Hide resolved
components/kubernetes/kubernetes_object_ref.go Outdated Show resolved Hide resolved
@fanny-jiang
Copy link
Contributor Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented Dec 12, 2024

Devflow running: /merge

View all feedbacks in Devflow UI.


2024-12-12 15:21:23 UTC ℹ️ MergeQueue: pull request added to the queue

The median merge time in main is 2m.


2024-12-12 15:23:32 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue dd-mergequeue bot merged commit 1c333ed into main Dec 12, 2024
10 checks passed
@dd-mergequeue dd-mergequeue bot deleted the fanny/operator-namespaces branch December 12, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants