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

add configmaps to watched nic resources #139

Closed
wants to merge 7 commits into from

Conversation

OliverMKing
Copy link
Collaborator

Description

Triggers a reconcile on nic resources when a managed configmap is updated.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

E2e and unit tested. This is a core feature of how controller runtime works. It doesn't make sense to try to write a unit test for something already tested in the controller runtime package.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@coveralls
Copy link
Collaborator

coveralls commented Nov 21, 2023

Pull Request Test Coverage Report for Build 9502123905

Details

  • 0 of 2 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 79.099%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/controller/nginxingress/nginx_ingress_controller.go 0 2 0.0%
Totals Coverage Status
Change from base Build 9502119507: -0.02%
Covered Lines: 3001
Relevant Lines: 3794

💛 - Coveralls

@OliverMKing
Copy link
Collaborator Author

/ok-to-test sha=1799336

@@ -67,7 +67,8 @@ func NewReconciler(conf *config.Config, mgr ctrl.Manager, defaultIngressClassCon
if err := nginxIngressControllerReconcilerName.AddToController(
ctrl.NewControllerManagedBy(mgr).
For(&approutingv1alpha1.NginxIngressController{}).
Owns(&appsv1.Deployment{}),
Owns(&appsv1.Deployment{}). // used to update our status
Owns(&corev1.ConfigMap{}), // we don't use this to update any statuses but we do want to immediatley overwrite any user changes. it's not supported for users to edit the configmap
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: typo

@tuananhnguyen-ct
Copy link

Is there anyway to defer this until #168 is addressed?

@OliverMKing
Copy link
Collaborator Author

/ok-to-test sha=46937e0

@OliverMKing
Copy link
Collaborator Author

/ok-to-test sha=e045c7a

1 similar comment
@OliverMKing
Copy link
Collaborator Author

/ok-to-test sha=e045c7a

@OliverMKing
Copy link
Collaborator Author

/ok-to-test sha=c345e00

@OliverMKing
Copy link
Collaborator Author

/ok-to-test sha=16540c1

@OliverMKing
Copy link
Collaborator Author

/ok-to-test sha=07cd5d8

@OliverMKing
Copy link
Collaborator Author

/ok-to-test sha=07cd5d8

@OliverMKing
Copy link
Collaborator Author

/ok-to-test sha=7d31cb3

@OliverMKing OliverMKing closed this by deleting the head repository Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants