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

Fix DatadogMetric generation with operator-sdk 0.17 #102

Merged
merged 1 commit into from
May 27, 2020

Conversation

clamoriniere
Copy link
Collaborator

@clamoriniere clamoriniere commented May 26, 2020

What does this PR do?

The CRD generator doesn't support float64 as a type of a CRD field.
The suggested workaround is to used instead resource.Quantity but we choose to use string.
Related issue: kubernetes-sigs/controller-tools#245

Motivation

Fix the Master branch, that is broken due to a merge issue.

Additional Notes

Anything else we should know when reviewing?

@clamoriniere clamoriniere added the bug Something isn't working label May 26, 2020
@clamoriniere clamoriniere requested a review from a team as a code owner May 26, 2020 20:11
@clamoriniere clamoriniere added this to the v0.3 milestone May 26, 2020
@clamoriniere
Copy link
Collaborator Author

clamoriniere commented May 26, 2020

@vboulineau please let me know if this change doesn't impact to much the functionality inside the cluster-agent.

@codecov-commenter
Copy link

codecov-commenter commented May 26, 2020

Codecov Report

Merging #102 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #102   +/-   ##
=======================================
  Coverage   57.19%   57.19%           
=======================================
  Files          31       31           
  Lines        4175     4175           
=======================================
  Hits         2388     2388           
  Misses       1606     1606           
  Partials      181      181           
Flag Coverage Δ
#unittests 57.19% <ø> (ø)

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 4cb9aaf...99076ee. Read the comment docs.

the CRD generator doesn't support `float64` as a type of a CRD field.
The sugested workaround is to used instead `resource.Quantity`.
Related issue: kubernetes-sigs/controller-tools#245

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
@clamoriniere clamoriniere merged commit 7850164 into master May 27, 2020
@clamoriniere clamoriniere deleted the clamoriniere/fixMaster branch May 27, 2020 11:02
L3n41c pushed a commit that referenced this pull request Jun 3, 2020
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>
clamoriniere added a commit that referenced this pull request Jun 3, 2020
* Fixes #97,  Fixes #95, Fixes #101, Fixes #102
* Make the definition of `DD_CRI_SOCKET_PATH` and `DOCKER_HOST` for all containers.
* Fix DatadogMetric generation with operator-sdk 0.17
* Add a way to specify environment variables for all containers
* Allow to use a custom secret key name when providing API or APP key via an existing secret
* This patch adds `$.spec.agent.env` for environment variables that must
defined for all the agents and not only the core one.


Co-authored-by: Cedric Lamoriniere <cedric.lamoriniere@datadoghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants