Skip to content

Commit df41f2d

Browse files
committed
2 parents e74c074 + 450dbff commit df41f2d

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.drone.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
kind: pipeline
2+
type: docker
3+
name: default
4+
5+
steps:
6+
- name: test
7+
image: golang:1.20
8+
commands:
9+
- go build
10+
- go test -v

harness/api.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ func (api *APIRequest) GetConnector(account, org, project, identifier string) (C
387387
if err != nil {
388388
return ConnectorClass{}, err
389389
}
390+
if len(connector.Data.Connector.Identifier) == 0 {
391+
return ConnectorClass{}, fmt.Errorf("invalid connector")
392+
}
390393

391394
return connector.Data.Connector, nil
392395
}

harness/service.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ type ServiceYaml struct {
7878
} `yaml:"spec"`
7979
ValuesPaths []string `yaml:"valuesPaths"`
8080
} `yaml:"store"`
81+
ChartName string `yaml:"chartName"`
82+
ChartVersion string `yaml:"chartVersion"`
83+
HelmVersion string `yaml:"helmVersion"`
84+
SkipResourceVersioning bool `yaml:"skipResourceVersioning"`
8185
} `yaml:"spec"`
8286
} `yaml:"manifest"`
8387
} `yaml:"manifests"`

0 commit comments

Comments
 (0)