Skip to content

Commit e229265

Browse files
authored
Merge pull request #3231 from saschagrunert/obs-specs
`krel obs specs`: Stronger defaults
2 parents 7288ca7 + ec4761e commit e229265

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

pkg/obs/consts/consts.go

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ var (
5757
const (
5858
DefaultReleaseDownloadLinkBase = "gs://kubernetes-release/release"
5959
DefaultRevision = "0"
60+
DefaultSpecTemplatePath = "cmd/krel/templates/latest"
6061
)
6162

6263
func IsSupported(field string, input, expected []string) bool {

pkg/obs/obs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const (
5858

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

6363
// obsRoot is path inside Google Cloud Build where OBS project and packages
6464
// are checked out.

pkg/obs/specs/specs.go

+3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ func DefaultOptions() *Options {
7878
consts.ArchitecturePPC64,
7979
consts.ArchitectureS390X,
8080
},
81+
Channel: consts.ChannelTypeRelease,
82+
SpecOutputPath: ".",
83+
SpecTemplatePath: consts.DefaultSpecTemplatePath,
8184
}
8285
}
8386

0 commit comments

Comments
 (0)