Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
Signed-off-by: michal.gubricky <[email protected]>
  • Loading branch information
michal-gubricky committed Nov 19, 2024
1 parent 379e2d0 commit c6dc0b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
command:
- bash
args: ["-c","go tool test2json ./custom.test -test.v | tee ${SONOBUOY_RESULTS_DIR}/out.json ; echo ${SONOBUOY_RESULTS_DIR}/out.json > ${SONOBUOY_RESULTS_DIR}/done"]
image: ghcr.io/sovereigncloudstack/standards/scs-kaas-conformance:dev
image: registry.dnation.cloud/test-mg/scsconformance:dev #ghcr.io/sovereigncloudstack/standards/scs-kaas-conformance:dev
env:
- name: NS_PREFIX
value: custom
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,23 +549,6 @@ func isPortSecuredWithHTTPS(ip string, port int32, timeout time.Duration) bool {
return true
}

// waitForDirectory waits for a directory to become available at a specified path.
func waitForDirectory(path string, timeout time.Duration) error {
start := time.Now()
for time.Since(start) < timeout {
if info, err := os.Stat(path); err == nil && info.IsDir() {
return nil
}
time.Sleep(5 * time.Second)
}
return fmt.Errorf("directory %s not found after %v", path, timeout)
}

// isConfigzFile checks if a file is a configz.json file.
func isConfigzFile(fileName string) bool {
return fileName != "" && (fileName[0:8] == "configz-")
}

// readKubeletConfigFromFile reads and parses the Kubelet configuration from a file.
func readKubeletConfigFromFile(path string) (*KubeletConfig, error) {
fmt.Printf("Reading Kubelet config from file: %s\n", path)
Expand Down

0 comments on commit c6dc0b5

Please sign in to comment.