diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index d216d469..43dbe9ee 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: '>=1.21.3' + go-version: '>=1.25.0' - name: build run: make build testing: @@ -49,7 +49,7 @@ jobs: key: ${{ runner.os }}-binaries-${{ hashFiles('**/go.sum') }} - uses: actions/setup-go@v4 with: - go-version: '>=1.21.3' + go-version: '>=1.25.0' - name: run tests run: make test diff --git a/pkg/ocp/sources.go b/pkg/ocp/sources.go index 15296c4e..351cfcdc 100644 --- a/pkg/ocp/sources.go +++ b/pkg/ocp/sources.go @@ -78,9 +78,9 @@ type SourceConfig struct { // GitConfig represents the git source control configuration for a source. type GitConfig struct { Repo string `json:"repo"` - Reference string `json:"reference"` + Reference string `json:"reference,omitempty"` Commit string `json:"commit,omitempty"` - Path string `json:"path"` + Path string `json:"path,omitempty"` IncludedFiles []string `json:"included_files,omitempty"` ExcludedFiles []string `json:"excluded_files,omitempty"` CredentialID string `json:"credentials,omitempty"` @@ -89,7 +89,7 @@ type GitConfig struct { // Datasource represents a datasource for a source. type Datasource struct { Name string `json:"name" yaml:"name"` - Path string `json:"path" yaml:"path"` + Path string `json:"path,omitempty" yaml:"path,omitempty"` Type string `json:"type" yaml:"type"` TransformQuery string `json:"transform_query,omitempty" yaml:"transform_query,omitempty"` Config map[string]interface{} `json:"config,omitempty" yaml:"config,omitempty"`