mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #36735 from YuPengZTE/devHTTP
Automatic merge from submit-queue type HttpProxyCheck should be HTTPProxyCheck **What this PR does / why we need it**: Change HttpProxyCheck to HTTPProxyCheck **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: golint **Release note**: ```release-note ``` Signed-off-by: yupeng <yu.peng36@zte.com.cn>
This commit is contained in:
		@@ -214,15 +214,15 @@ func (hc HostnameCheck) Check() (warnings, errors []error) {
 | 
				
			|||||||
	return nil, errors
 | 
						return nil, errors
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// HttpProxyCheck checks if https connection to specific host is going
 | 
					// HTTPProxyCheck checks if https connection to specific host is going
 | 
				
			||||||
// to be done directly or over proxy. If proxy detected, it will return warning.
 | 
					// to be done directly or over proxy. If proxy detected, it will return warning.
 | 
				
			||||||
type HttpProxyCheck struct {
 | 
					type HTTPProxyCheck struct {
 | 
				
			||||||
	Proto string
 | 
						Proto string
 | 
				
			||||||
	Host  string
 | 
						Host  string
 | 
				
			||||||
	Port  int
 | 
						Port  int
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (hst HttpProxyCheck) Check() (warnings, errors []error) {
 | 
					func (hst HTTPProxyCheck) Check() (warnings, errors []error) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	url := fmt.Sprintf("%s://%s:%d", hst.Proto, hst.Host, hst.Port)
 | 
						url := fmt.Sprintf("%s://%s:%d", hst.Proto, hst.Host, hst.Port)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -272,7 +272,7 @@ func RunInitMasterChecks(cfg *kubeadmapi.MasterConfiguration) error {
 | 
				
			|||||||
		PortOpenCheck{port: 10250},
 | 
							PortOpenCheck{port: 10250},
 | 
				
			||||||
		PortOpenCheck{port: 10251},
 | 
							PortOpenCheck{port: 10251},
 | 
				
			||||||
		PortOpenCheck{port: 10252},
 | 
							PortOpenCheck{port: 10252},
 | 
				
			||||||
		HttpProxyCheck{Proto: "https", Host: cfg.API.AdvertiseAddresses[0], Port: int(cfg.API.BindPort)},
 | 
							HTTPProxyCheck{Proto: "https", Host: cfg.API.AdvertiseAddresses[0], Port: int(cfg.API.BindPort)},
 | 
				
			||||||
		DirAvailableCheck{Path: "/etc/kubernetes/manifests"},
 | 
							DirAvailableCheck{Path: "/etc/kubernetes/manifests"},
 | 
				
			||||||
		DirAvailableCheck{Path: "/etc/kubernetes/pki"},
 | 
							DirAvailableCheck{Path: "/etc/kubernetes/pki"},
 | 
				
			||||||
		DirAvailableCheck{Path: "/var/lib/kubelet"},
 | 
							DirAvailableCheck{Path: "/var/lib/kubelet"},
 | 
				
			||||||
@@ -308,8 +308,8 @@ func RunJoinNodeChecks(cfg *kubeadmapi.NodeConfiguration) error {
 | 
				
			|||||||
		ServiceCheck{Service: "docker"},
 | 
							ServiceCheck{Service: "docker"},
 | 
				
			||||||
		ServiceCheck{Service: "kubelet"},
 | 
							ServiceCheck{Service: "kubelet"},
 | 
				
			||||||
		PortOpenCheck{port: 10250},
 | 
							PortOpenCheck{port: 10250},
 | 
				
			||||||
		HttpProxyCheck{Proto: "https", Host: cfg.MasterAddresses[0], Port: int(cfg.APIPort)},
 | 
							HTTPProxyCheck{Proto: "https", Host: cfg.MasterAddresses[0], Port: int(cfg.APIPort)},
 | 
				
			||||||
		HttpProxyCheck{Proto: "http", Host: cfg.MasterAddresses[0], Port: int(cfg.DiscoveryPort)},
 | 
							HTTPProxyCheck{Proto: "http", Host: cfg.MasterAddresses[0], Port: int(cfg.DiscoveryPort)},
 | 
				
			||||||
		DirAvailableCheck{Path: "/etc/kubernetes/manifests"},
 | 
							DirAvailableCheck{Path: "/etc/kubernetes/manifests"},
 | 
				
			||||||
		DirAvailableCheck{Path: "/var/lib/kubelet"},
 | 
							DirAvailableCheck{Path: "/var/lib/kubelet"},
 | 
				
			||||||
		FileAvailableCheck{Path: "/etc/kubernetes/kubelet.conf"},
 | 
							FileAvailableCheck{Path: "/etc/kubernetes/kubelet.conf"},
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user