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

Allow string slices as krel obs arguments #3267

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

saschagrunert
Copy link
Member

@saschagrunert saschagrunert commented Sep 13, 2023

What type of PR is this?

/kind feature

What this PR does / why we need it:

This fixes the usage of packages and architectures as mentioned in #3224 by using a custom separator.

We cannot use the GCB separator substitution (see gcloud topic escaping) because GCB complains that a 'build tag must match format "^[\w][\w.-]{0,127}$"'.

Which issue(s) this PR fixes:

Fixes #3224

Special notes for your reviewer:

Tested via:

> export TOOL_ORG=saschagrunert TOOL_REF=arches && go run ./cmd/krel obs stage --architectures amd64,arm64,ppc64le --packages cri-o --version 1.28.1 --project isv:kubernetes:core:shared:build --stream

https://console.cloud.google.com/cloud-build/builds/8480b7dd-2b36-44c2-87c1-f2af0caeaac6?project=648026197307

Does this PR introduce a user-facing change?

Allow string slices (`architectures` and `packages`) as `krel obs` arguments.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority labels Sep 13, 2023
@k8s-ci-robot k8s-ci-robot added area/release-eng Issues or PRs related to the Release Engineering subproject sig/release Categorizes an issue or PR as relevant to SIG Release. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 13, 2023
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 13, 2023
cmd/krel/cmd/obs_stage.go Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 13, 2023
This fixes the usage of packages and architectures as mentioned in
kubernetes#3224 by using a custom
separator.

We cannot use the GCB separator substitution (see `gcloud topic
escaping`) because GCB complains that a 'build tag must match format
"^[\\w][\\w.-]{0,127}$"'.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
Copy link
Member

@xmudrii xmudrii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for taking care of this!
/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 13, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cpanato, saschagrunert, xmudrii

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [cpanato,saschagrunert,xmudrii]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 8d659f8 into kubernetes:master Sep 13, 2023
9 checks passed
@saschagrunert saschagrunert deleted the arches branch September 13, 2023 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/release-eng Issues or PRs related to the Release Engineering subproject cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/release Categorizes an issue or PR as relevant to SIG Release. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

krel obs stage and krel obs release can't take multiple arguments when submitting job to GCB
4 participants