Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
chore: spell check
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlawr authored and thxCode committed Aug 14, 2023
1 parent 399d606 commit 67b02e5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions pkg/dao/service_relationship.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,19 +158,19 @@ func serviceRelationshipGetDependencies(
copy(path, d.Path)
path = append(path, entity.ID)

denpendency := &model.ServiceRelationship{
dependency := &model.ServiceRelationship{
ServiceID: entity.ID,
DependencyID: d.ServiceID,
Type: types.ServiceRelationshipTypeImplicit,
Path: path,
}

// Check if there is a dependency cycle.
if existCycle := ServiceRelationshipCheckCycle(denpendency); existCycle {
if existCycle := ServiceRelationshipCheckCycle(dependency); existCycle {
return nil, errors.New("service dependency contains cycle")
}

dependencies = append(dependencies, denpendency)
dependencies = append(dependencies, dependency)
}
}

Expand Down
8 changes: 4 additions & 4 deletions pkg/operator/k8s/kubestatus/dig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func Test_digPodErrorReason(t *testing.T) {
Name: "init-volume",
State: core.ContainerState{
Waiting: &core.ContainerStateWaiting{
Message: `Back-off pulling image "volume-path-parser:apline"`,
Message: `Back-off pulling image "volume-path-parser:alpine"`,
Reason: "ImagePullBackOff",
},
},
Expand All @@ -97,7 +97,7 @@ func Test_digPodErrorReason(t *testing.T) {
},
},
},
expected: `Init Container "init-volume": ImagePullBackOff, Back-off pulling image "volume-path-parser:apline"`,
expected: `Init Container "init-volume": ImagePullBackOff, Back-off pulling image "volume-path-parser:alpine"`,
},
{
name: "container terminate by signal",
Expand All @@ -123,14 +123,14 @@ func Test_digPodErrorReason(t *testing.T) {
Name: "nginx",
State: core.ContainerState{
Waiting: &core.ContainerStateWaiting{
Message: `Back-off pulling image "nginx:apline"`,
Message: `Back-off pulling image "nginx:alpine"`,
Reason: "ImagePullBackOff",
},
},
},
},
},
expected: `Container "nginx": ImagePullBackOff, Back-off pulling image "nginx:apline"`,
expected: `Container "nginx": ImagePullBackOff, Back-off pulling image "nginx:alpine"`,
},
}
for _, tc := range testCases {
Expand Down
4 changes: 2 additions & 2 deletions pkg/serviceresources/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func SetKeys(

cache[entity.ID] = entity

if IsOperatable(entity) && entity.Edges.Connector != nil {
if IsOperable(entity) && entity.Edges.Connector != nil {
var err error

op, ok := operators[entity.Edges.Connector.ID]
Expand Down Expand Up @@ -177,7 +177,7 @@ func GetGraphVertexType(m *model.ServiceResource) string {
return types.VertexKindServiceResource
}

func IsOperatable(m *model.ServiceResource) bool {
func IsOperable(m *model.ServiceResource) bool {
return m.Shape == types.ServiceResourceShapeInstance &&
(m.Mode == types.ServiceResourceModeManaged || m.Mode == types.ServiceResourceModeDiscovered)
}
2 changes: 1 addition & 1 deletion pkg/terraform/block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type (
},
}
block2.Print("hcl") will generate the string:
data "lable1" "label2" {
data "label1" "label2" {
test = "test"
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/terraform/parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestParseInstanceID(t *testing.T) {
}
}

func TestParseProvidreString(t *testing.T) {
func TestParseProviderString(t *testing.T) {
testCases := []struct {
input string
expectedOutput *AbsProviderConfig
Expand Down

0 comments on commit 67b02e5

Please sign in to comment.