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

Allow disabling of apiserver endpoints reconciler #4396

Merged
merged 4 commits into from
Sep 27, 2019

Conversation

thz
Copy link
Contributor

@thz thz commented Sep 26, 2019

This change introduces .apiserver.endpointReconcilingDisabled in
componentsOverride of the Cluster CR. When enabled the apiserver
is started with --endpoint-reconciler-type=none which disables
the reconciling of the apiserver endpoint (default: false).
This change also introduces the flag --apiserver-endpoint-reconciling-disabled
for kubermatic-controller-manager which lets the
clusterComponentDefaulter controller default .endpointReconcilingDisabled
to true for all Clusters.

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Documentation:

Does this PR introduce a user-facing change?:

Allow disabling of apiserver endpoint reconciling.

This change introduces .apiserver.endpointReconcilingDisabled in
componentsOverride of the Cluster CR. When enabled the apiserver
is started with --endpoint-reconciler-type=none which disables
the reconciling of the apiserver endpoint (default: false).
This change also introduces the flag --apiserver-endpoint-reconciling-disabled
for kubermatic-controller-manager which lets the
clusterComponentDefaulter controller default .endpointReconcilingDisabled
to true for all Clusters.
@kubermatic-bot kubermatic-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. team/lifecycle approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 26, 2019
@thz
Copy link
Contributor Author

thz commented Sep 26, 2019

/hold

@kubermatic-bot kubermatic-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 26, 2019
Copy link
Contributor

@alvaroaleman alvaroaleman left a comment

Choose a reason for hiding this comment

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

Please also add the option and a default to the chart template in config/kubermatic/templates/kubermatic-controller-manager-dep.yaml and config/kubtermatic/values.yaml, respectively.

ControllerManager DeploymentSettings `json:"controllerManager"`
Scheduler DeploymentSettings `json:"scheduler"`
Etcd StatefulSetSettings `json:"etcd"`
Prometheus StatefulSetSettings `json:"prometheus"`
}

type APIServerSettings struct {
DeploymentSettings
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs a json:",inline" tag

@alvaroaleman
Copy link
Contributor

/lgtm
/approve

@kubermatic-bot kubermatic-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 27, 2019
@kubermatic-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: f8e22a118653a81a9e3cb57e9c3839396e099689

@kubermatic-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, thz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@thz
Copy link
Contributor Author

thz commented Sep 27, 2019

/hold cancel

@kubermatic-bot kubermatic-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 27, 2019
@thz
Copy link
Contributor Author

thz commented Sep 27, 2019

/retest

@kubermatic-triage-bot
Copy link

/retest
This bot automatically retries jobs that failed/flaked on approved PRs

Review the full test history

Silence the bot with an /lgtm cancel or /hold comment for consistent failures.

Also, here is a cat.
/meow

@kubermatic-bot
Copy link
Contributor

@kubermatic-triage-bot: cat image

In response to this:

/retest
This bot automatically retries jobs that failed/flaked on approved PRs

Review the full test history

Silence the bot with an /lgtm cancel or /hold comment for consistent failures.

Also, here is a cat.
/meow

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kubermatic-bot kubermatic-bot merged commit 98e50a7 into master Sep 27, 2019
@kubermatic-bot kubermatic-bot added this to the v2.12 milestone Sep 27, 2019
@kubermatic-bot kubermatic-bot deleted the thz/endpoint-reconciler-flag branch September 27, 2019 11:48
@toschneck
Copy link
Member

@thz please also describe the use case and the functionality in the documentation. i think it's not so easy for end user to see for what this flag can be used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants