Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 211 for traits (0.13 sec)

  1. plugin/pkg/admission/nodetaint/admission_test.go

    			if err != nil {
    				t.Errorf("nodePlugin.Admit() error = %v", err)
    			}
    			node, _ := attributes.GetObject().(*api.Node)
    			if !reflect.DeepEqual(node.Spec.Taints, tt.expectedTaints) {
    				t.Errorf("Unexpected Node taints. Got %v\nExpected: %v", node.Spec.Taints, tt.expectedTaints)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 06 04:56:21 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  2. pkg/apis/core/taint_test.go

    		expectMatch  bool
    	}{
    		{
    			description: "two taints with the same key,value,effect should match",
    			taint: &Taint{
    				Key:    "foo",
    				Value:  "bar",
    				Effect: TaintEffectNoSchedule,
    			},
    			taintToMatch: Taint{
    				Key:    "foo",
    				Value:  "bar",
    				Effect: TaintEffectNoSchedule,
    			},
    			expectMatch: true,
    		},
    		{
    			description: "two taints with the same key,effect but different value should match",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 16 13:06:01 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/core/v1/taint_test.go

    		expectMatch  bool
    	}{
    		{
    			description: "two taints with the same key,value,effect should match",
    			taint: &Taint{
    				Key:    "foo",
    				Value:  "bar",
    				Effect: TaintEffectNoSchedule,
    			},
    			taintToMatch: Taint{
    				Key:    "foo",
    				Value:  "bar",
    				Effect: TaintEffectNoSchedule,
    			},
    			expectMatch: true,
    		},
    		{
    			description: "two taints with the same key,effect but different value should match",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 16 13:06:01 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/helper/taint_test.go

    	}{
    		{
    			name: "should include the taints with NoSchedule effect",
    			taint: &v1.Taint{
    				Effect: v1.TaintEffectNoSchedule,
    			},
    			expected: true,
    		},
    		{
    			name: "should include the taints with NoExecute effect",
    			taint: &v1.Taint{
    				Effect: v1.TaintEffectNoExecute,
    			},
    			expected: true,
    		},
    		{
    			name: "should not include the taints with PreferNoSchedule effect",
    			taint: &v1.Taint{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 10 01:04:30 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  5. cmd/acl-handlers.go

    					r.URL)
    				return
    			}
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    
    		if len(acl.AccessControlList.Grants) == 0 {
    			writeErrorResponse(ctx, w, toAPIError(ctx, NotImplemented{}), r.URL)
    			return
    		}
    
    		if acl.AccessControlList.Grants[0].Permission != "FULL_CONTROL" {
    			writeErrorResponse(ctx, w, toAPIError(ctx, NotImplemented{}), r.URL)
    			return
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. plugin/pkg/admission/nodetaint/admission.go

    	notReadyTaint := api.Taint{
    		Key:    v1.TaintNodeNotReady,
    		Effect: api.TaintEffectNoSchedule,
    	}
    	for _, taint := range node.Spec.Taints {
    		if taint.MatchTaint(notReadyTaint) {
    			// the taint already exists.
    			return
    		}
    	}
    	node.Spec.Taints = append(node.Spec.Taints, notReadyTaint)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 06 04:56:21 UTC 2019
    - 2.5K bytes
    - Viewed (0)
  7. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/WithKotlinDeprecations.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.smoketests
    
    import groovy.transform.SelfType
    
    @SelfType(BaseDeprecations)
    trait WithKotlinDeprecations {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 743 bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/DryRunFilteringTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.testing
    
    /**
     * Overrides methods from {@link AbstractTestFilteringIntegrationTest}
     */
    trait DryRunFilteringTest {
        boolean isDryRun() {
            return true
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 805 bytes
    - Viewed (0)
  9. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/TestKitDependencyBlock.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.testkit.runner.enduser
    
    trait TestKitDependencyBlock {
    
        String gradleTestKitDependency() {
            """
                dependencies {
                    testImplementation gradleTestKit()
                }
            """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 856 bytes
    - Viewed (0)
  10. platforms/software/plugins-version-catalog/src/integTest/groovy/org/gradle/catalog/VersionCatalogSupport.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.catalog
    
    import static org.gradle.util.internal.TextUtil.normaliseLineSeparators
    
    trait VersionCatalogSupport {
        void expectPlatformContents(File expectedTomlFile = file("build/version-catalog/libs.versions.toml"), String resultFile) {
            assert expectedTomlFile.exists()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 16 12:28:14 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top