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

Miscellaneous fixes #107

Merged
merged 5 commits into from
Jun 3, 2020
Merged

Miscellaneous fixes #107

merged 5 commits into from
Jun 3, 2020

Conversation

L3n41c
Copy link
Member

@L3n41c L3n41c commented Jun 3, 2020

What does this PR do?

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

@L3n41c L3n41c requested a review from clamoriniere June 3, 2020 06:32
L3n41c and others added 4 commits June 3, 2020 09:29
the CRD generator doesn't support `float64` as a type of a CRD field.
The sugested workaround is to used instead `resource.Quantity`, but we choose to use `string` for simplicity
Related issue: kubernetes-sigs/controller-tools#245

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
`$.spec.agent.config` contains the configuration for core agent.
So `$.spec.agent.config.env` applies only to core agent.

This patch adds `$.spec.agent.env` for environment variables that must
defined for all the agents and not only the core one.

Fixes #101
@L3n41c L3n41c marked this pull request as ready for review June 3, 2020 08:54
@L3n41c L3n41c requested a review from a team as a code owner June 3, 2020 08:54
@codecov-commenter
Copy link

codecov-commenter commented Jun 3, 2020

Codecov Report

Merging #107 into master will increase coverage by 4.17%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #107      +/-   ##
==========================================
+ Coverage   57.19%   61.37%   +4.17%     
==========================================
  Files          31       31              
  Lines        4175     4562     +387     
==========================================
+ Hits         2388     2800     +412     
+ Misses       1606     1583      -23     
+ Partials      181      179       -2     
Flag Coverage Δ
#unittests 61.37% <100.00%> (+4.17%) ⬆️
Impacted Files Coverage Δ
pkg/controller/datadogagent/secret.go 57.14% <100.00%> (+1.04%) ⬆️
pkg/controller/datadogagent/utils.go 89.82% <100.00%> (+6.45%) ⬆️
pkg/controller/utils/datadog/metrics_forwarder.go 42.47% <100.00%> (+0.17%) ⬆️
pkg/controller/datadogagent/clusteragent.go 77.92% <0.00%> (+3.18%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6527795...9243894. Read the comment docs.

Copy link
Collaborator

@clamoriniere clamoriniere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@clamoriniere clamoriniere merged commit cb2eac8 into master Jun 3, 2020
@clamoriniere clamoriniere deleted the lenaic/fixes branch June 3, 2020 20:22
@clamoriniere clamoriniere added this to the v0.3 milestone Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants