mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Remove explicit nil initialization and correct error string.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
7f0e04a089
commit
9e638676e9
@ -170,7 +170,7 @@ func makeSymlinks(targetName string, commandFns []func() *cobra.Command) error {
|
||||
}
|
||||
|
||||
if errs {
|
||||
return errors.New("Error creating one or more symlinks.")
|
||||
return errors.New("Error creating one or more symlinks")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@ -82,8 +82,8 @@ func startServiceController(ctx ControllerContext) (http.Handler, bool, error) {
|
||||
}
|
||||
|
||||
func startNodeIpamController(ctx ControllerContext) (http.Handler, bool, error) {
|
||||
var clusterCIDR *net.IPNet = nil
|
||||
var serviceCIDR *net.IPNet = nil
|
||||
var clusterCIDR *net.IPNet
|
||||
var serviceCIDR *net.IPNet
|
||||
|
||||
if !ctx.ComponentConfig.KubeCloudShared.AllocateNodeCIDRs {
|
||||
return nil, false, nil
|
||||
|
@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Package service provides EndpointController implementation
|
||||
// Package endpoint provides EndpointController implementation
|
||||
// to manage and sync service endpoints.
|
||||
package endpoint // import "k8s.io/kubernetes/pkg/controller/endpoint"
|
||||
|
Loading…
Reference in New Issue
Block a user