Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit 5101099

Browse files
authored
Merge pull request #62 from layer5io/kumarabd/feature/smi
fixes for smi
2 parents 5f2679a + 1e494a2 commit 5101099

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

osm/smi/smi.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"helm.sh/helm/v3/pkg/chart/loader"
1313
"helm.sh/helm/v3/pkg/kube"
1414
corev1 "k8s.io/api/core/v1"
15+
kubeerror "k8s.io/apimachinery/pkg/api/errors"
1516
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1617
"k8s.io/client-go/kubernetes"
1718

@@ -144,7 +145,7 @@ func (test *SmiTest) installConformanceTool() error {
144145
"app.kubernetes.io/managed-by": "Helm",
145146
},
146147
}}, metav1.CreateOptions{})
147-
if err != nil {
148+
if err != nil && !kubeerror.IsAlreadyExists(err) {
148149
return err
149150
}
150151

0 commit comments

Comments
 (0)