Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for NewTimestamp (0.14 sec)

  1. pkg/controller/deployment/sync_test.go

    			oldRSs: []*apps.ReplicaSet{rs("foo-v1", 3, nil, oldTimestamp)},
    
    			expectedNew: rs("foo-v2", 4, nil, newTimestamp),
    			expectedOld: []*apps.ReplicaSet{rs("foo-v1", 6, nil, oldTimestamp)},
    		},
    		{
    			name:          "proportional scaling: 5 -> 3",
    			deployment:    newDeployment("foo", 3, nil, nil, nil, nil),
    			oldDeployment: newDeployment("foo", 5, nil, nil, nil, nil),
    
    			newRS:  rs("foo-v2", 2, nil, newTimestamp),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  2. pkg/kubelet/types/types.go

    }
    
    // Timestamp wraps around time.Time and offers utilities to format and parse
    // the time using RFC3339Nano
    type Timestamp struct {
    	time time.Time
    }
    
    // NewTimestamp returns a Timestamp object using the current time.
    func NewTimestamp() *Timestamp {
    	return &Timestamp{time.Now()}
    }
    
    // ConvertToTimestamp takes a string, parses it using the RFC3339NanoLenient layout,
    // and converts it to a Timestamp object.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 13:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AbstractGradleceptionSmokeTest.groovy

        SmokeTestPreconditions.GradleBuildJvmSpecAvailable
    ])
    abstract class AbstractGradleceptionSmokeTest extends AbstractSmokeTest {
    
        public static final String TEST_BUILD_TIMESTAMP = "-PbuildTimestamp=" + newTimestamp()
        public static final String TEST_JAVA_INSTALLATIONS = "-Porg.gradle.java.installations.paths=${AvailableJavaHomes.getAvailableJvms().collect { it.javaHome.absolutePath }.join(",")}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. analysis/analysis-api-standalone/tests/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/session/builder/sessionBuilderTestUtils.kt

            override fun getInputStream(): InputStream {
                error("Not yet implemented")
            }
    
            override fun getOutputStream(requestor: Any?, newModificationStamp: Long, newTimeStamp: Long): OutputStream {
                error("Not yet implemented")
            }
    
            override fun contentsToByteArray(): ByteArray = ktFile.text.toByteArray()
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. pkg/kubelet/types/types_test.go

    		require.Equal(t, result, data.expectStatuses, "Unexpected result from SortStatusesOfInitContainers: %v", result)
    	}
    }
    
    func TestNewTimestamp(t *testing.T) {
    	timeStart := time.Now()
    	timestamp := NewTimestamp()
    	timeEnd := time.Now()
    	assert.WithinDuration(t, timestamp.Get(), timeStart, timeEnd.Sub(timeStart))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 19 08:28:25 UTC 2022
    - 6.2K bytes
    - Viewed (0)
  6. pkg/kubelet/config/config.go

    func recordFirstSeenTime(pod *v1.Pod) {
    	klog.V(4).InfoS("Receiving a new pod", "pod", klog.KObj(pod))
    	pod.Annotations[kubetypes.ConfigFirstSeenAnnotationKey] = kubetypes.NewTimestamp().GetString()
    }
    
    // updateAnnotations returns an Annotation map containing the api annotation map plus
    // locally managed annotations
    func updateAnnotations(existing, ref *v1.Pod) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 16.7K bytes
    - Viewed (0)
Back to top