File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,9 @@ package aiven_services
2
2
3
3
import (
4
4
"fmt"
5
- "reflect"
6
5
"strings"
7
6
8
- "github.com/nais/liberator/pkg/apis/aiven.nais.io/v1"
7
+ aiven_nais_io_v1 "github.com/nais/liberator/pkg/apis/aiven.nais.io/v1"
9
8
)
10
9
11
10
type KafkaPool int64
@@ -61,5 +60,5 @@ func (k *Kafka) Generate(generator SecretGenerator) error {
61
60
}
62
61
63
62
func (k * Kafka ) Is (other Service ) bool {
64
- return reflect . TypeOf ( other ) == reflect . TypeOf ( k )
63
+ return k . Name ( ) == other . Name ( )
65
64
}
Original file line number Diff line number Diff line change @@ -2,10 +2,9 @@ package aiven_services
2
2
3
3
import (
4
4
"fmt"
5
- "reflect"
6
5
"strings"
7
6
8
- "github.com/nais/liberator/pkg/apis/aiven.nais.io/v1"
7
+ aiven_nais_io_v1 "github.com/nais/liberator/pkg/apis/aiven.nais.io/v1"
9
8
)
10
9
11
10
type OpenSearchAccess int64
@@ -65,5 +64,5 @@ func (o *OpenSearch) Generate(generator SecretGenerator) error {
65
64
}
66
65
67
66
func (o * OpenSearch ) Is (other Service ) bool {
68
- return reflect . TypeOf ( other ) == reflect . TypeOf ( o )
67
+ return o . Name ( ) == other . Name ( )
69
68
}
You can’t perform that action at this time.
0 commit comments