Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

fix: remove repair-malformed-updates deprecated flag #492

Merged
merged 1 commit into from Feb 13, 2019

Conversation

ritazh
Copy link
Member

@ritazh ritazh commented Feb 13, 2019

Reason for Change:

Remove repair-malformed-updates deprecated flag

Issue Fixed:

Fixes #490

Requirements:

Notes:

@@ -436,7 +436,6 @@ Below is a list of apiserver options that are _not_ currently user-configurable,
| "--etcd-keyfile" | "/etc/kubernetes/certs/etcdclient.key" |
| "--etcd-servers" | _calculated value that represents etcd servers_ |
| "--profiling" | "false" |
| "--repair-malformed-updates" | "false" |
Copy link
Contributor

Choose a reason for hiding this comment

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

I understand that this is removed for k8s 1.14. Does the removal of this have consequences for other k8s clusters?

@codecov
Copy link

codecov bot commented Feb 13, 2019

Codecov Report

Merging #492 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #492      +/-   ##
==========================================
+ Coverage   54.35%   54.36%   +<.01%     
==========================================
  Files          96       96              
  Lines       14552    14555       +3     
==========================================
+ Hits         7910     7913       +3     
  Misses       5969     5969              
  Partials      673      673

@PatrickLang
Copy link
Contributor

cc @adelina-t this could be breaking Windows test passes too

@acs-bot acs-bot added size/S and removed size/XS labels Feb 13, 2019
Copy link
Member

@feiskyer feiskyer left a comment

Choose a reason for hiding this comment

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

lgtm

@feiskyer
Copy link
Member

Thanks for the fix.

@@ -436,7 +436,7 @@ Below is a list of apiserver options that are _not_ currently user-configurable,
| "--etcd-keyfile" | "/etc/kubernetes/certs/etcdclient.key" |
| "--etcd-servers" | _calculated value that represents etcd servers_ |
| "--profiling" | "false" |
| "--repair-malformed-updates" | "false" |
| "--repair-malformed-updates" | "false" (_removed in v1.14_) |
Copy link
Member

Choose a reason for hiding this comment

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

s/removed/deprecated

@jackfrancis
Copy link
Member

@ritazh Add this test to defaults-apiserver_test.go, it should pass in your PR:

func TestAPIServerConfigRepairMalformedUpdates(t *testing.T) {
	// Test default
	cs := CreateMockContainerService("testcluster", "1.13.0", 3, 2, false)
	cs.setAPIServerConfig()
	a := cs.Properties.OrchestratorProfile.KubernetesConfig.APIServerConfig
	if a["--repair-malformed-updates"] != "false" {
		t.Fatalf("got unexpected default value for '--repair-malformed-updates' API server config: %s",
			a["--repair-malformed-updates"])
	}

	// Validate that 1.14.0 doesn't include --repair-malformed-updates at all
	cs = CreateMockContainerService("testcluster", "1.14.0", 3, 2, false)
	cs.setAPIServerConfig()
	a = cs.Properties.OrchestratorProfile.KubernetesConfig.APIServerConfig
	if _, ok := a["--repair-malformed-updates"]; ok {
		t.Fatalf("got a value for the deprecated '--repair-malformed-updates' API server config: %s",
			a["--repair-malformed-updates"])
	}
}

@jackfrancis
Copy link
Member

/lgtm

@acs-bot
Copy link

acs-bot commented Feb 13, 2019

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis, ritazh

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom hyperkube v1.14.0-alpha.3 deployment failed
6 participants