Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for GoRuntime (0.16 sec)

  1. 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)
  2. 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)
  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. 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)
  10. pkg/test/framework/suite.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package framework
    
    import (
    	"errors"
    	"fmt"
    	"os"
    	"path/filepath"
    	"regexp"
    	goruntime "runtime"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    
    	"github.com/hashicorp/go-multierror"
    
    	kubelib "istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test/echo"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top