Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setHostnameAsFQDN (0.19 sec)

  1. pkg/kubelet/util/util_test.go

    		hostname:          "test.pod.hostname",
    		hostDomain:        "",
    		setHostnameAsFQDN: true,
    		expectedHostname:  "test.pod.hostname",
    		expectError:       false,
    	}, {
    		description:       "valid hostDomain, setHostnameAsFQDN false",
    		hostname:          "test.pod.hostname",
    		hostDomain:        "svc.subdomain.local",
    		setHostnameAsFQDN: false,
    		expectedHostname:  "test.pod.hostname",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 14:16:02 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. pkg/kubelet/util/util.go

    func GetNodenameForKernel(hostname string, hostDomainName string, setHostnameAsFQDN *bool) (string, error) {
    	kernelHostname := hostname
    	// FQDN has to be 64 chars to fit in the Linux nodename kernel field (specification 64 chars and the null terminating char).
    	const fqdnMaxLen = 64
    	if len(hostDomainName) > 0 && setHostnameAsFQDN != nil && *setHostnameAsFQDN {
    		fqdn := fmt.Sprintf("%s.%s", hostname, hostDomainName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 18:07:39 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top