-
Notifications
You must be signed in to change notification settings - Fork 104
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
[cleanup] move uncommon items from api/common/v1 #1407
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
davidor
approved these changes
Sep 12, 2024
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.
👍 for files owned by container-platform
tbavelier
approved these changes
Sep 18, 2024
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.
LGTM, left a minor comment that we can discuss offline
Bonus: .configData
still works 👍
╰─❯ k get dd datadog -ojson | jq .spec.features.dogstatsd
{
"mapperProfiles": {
"configData": "- name: 'abc'\n prefix: 'abc'\n mappings:\n - match: 'abc.*'\n match_type: 'regex'\n name: 'abc'"
}
}
╭─ ~ ⎈ kind-local-k8s/system 15:12:16
╰─❯ k exec -it datadog-agent-tv867 -- bash
Defaulted container "agent" out of: agent, process-agent, init-volume (init), init-config (init)
root@datadog-agent-tv867:/# agent config | grep mapper_profiles -A 10
dogstatsd_mapper_profiles:
- mappings:
- match: abc.*
match_type: regex
name: abc
tags: {}
name: abc
prefix: abc
…onv1' into celene/cleanup_commonv1
mftoure
pushed a commit
that referenced
this pull request
Oct 3, 2024
* [cleanup] move uncommon items from api/common/v1 * small fix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Move items out of common/v1 that are no longer needed there (i.e. they are specific to the v2alpha1 API)
Move a few items in common/const.go to prevent circular imports. The rest will be reviewed/moved in a future PR
Consolidate remaining common/types into a single file
Consolidate
CustomConfig
definitions into a single definition in the v2alpha1 API (and remove conversion function)Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Minimum Agent Versions
Are there minimum versions of the Datadog Agent and/or Cluster Agent required?
Describe your test plan
Change should be noop.
Make sure that the image builds and runs without issue.
Make sure that the Dogstatsd feature works with a CustomConfig.
Checklist
bug
,enhancement
,refactoring
,documentation
,tooling
, and/ordependencies
qa/skip-qa
label