Skip to content

Commit

Permalink
loki: remove exiting clusterLogging objectr verification (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
elenagerman authored Sep 30, 2024
1 parent b4529a9 commit cec249c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 1 addition & 8 deletions tests/system-tests/internal/platform/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,10 @@ func GetLocalMirrorRegistryURL(apiClient *clients.Settings) (string, error) {
return "", err
}

lastIndex := len(mirrorRegistryMap) - 1
iter := 0

for registryURL, auth := range mirrorRegistryMap {
glog.V(90).Infof("registry URL: %s, auth: %s", registryURL, auth)

if iter == lastIndex {
return registryURL, nil
}

iter++
return registryURL, nil
}

return "", fmt.Errorf("local mirror registry url not found")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,7 @@ func CreateCLOInstance(ctx SpecContext) {
clusterLoggingObj := clusterlogging.NewBuilder(APIClient, vcoreparams.CLOInstanceName, vcoreparams.CLONamespace)

if clusterLoggingObj.Exists() {
err := clusterLoggingObj.Delete()
Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("Failed to delete ClusterLogging %s csv name from the %s namespace",
vcoreparams.CLOInstanceName, vcoreparams.CLONamespace))
_ = clusterLoggingObj.Delete()
}

glog.V(vcoreparams.VCoreLogLevel).Infof("Create new Cluster Logging instance %s in namespace %s",
Expand Down

0 comments on commit cec249c

Please sign in to comment.