Skip to content
New issue

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

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

Already on GitHub? # to your account

Introspect operator image to prevent skew with the sidecar #1425

Merged
merged 2 commits into from
Oct 2, 2023

Conversation

tnozicka
Copy link
Member

Description of your changes:
This PR let's the scylla operator image be introspected from pod status when run in the cluster.

Which issue is resolved by this Pull Request:
Resolves #1424

@scylla-operator-bot scylla-operator-bot bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 26, 2023
@scylla-operator-bot scylla-operator-bot bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 26, 2023
@tnozicka tnozicka force-pushed the resolve-image branch 6 times, most recently from 9ffadd4 to 7c2160e Compare September 27, 2023 08:16
@tnozicka tnozicka changed the title [WIP] Introspect operator image to prevent skew with the sidecar Introspect operator image to prevent skew with the sidecar Sep 27, 2023
@scylla-operator-bot scylla-operator-bot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 27, 2023
Copy link
Collaborator

@zimnx zimnx left a comment

Choose a reason for hiding this comment

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

good change, thanks!

@scylla-operator-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tnozicka, zimnx

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Member

@rzetelskik rzetelskik left a comment

Choose a reason for hiding this comment

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

It's a shame we have to pull the Pod's status for that, I though it could be possible with OCI compliant runtimes but it looks like the only way to do it now is hacky and may be unreliable due to pause containers (opencontainers/runtime-spec#1105 and containerd/containerd#8185).

Left two comments.

pkg/cmd/operator/operator.go Outdated Show resolved Hide resolved
pkg/cmd/operator/operator.go Show resolved Hide resolved
@rzetelskik
Copy link
Member

/assign @tnozicka

@rzetelskik
Copy link
Member

/lgtm

@scylla-operator-bot scylla-operator-bot bot added the lgtm Indicates that a PR is ready to be merged. label Oct 2, 2023
@scylla-operator-bot scylla-operator-bot bot merged commit 459db77 into scylladb:master Oct 2, 2023
@tnozicka tnozicka deleted the resolve-image branch October 2, 2023 09:03
@zimnx zimnx added the kind/feature Categorizes issue or PR as related to a new feature. label Oct 4, 2023
@tnozicka tnozicka mentioned this pull request Jan 12, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introspect scylla operator image to avoid skews with the sidecar
3 participants