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

feat(base): allow default reconcile behavior to be configured #349

Merged

Conversation

esatterwhite
Copy link
Contributor

@esatterwhite esatterwhite commented Oct 18, 2022

Base controller accepts a reconcileByDefault option which controls the default value for the reconciler behavior when deploy.razee.io/Reconcile is not specified. By default it is true.

It must be a boolean looking value. 1, or 0 are not valid

@esatterwhite esatterwhite force-pushed the esatterwhite/configure-reconcile branch from 9e328bc to 571f8ed Compare October 18, 2022 20:37
lib/BaseController.js Outdated Show resolved Hide resolved
);
}

reconcileByDefault = String(params.reconcileByDefault);
Copy link
Member

@alewitt2 alewitt2 Oct 19, 2022

Choose a reason for hiding this comment

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

interested in your thoughts.. do you think it beneficial to move this reconcileByDefault into some kind of options object (ie. params.options.reconcileByDefault)? My thinking being this leaves open the posibility to add more environment variable configuration in the future if necessary without shoving them all in the params layer, since the params layer has to be updated inside EventHandler. Just want to avoid having to modify 3 files (basecontroller, EventHandler, and the desired controller's index.js like MTP) in the future if possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, can do

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alewitt2 updated. Is this more of what you were thinking?

Copy link
Member

Choose a reason for hiding this comment

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

yes! hopefully will make our lives easier in the future. thanks

@esatterwhite esatterwhite force-pushed the esatterwhite/configure-reconcile branch from 571f8ed to ff00f47 Compare October 20, 2022 15:06
alewitt2
alewitt2 previously approved these changes Oct 20, 2022
Copy link
Member

@alewitt2 alewitt2 left a comment

Choose a reason for hiding this comment

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

lgtm

@alewitt2
Copy link
Member

looks like we need more travis credits.. waiting on response from support then we will merge this one

@esatterwhite
Copy link
Contributor Author

@alewitt2 any word?

@alewitt2
Copy link
Member

nothing yet

@alewitt2
Copy link
Member

@carrolp any word from support on credits?

@esatterwhite
Copy link
Contributor Author

@alewitt2 @carrolp Any word?

@alewitt2
Copy link
Member

alewitt2 commented Nov 1, 2022

@esatterwhite can you update your branch from master

Base cnntroller accepts a `reconcileByDefault` option which controls
the default value for the reconciler behavior when
`deploy.razee.io/Reconcile` is not specified. By default it is true.

It must be a boolean looking value. 1, or 0 are not valid
@esatterwhite esatterwhite force-pushed the esatterwhite/configure-reconcile branch from 9956af8 to de1a5c1 Compare November 1, 2022 18:40
@esatterwhite
Copy link
Contributor Author

Done

@alewitt2 alewitt2 merged commit a09b239 into razee-io:master Nov 1, 2022
@esatterwhite
Copy link
Contributor Author

Ping me when this is published. I'll update the controllers

@alewitt2
Copy link
Member

alewitt2 commented Nov 1, 2022

@esatterwhite its published as 1.3.0

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.

2 participants