Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for GoRuntime (0.21 sec)

  1. pkg/kubelet/kubelet_node_status_test.go

    		},
    		{
    			desc:            "volumes inuse on node and volumeManager",
    			existingVolumes: []v1.UniqueVolumeName{"vol1"},
    			existingNode: &v1.Node{
    				ObjectMeta: metav1.ObjectMeta{Name: testKubeletHostname, Labels: map[string]string{v1.LabelOSStable: goruntime.GOOS, v1.LabelArchStable: goruntime.GOARCH}},
    				Status: v1.NodeStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  2. pkg/kubelet/sysctl/safe_sysctls.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package sysctl
    
    import (
    	goruntime "runtime"
    
    	"k8s.io/apimachinery/pkg/util/version"
    	"k8s.io/klog/v2"
    	utilkernel "k8s.io/kubernetes/pkg/util/kernel"
    )
    
    type sysctl struct {
    	// the name of sysctl
    	name string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 19:24:34 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. pkg/kubelet/lifecycle/predicate_test.go

    	}{
    		{
    			name:            "OS label match",
    			pod:             &v1.Pod{ObjectMeta: metav1.ObjectMeta{Labels: map[string]string{v1.LabelOSStable: goruntime.GOOS}}},
    			node:            &v1.Node{Spec: v1.NodeSpec{}, ObjectMeta: metav1.ObjectMeta{Labels: map[string]string{v1.LabelOSStable: goruntime.GOOS}}},
    			expectRejection: false,
    		},
    		{
    			name:            "dummyOS label, but the underlying OS matches",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 23:13:50 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  4. pkg/kubelet/kubeletconfig/configfiles/configfiles_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package configfiles
    
    import (
    	"errors"
    	"fmt"
    	"path/filepath"
    	goruntime "runtime"
    	"testing"
    
    	apiequality "k8s.io/apimachinery/pkg/api/equality"
    	"k8s.io/apimachinery/pkg/runtime"
    	kubeletconfigv1beta1 "k8s.io/kubelet/config/v1beta1"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 18 12:18:41 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  5. pkg/volume/util/hostutil/hostutil_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package hostutil
    
    import (
    	"errors"
    	"fmt"
    	"net"
    	"os"
    	"path/filepath"
    	goruntime "runtime"
    	"strings"
    	"testing"
    
    	"github.com/stretchr/testify/assert"
    	"k8s.io/mount-utils"
    	"k8s.io/utils/exec"
    )
    
    // fakeMounter implements mount.Interface for tests.
    type fakeMounter struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 16:02:07 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. pkg/volume/flexvolume/probe_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package flexvolume
    
    import (
    	"fmt"
    	"path/filepath"
    	goruntime "runtime"
    	"strings"
    	"testing"
    
    	"github.com/fsnotify/fsnotify"
    	"github.com/stretchr/testify/assert"
    	utilfs "k8s.io/kubernetes/pkg/util/filesystem"
    	"k8s.io/kubernetes/pkg/volume"
    	"k8s.io/utils/exec"
    )
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 28 11:14:00 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_node_status.go

    			Name: string(kl.nodeName),
    			Labels: map[string]string{
    				v1.LabelHostname:      kl.hostname,
    				v1.LabelOSStable:      goruntime.GOOS,
    				v1.LabelArchStable:    goruntime.GOARCH,
    				kubeletapis.LabelOS:   goruntime.GOOS,
    				kubeletapis.LabelArch: goruntime.GOARCH,
    			},
    		},
    		Spec: v1.NodeSpec{
    			Unschedulable: !kl.registerSchedulable,
    		},
    	}
    	osLabels, err := getOSSpecificLabels()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/phases/copycerts/copycerts_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package copycerts
    
    import (
    	"context"
    	"encoding/hex"
    	"os"
    	"path/filepath"
    	"regexp"
    	goruntime "runtime"
    	"testing"
    
    	"github.com/lithammer/dedent"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	fakeclient "k8s.io/client-go/kubernetes/fake"
    	"k8s.io/client-go/util/keyutil"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:15:30 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    			if test.skipOnWindows && goruntime.GOOS == "windows" {
    				// TODO: remove skip once the failing test has been fixed.
    				t.Skip("Skip failing test on Windows.")
    			}
    			actual := toKubeContainerStatus(test.input, cid.Type)
    			assert.Equal(t, test.expected, actual, desc)
    		})
    	}
    }
    
    func TestToKubeContainerStatusWithUser(t *testing.T) {
    	if goruntime.GOOS == "windows" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go

    		GitVersion:   "42",
    		GitCommit:    "34973274ccef6ab4dfaaf86599792fa9c3fe4689",
    		GitTreeState: "Dirty",
    		BuildDate:    time.Now().String(),
    		GoVersion:    goruntime.Version(),
    		Compiler:     goruntime.Compiler,
    		Platform:     fmt.Sprintf("%s/%s", goruntime.GOOS, goruntime.GOARCH),
    	}
    }
    
    // TestGracefulShutdown verifies server shutdown after request handler finish.
    func TestGracefulShutdown(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 23.2K bytes
    - Viewed (0)
Back to top