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

Enable V2 by default #614

Merged
merged 7 commits into from
Sep 26, 2022
Merged

Enable V2 by default #614

merged 7 commits into from
Sep 26, 2022

Conversation

davidor
Copy link
Member

@davidor davidor commented Sep 16, 2022

What does this PR do?

Enables V2 by default. It's no longer necessary to run the commands with KUSTOMIZE_CONFIG=config/test-v2.
I've added some configs to be able to test V1 in case we need it.

@davidor davidor requested review from a team as code owners September 16, 2022 14:02
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request does not contain a valid label. Please add one of the following labels: bug, enhancement, refactoring, documentation, tooling

@davidor davidor added this to the v1.0.0 milestone Sep 16, 2022
Copy link
Contributor

@hestonhoffman hestonhoffman left a comment

Choose a reason for hiding this comment

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

No review necessary from docs on this one

@@ -0,0 +1,4 @@
# The following patches adds configure the DatadogAgents CRD to use v1alpha1 as the storage version.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# The following patches adds configure the DatadogAgents CRD to use v1alpha1 as the storage version.
# The following patches adds a configuration to the DatadogAgents CRD to use v1alpha1 as the storage version.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@@ -1,10 +1,10 @@
# The following patches adds configure the DatadogAgents CRD to use v2alpha1 as the storage version.
# The following patches adds configure the DatadogAgents CRD to use v1alpha1 as the storage version.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# The following patches adds configure the DatadogAgents CRD to use v1alpha1 as the storage version.
# The following patches adds a configuration to the DatadogAgents CRD to use v1alpha1 as the storage version.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@@ -921,7 +921,7 @@ type DatadogAgentStatus struct {
// DatadogAgent Deployment with the Datadog Operator.
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:unservedversion
Copy link
Contributor

Choose a reason for hiding this comment

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

should we add this flag to v1alpha1?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added and adapted manifests, patches, etc. 👍

@@ -32,18 +32,16 @@ make IMG=test/operator:test deploy

Note: `IMG` currently defaults to: `datadog/datadog-operator:latest`

## \[TMP\] how to test `v2alpha`
## Test using `v2alpha`
Copy link
Contributor

Choose a reason for hiding this comment

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

should we rm this section header and merge the cert manager install cmd with the section above?

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed 👍

@codecov-commenter
Copy link

codecov-commenter commented Sep 21, 2022

Codecov Report

Merging #614 (02f5e1a) into main (15447c2) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #614   +/-   ##
=======================================
  Coverage   58.51%   58.51%           
=======================================
  Files           3        3           
  Lines         135      135           
=======================================
  Hits           79       79           
  Misses         43       43           
  Partials       13       13           
Flag Coverage Δ
unittests 58.51% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


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 15447c2...02f5e1a. Read the comment docs.

Copy link
Contributor

@CharlyF CharlyF left a comment

Choose a reason for hiding this comment

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

Tested changes, all set.

@davidor davidor merged commit 6369a83 into main Sep 26, 2022
@davidor davidor deleted the davidor/enable-v2-by-default branch September 26, 2022 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants