Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

krel obs specs: Stronger defaults #3231

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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