Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 228 for mkdtemp (0.23 sec)

  1. cmd/kubeadm/app/util/pkiutil/pki_helpers_test.go

    	if err != nil {
    		t.Fatalf("Couldn't create tmpdir")
    	}
    	defer os.RemoveAll(tmpdir)
    
    	actual := WriteKey(tmpdir, "foo", rootCAKey)
    	if actual != nil {
    		t.Errorf(
    			"failed WriteCertAndKey with an error: %v",
    			actual,
    		)
    	}
    }
    
    func TestWritePublicKey(t *testing.T) {
    	tmpdir, err := os.MkdirTemp("", "")
    	if err != nil {
    		t.Fatalf("Couldn't create tmpdir")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 21:49:21 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. pkg/kubelet/logs/container_log_manager_test.go

    	runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
    	critest "k8s.io/cri-api/pkg/apis/testing"
    	testingclock "k8s.io/utils/clock/testing"
    )
    
    func TestGetAllLogs(t *testing.T) {
    	dir, err := os.MkdirTemp("", "test-get-all-logs")
    	require.NoError(t, err)
    	defer os.RemoveAll(dir)
    	testLogs := []string{
    		"test-log.11111111-111111.gz",
    		"test-log",
    		"test-log.00000000-000000.gz",
    		"test-log.19900322-000000.gz",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/hack/verify-codegen.sh

    # limitations under the License.
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    SCRIPT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
    DIFFROOT="${SCRIPT_ROOT}/pkg"
    TMP_DIFFROOT="$(mktemp -d -t "$(basename "$0").XXXXXX")/pkg"
    
    cleanup() {
      rm -rf "${TMP_DIFFROOT}"
    }
    trap "cleanup" EXIT SIGINT
    
    cleanup
    
    mkdir -p "${TMP_DIFFROOT}"
    cp -a "${DIFFROOT}"/* "${TMP_DIFFROOT}"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 05 23:05:26 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. pkg/volume/util/fs/fs_windows_test.go

    )
    
    func TestDiskUsage(t *testing.T) {
    
    	dir1, err := os.MkdirTemp("", "dir_1")
    	if err != nil {
    		t.Fatalf("TestDiskUsage failed: %s", err.Error())
    	}
    	defer os.RemoveAll(dir1)
    
    	tmpfile1, err := os.CreateTemp(dir1, "test")
    	if _, err = tmpfile1.WriteString("just for testing"); err != nil {
    		t.Fatalf("TestDiskUsage failed: %s", err.Error())
    	}
    	dir2, err := os.MkdirTemp(dir1, "dir_2")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. operator/scripts/run_update_golden_snapshots.sh

    ROOTDIR="${SCRIPTPATH}/../.."
    
    MANIFESTS_DIR="${ROOTDIR}/manifests"
    CHARTS_SNAPSHOT="${ROOTDIR}/operator/cmd/mesh/testdata/manifest-generate"
    
    # Clean up existing files
    rm -Rf "${CHARTS_SNAPSHOT:?}/data-snapshot.tar.gz"
    
    cd "$(mktemp -d)"
    cp -Rf "${MANIFESTS_DIR}" ./
    rm -f ./**/*.md
    tar cfz data-snapshot.tar.gz manifests
    cp data-snapshot.tar.gz "${CHARTS_SNAPSHOT}"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 20 23:10:38 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/hack/verify-codegen.sh

    # limitations under the License.
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    SCRIPT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
    DIFFROOT="${SCRIPT_ROOT}/pkg"
    TMP_DIFFROOT="$(mktemp -d -t "$(basename "$0").XXXXXX")/pkg"
    
    cleanup() {
      rm -rf "${TMP_DIFFROOT}"
    }
    trap "cleanup" EXIT SIGINT
    
    cleanup
    
    mkdir -p "${TMP_DIFFROOT}"
    cp -a "${DIFFROOT}"/* "${TMP_DIFFROOT}"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 05 23:05:26 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. util/gradle_integration_tests.sh

    #         integration-tests/gradle/gradlew
    #         integration-tests/gradle/gradlew.bat
    # Please commit your changes or stash them before you switch branches.
    
    GRADLE_TEMP="$(mktemp -d)"
    trap 'rm -rf "${GRADLE_TEMP}"' EXIT
    
    # The Gradle tests need the pom.xml only to read its version number.
    # (And the file needs to be two directory levels up from the Gradle build file.)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 16 20:48:20 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. src/io/ioutil/tempfile.go

    // will not choose the same directory. It is the caller's responsibility
    // to remove the directory when no longer needed.
    //
    // Deprecated: As of Go 1.17, this function simply calls [os.MkdirTemp].
    func TempDir(dir, pattern string) (name string, err error) {
    	return os.MkdirTemp(dir, pattern)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:34:35 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cpumanager/state/state_checkpoint_test.go

    						"container1": cpuset.New(4, 5, 6),
    						"container2": cpuset.New(1, 2, 3),
    					},
    				},
    				defaultCPUSet: cpuset.New(1, 2, 3),
    			},
    		},
    	}
    
    	// create temp dir
    	testingDir, err := os.MkdirTemp("", "cpumanager_state_test")
    	require.NoError(t, err)
    	defer os.RemoveAll(testingDir)
    	// create checkpoint manager for testing
    	cpm, err := checkpointmanager.NewCheckpointManager(testingDir)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  10. cluster/images/etcd-version-monitor/Makefile

    ARCH:=amd64
    GOLANG_VERSION?=1.19.9
    REGISTRY?=staging-k8s.gcr.io
    TAG?=0.1.3
    IMAGE:=$(REGISTRY)/etcd-version-monitor:$(TAG)
    CURRENT_DIR:=$(pwd)
    TEMP_DIR:=$(shell mktemp -d)
    
    build:
    	# Copy the necessary files for building the image to TEMP_DIR.
    	cp etcd-version-monitor.go Dockerfile $(TEMP_DIR)
    
    	# Compile etcd-version-monitor.
    	docker run --rm -it \
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 11 07:06:46 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top