Skip to content

Commit 28fd928

Browse files
Remove unused functions
Signed-off-by: michal.gubricky <[email protected]>
1 parent fd8bf54 commit 28fd928

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

Tests/kaas/kaas-sonobuoy-tests/scs-conformance-sonobuoy-plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spec:
77
command:
88
- bash
99
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"]
10-
image: ghcr.io/sovereigncloudstack/standards/scs-kaas-conformance:dev
10+
image: registry.dnation.cloud/test-mg/scsconformance:dev #ghcr.io/sovereigncloudstack/standards/scs-kaas-conformance:dev
1111
env:
1212
- name: NS_PREFIX
1313
value: custom

Tests/kaas/kaas-sonobuoy-tests/scs_k8s_conformance_tests/scs_0217_cluster_hardening_test.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -549,23 +549,6 @@ func isPortSecuredWithHTTPS(ip string, port int32, timeout time.Duration) bool {
549549
return true
550550
}
551551

552-
// waitForDirectory waits for a directory to become available at a specified path.
553-
func waitForDirectory(path string, timeout time.Duration) error {
554-
start := time.Now()
555-
for time.Since(start) < timeout {
556-
if info, err := os.Stat(path); err == nil && info.IsDir() {
557-
return nil
558-
}
559-
time.Sleep(5 * time.Second)
560-
}
561-
return fmt.Errorf("directory %s not found after %v", path, timeout)
562-
}
563-
564-
// isConfigzFile checks if a file is a configz.json file.
565-
func isConfigzFile(fileName string) bool {
566-
return fileName != "" && (fileName[0:8] == "configz-")
567-
}
568-
569552
// readKubeletConfigFromFile reads and parses the Kubelet configuration from a file.
570553
func readKubeletConfigFromFile(path string) (*KubeletConfig, error) {
571554
fmt.Printf("Reading Kubelet config from file: %s\n", path)

0 commit comments

Comments
 (0)