Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 1,843 for lake (0.04 sec)

  1. istioctl/pkg/cli/mock_test.go

    	"k8s.io/cli-runtime/pkg/resource"
    	"k8s.io/client-go/rest/fake"
    	cmdtesting "k8s.io/kubectl/pkg/cmd/testing"
    	"k8s.io/kubectl/pkg/cmd/util"
    
    	"istio.io/istio/pkg/kube"
    )
    
    func init() {
    	MakeKubeFactory = func(k kube.CLIClient) util.Factory {
    		tf := cmdtesting.NewTestFactory()
    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. pkg/printers/internalversion/printers_test.go

    					ObjectMeta: metav1.ObjectMeta{Name: "pod-template-2"},
    					Spec: api.PodSpec{
    						Containers: []api.Container{
    							{
    								Name:  "fake-container1",
    								Image: "fake-image1",
    							},
    							{
    								Name:  "fake-container2",
    								Image: "fake-image2",
    							},
    						},
    					},
    				},
    			},
    
    			options: printers.GenerateOptions{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/compile_test.go

    				"request.kind.group == 'example.com' && request.kind.version == 'v1' && request.kind.kind == 'Fake'",
    				"request.resource.group == 'example.com' && request.resource.version == 'v1' && request.resource.resource == 'fake' && request.subResource == 'scale'",
    				"request.requestKind.group == 'example.com' && request.requestKind.version == 'v1' && request.requestKind.kind == 'Fake'",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/managedfields/managedfieldstest/testfieldmanager.go

    // simulate the behavior of Server-Side Apply and field tracking. This
    // also has a few methods to get a sense of the state of the object.
    //
    // This TestFieldManager uses a series of "fake" objects to simulate
    // some behavior which come with the limitation that you can only use
    // one version since there is no version conversion logic.
    //
    // You can use this rather than NewDefaultTestFieldManager if you want
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 16 20:03:48 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. cmd/kubeadm/test/resources/configmap.go

    	clientset "k8s.io/client-go/kubernetes"
    
    	"k8s.io/kubernetes/cmd/kubeadm/app/util/apiclient"
    )
    
    // FakeConfigMap represents a fake config map
    type FakeConfigMap struct {
    	Name string
    	Data map[string]string
    }
    
    // Create creates a fake configmap using the provided client
    func (c *FakeConfigMap) Create(client clientset.Interface) error {
    	return apiclient.CreateOrUpdateConfigMap(client, &v1.ConfigMap{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 17 14:40:46 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  6. pkg/kubelet/status/status_manager_test.go

    }
    
    func TestSyncPod(t *testing.T) {
    	syncer := newTestManager(&fake.Clientset{})
    	testPod := getTestPod()
    	syncer.kubeClient = fake.NewSimpleClientset(testPod)
    	syncer.SetPodStatus(testPod, getRandomPodStatus())
    	verifyActions(t, syncer, []core.Action{getAction(), patchAction()})
    }
    
    func TestSyncPodChecksMismatchedUID(t *testing.T) {
    	syncer := newTestManager(&fake.Clientset{})
    	pod := getTestPod()
    	pod.UID = "first"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  7. pkg/config/model_test.go

    			json:   `{"controllerName":"foobar","fake-field":1}`,
    			output: &k8s.GatewayClassSpec{ControllerName: "foobar"},
    		},
    		// mock type
    		{
    			input:  &config.MockConfig{},
    			json:   `{"key":"foobar","fake-field":1}`,
    			output: &config.MockConfig{Key: "foobar"},
    		},
    		// XDS type, to test golang/proto
    		{
    			input:  &cluster.Cluster{},
    			json:   `{"name":"foobar","fake-field":1}`,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 17:37:32 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. pkg/registry/rbac/rest/storage_rbac_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package rest
    
    import (
    	"testing"
    
    	"k8s.io/client-go/kubernetes/fake"
    	"k8s.io/kubernetes/plugin/pkg/auth/authorizer/rbac/bootstrappolicy"
    )
    
    func BenchmarkEnsureRBACPolicy(b *testing.B) {
    	for n := 0; n < b.N; n++ {
    		var policy = &PolicyData{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 02 03:03:06 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  9. pkg/kubectl/cmd/convert/convert_test.go

    			t.Run(fmt.Sprintf("%s %s", tc.name, field), func(t *testing.T) {
    				tf := cmdtesting.NewTestFactory().WithNamespace("test")
    				defer tf.Cleanup()
    
    				tf.UnstructuredClient = &fake.RESTClient{
    					Client: fake.CreateHTTPClient(func(req *http.Request) (*http.Response, error) {
    						t.Fatalf("unexpected request: %#v\n%#v", req.URL, req)
    						return nil, nil
    					}),
    				}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 03:21:17 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. src/net/net_fake_test.go

    // GOOS=js and GOOS=wasip1 do not have typical socket networking capabilities
    // found on other platforms. To help run test suites of the stdlib packages,
    // an in-memory "fake network" facility is implemented.
    //
    // The tests in this files are intended to validate the behavior of the fake
    // network stack on these platforms.
    
    import (
    	"errors"
    	"syscall"
    	"testing"
    )
    
    func TestFakePortExhaustion(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top