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

Update manager field #160

Merged
merged 2 commits into from
May 19, 2023
Merged

Update manager field #160

merged 2 commits into from
May 19, 2023

Conversation

fanny-jiang
Copy link
Contributor

@fanny-jiang fanny-jiang commented May 15, 2023

What does this PR do?

Configure a controller manager name, eds-controller for the manager managedField.

Motivation

Previously, the ExtendedDaemonSet resource created by the ExtendedDaemonset controller had the managed field, Manager: manager, which was ambiguous and confusing.

Name: foo
[...]
API Version:  datadoghq.com/v1alpha1
Kind:         ExtendedDaemonSet
Metadata:
[...]
  Managed Fields:
[...]
    Manager:      manager
[...]
    Manager:      manager

This change customizes the Manager name to a more meaningful name, eds-controller.

Name: foo
[...]
API Version:  datadoghq.com/v2alpha1
Kind:         ExtendedDaemonSet
Metadata:
[...]
  Managed Fields:
[...]
    Manager:      eds-controller
[...]
    Manager:      eds-controller

Additional Notes

This change also updates the Manager field in the ExtendedReplicaSet to eds-controller.

Describe your test plan

  1. Deploy the ExtendedDaemonset controller
  2. Deploy an ExtendedDaemonSet manifest file
  3. Check that the ExtendedDaemonSet CRD field Metadata.Managed Fields.Manager is eds-controller

@fanny-jiang fanny-jiang added the enhancement New feature or request label May 15, 2023
@fanny-jiang fanny-jiang requested review from a team as code owners May 15, 2023 22:17
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 contains a valid label.

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 contains a valid label.

@codecov-commenter
Copy link

codecov-commenter commented May 15, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@9bcbc05). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #160   +/-   ##
=======================================
  Coverage        ?   63.22%           
=======================================
  Files           ?       41           
  Lines           ?     3073           
  Branches        ?        0           
=======================================
  Hits            ?     1943           
  Misses          ?     1014           
  Partials        ?      116           
Flag Coverage Δ
unittests 63.22% <ø> (?)

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


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 9bcbc05...1563d52. Read the comment docs.

main.go Outdated Show resolved Hide resolved
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 contains a valid label.

@fanny-jiang fanny-jiang force-pushed the fanny/CONTECO-16/update-mgr-field branch from 0f65096 to 60175b7 Compare May 16, 2023 15:10
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 contains a valid label.

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 contains a valid label.

@fanny-jiang fanny-jiang merged commit af31f4d into main May 19, 2023
24 checks passed
@fanny-jiang fanny-jiang deleted the fanny/CONTECO-16/update-mgr-field branch May 19, 2023 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants