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

Remove DatadogAgent v1alpha1 CRD version and conversion webhook #1242

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

levan-m
Copy link
Contributor

@levan-m levan-m commented Jun 21, 2024

What does this PR do?

  • Removes DatadogAgent v1alpha1 CRD.
  • Removes the option to enable conversion webhook.
  • Removes configuration documentation for this CRD veresion.

This PR doesn't clean up the Go code.

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?

  • Agent: vX.Y.Z
  • Cluster Agent: vX.Y.Z

Describe your test plan

Write there any instructions and details you may have to test your PR.

Checklist

  • PR has at least one valid label: bug, enhancement, refactoring, documentation, tooling, and/or dependencies
  • PR has a milestone or the qa/skip-qa label

@levan-m levan-m added this to the v1.8.0 milestone Jun 21, 2024
@levan-m levan-m requested review from a team as code owners June 21, 2024 13:43
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@d36395d). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1242   +/-   ##
=======================================
  Coverage        ?   59.29%           
=======================================
  Files           ?      177           
  Lines           ?    22380           
  Branches        ?        0           
=======================================
  Hits            ?    13270           
  Misses          ?     8298           
  Partials        ?      812           
Flag Coverage Δ
unittests 59.29% <ø> (?)

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

Files Coverage Δ
apis/datadoghq/v1alpha1/datadogagent_types.go 100.00% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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

@@ -1405,7 +1405,6 @@ const (

// DatadogAgent Deployment with Datadog Operator.
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without deleting this line, controller-gen fails with below error. Since v1alpha1 is getting deprecated in this release I don't removing this as a problem so didn't debug it any further

❯ bin/darwin-arm64/controller-gen "crd:preserveUnknownFields=false",crdVersions=v1 rbac:roleName=manager-role paths="./apis/..." output:crd:artifacts:config=config/crd/bases/v1
[repo_root]/apis/datadoghq/v1alpha1/datadogagent_types.go:1418:6: status subresource applied to version "v1alpha1" not in CRD
Error: not all generators ran successfully

@levan-m levan-m merged commit dc0be60 into main Jun 24, 2024
19 checks passed
@levan-m levan-m deleted the levan-m/skip-dda-v1alpha1 branch June 24, 2024 15:47
mftoure pushed a commit that referenced this pull request Oct 3, 2024
* Remove DatadogAgent v1alpha1 CRD version

* Remove option of enabling conversion webhook

* Don't generate DatadogAgent v1alpha1 doc

* Skip DatadogAgent v1alpha1 suite test
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.

5 participants