Skip to content

feat: add sync-kme-assets to import KME deploy from GitHub - #334

Open
michalskrivanek wants to merge 1 commit into
openshift-virtualization:mainfrom
michalskrivanek:sync-kme
Open

feat: add sync-kme-assets to import KME deploy from GitHub#334
michalskrivanek wants to merge 1 commit into
openshift-virtualization:mainfrom
michalskrivanek:sync-kme

Conversation

@michalskrivanek

Copy link
Copy Markdown
Contributor

Add hack/sync-kme-assets.py with make sync-kme-assets and verify-kme-assets targets. Fetches kubevirt-metrics-exporter deploy manifests and applies autopilot transforms (DaemonSet template, namespace monitoring label). Remove redundant metrics-exporter env override unit tests.

@openshift-ci

openshift-ci Bot commented Aug 22, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tiraboschi for approval. For more information see the Code Review Process.

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

Details Needs approval from an approver in each of these files:

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

@michalskrivanek

Copy link
Copy Markdown
Contributor Author

/cc @tiraboschi

Add hack/sync-kme-assets.sh with make sync-kme-assets and verify-kme-assets
targets. Fetches kubevirt-metrics-exporter deploy manifests and applies
autopilot transforms (DaemonSet template, namespace monitoring label).
Remove redundant metrics-exporter env override unit tests.

Signed-off-by: Michal Skrivanek <michal.skrivanek@redhat.com>
Assisted-by: composer-auto
Comment thread hack/sync-kme-assets.sh
Comment on lines +91 to +109
namespace_yaml() {
cat <<'EOF'
apiVersion: v1
kind: Namespace
metadata:
name: kubevirt-metrics-exporter
labels:
openshift.io/cluster-monitoring: "true"
EOF
}

write_namespace_file() {
local dest=$1
local tmp
tmp="$(mktemp)"
namespace_yaml > "${tmp}"
write_or_compare_file "${dest}" "${tmp}"
rm -f "${tmp}"
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread hack/README.md
|---|---|
| `deploy/base/daemonset.yaml` | `kubevirt-metrics-exporter.yaml.tpl` |
| `deploy/base/namespace.yaml` | `namespace.yaml` (+ monitoring label) |
| `deploy/openshift/datasource.yaml` | `datasource.yaml` |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think we are transforming this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants