Skip to content

Commit

Permalink
Merge pull request #5 from Fernando-Dourado/main
Browse files Browse the repository at this point in the history
two small but required changes
  • Loading branch information
aleksa11010 authored Mar 1, 2024
2 parents a5623d6 + 24a9871 commit 450dbff
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kind: pipeline
type: docker
name: default

steps:
- name: test
image: golang:1.20
commands:
- go build
- go test -v
3 changes: 3 additions & 0 deletions harness/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ func (api *APIRequest) GetConnector(account, org, project, identifier string) (C
if err != nil {
return ConnectorClass{}, err
}
if len(connector.Data.Connector.Identifier) == 0 {
return ConnectorClass{}, fmt.Errorf("invalid connector")
}

return connector.Data.Connector, nil
}
Expand Down
4 changes: 4 additions & 0 deletions harness/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ type ServiceYaml struct {
} `yaml:"spec"`
ValuesPaths []string `yaml:"valuesPaths"`
} `yaml:"store"`
ChartName string `yaml:"chartName"`
ChartVersion string `yaml:"chartVersion"`
HelmVersion string `yaml:"helmVersion"`
SkipResourceVersioning bool `yaml:"skipResourceVersioning"`
} `yaml:"spec"`
} `yaml:"manifest"`
} `yaml:"manifests"`
Expand Down

0 comments on commit 450dbff

Please sign in to comment.