Skip to content

Commit

Permalink
Merge pull request #3231 from saschagrunert/obs-specs
Browse files Browse the repository at this point in the history
`krel obs specs`: Stronger defaults
  • Loading branch information
k8s-ci-robot authored Aug 28, 2023
2 parents 7288ca7 + ec4761e commit e229265
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/obs/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ var (
const (
DefaultReleaseDownloadLinkBase = "gs://kubernetes-release/release"
DefaultRevision = "0"
DefaultSpecTemplatePath = "cmd/krel/templates/latest"
)

func IsSupported(field string, input, expected []string) bool {
Expand Down
2 changes: 1 addition & 1 deletion pkg/obs/obs.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const (

// defaultSpecTemplatePath is path inside Google Cloud Build where package
// specs for kubeadm, kubectl, and kubelet are located.
defaultSpecTemplatePath = workspaceDir + "/go/src/k8s.io/release/cmd/krel/templates/latest"
defaultSpecTemplatePath = workspaceDir + "/go/src/k8s.io/release/" + consts.DefaultSpecTemplatePath

// obsRoot is path inside Google Cloud Build where OBS project and packages
// are checked out.
Expand Down
3 changes: 3 additions & 0 deletions pkg/obs/specs/specs.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ func DefaultOptions() *Options {
consts.ArchitecturePPC64,
consts.ArchitectureS390X,
},
Channel: consts.ChannelTypeRelease,
SpecOutputPath: ".",
SpecTemplatePath: consts.DefaultSpecTemplatePath,
}
}

Expand Down

0 comments on commit e229265

Please sign in to comment.