-
Notifications
You must be signed in to change notification settings - Fork 65
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
feat: add suffix to the s390x templates #649
feat: add suffix to the s390x templates #649
Conversation
generate-templates.yaml
Outdated
@@ -62,7 +62,7 @@ | |||
- name: Generate RHEL 8 templates | |||
template: | |||
src: rhel8.tpl.yaml | |||
dest: "{{ playbook_dir }}/dist/templates/{{ os }}-{{ item.workload }}-{{ item.flavor }}.yaml" | |||
dest: "{{ playbook_dir }}/dist/templates/{{ os }}-{{ item.workload }}-{{ item.flavor }}{{ '' if target_arch == 'x86_64' else '-' + target_arch }}.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to separate the generated templates also by path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ultimately, the release will consist of three files: one containing all architectures and one for each supported architecture.
As long as it integrates nicely with SSP we can keep it that way.
/retest |
1 similar comment
/retest |
/lgtm |
/retest |
1 similar comment
/retest |
Would you please specify in commit message which templates have the s390x version? |
8a7b2f3
to
756b0fa
Compare
/hold
And then just do"
? |
@ksimon1 comment updated. No new s390x templates are planned for now. |
756b0fa
to
efd3183
Compare
generate-templates.yaml
Outdated
@@ -27,7 +29,7 @@ | |||
- name: Generate RHEL 9 templates | |||
template: | |||
src: rhel9.tpl.yaml | |||
dest: "{{ playbook_dir }}/dist/templates/{{ os }}-{{ item.workload }}-{{ item.flavor }}.yaml" | |||
dest: "{{ playbook_dir }}/dist/templates/{{ os }}-{{ item.workload }}-{{ item.flavor }}{{ '' if target_arch == 'x86_64' else '-' + target_arch }}.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use the suffix here too :)
efd3183
to
e03adcc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
/retest |
1 similar comment
/retest |
e03adcc
to
0d85b86
Compare
Can you consider adding a new label on the template that would contain the architecture? Then we can easily filter templates based on it. |
0d85b86
to
573797e
Compare
/retest |
2 similar comments
/retest |
/retest |
templates/centos-stream9.tpl.yaml
Outdated
@@ -49,13 +49,14 @@ metadata: | |||
{% if item.default %} | |||
template.kubevirt.io/default-os-variant: "true" | |||
{% endif %} | |||
architecture: "{{ 'amd64' if target_arch == 'x86_64' else target_arch }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The label should be prefixed with template.kubevirt.io/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
This change also involves renaming the templates themselves. The end-to-end (e2e) tests require minimal adjustments. The following templates will be generated for s390x: - CentOS Stream 9 - Fedora - RHEL 8 - RHEL 9 - Ubuntu Signed-off-by: Nestor Acuna Blanco <[email protected]>
573797e
to
6bc94e4
Compare
/unhold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 0xFelix 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:
Approvers can indicate their approval by writing |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold
@akrejcir want to take a final look?
/lgtm |
/unhold |
This change also involves renaming the templates themselves. The
end-to-end (e2e) tests require minimal adjustments.
The following templates will be generated for s390x:
What this PR does / why we need it: s390x enablement
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Release note: