Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for GoRuntime (0.24 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. cmd/kube-scheduler/app/server.go

    limitations under the License.
    */
    
    // Package app implements a Server object for running the scheduler.
    package app
    
    import (
    	"context"
    	"fmt"
    	"net/http"
    	"os"
    	goruntime "runtime"
    
    	"github.com/spf13/cobra"
    
    	utilerrors "k8s.io/apimachinery/pkg/util/errors"
    	utilruntime "k8s.io/apimachinery/pkg/util/runtime"
    	"k8s.io/apiserver/pkg/authentication/authenticator"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  7. pkg/kubelet/nodestatus/setters.go

    			})
    		}
    
    		node.Status.Images = imagesOnNode
    		return nil
    	}
    }
    
    // GoRuntime returns a Setter that sets GOOS and GOARCH on the node.
    func GoRuntime() Setter {
    	return func(ctx context.Context, node *v1.Node) error {
    		node.Status.NodeInfo.OperatingSystem = goruntime.GOOS
    		node.Status.NodeInfo.Architecture = goruntime.GOARCH
    		return nil
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 12:12:04 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  8. pkg/kubelet/userns/userns_manager_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package userns
    
    import (
    	"errors"
    	"fmt"
    	"os"
    	goruntime "runtime"
    	"testing"
    
    	"github.com/stretchr/testify/assert"
    	"github.com/stretchr/testify/require"
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_test.go

    			nodeLabels:  map[string]string{v1.LabelOSStable: goruntime.GOOS, v1.LabelArchStable: goruntime.GOARCH},
    			podSelector: map[string]string{v1.LabelOSStable: "dummyOS"},
    			podStatus:   v1.PodFailed,
    		},
    		{
    			name:        "correct OS label, correct pod selector, admission denied",
    			nodeLabels:  map[string]string{v1.LabelOSStable: goruntime.GOOS, v1.LabelArchStable: goruntime.GOARCH},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  10. cmd/kube-proxy/app/server_linux_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package app
    
    import (
    	"fmt"
    	"net"
    	"os"
    	"path/filepath"
    	"reflect"
    	goruntime "runtime"
    	"strings"
    	"testing"
    	"time"
    
    	"github.com/spf13/pflag"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top