Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Conversation

@soenkeliebau
Copy link
Member

This enables stopping services by deleting their pod objects and subsequently restarting them by recreating the pod.
This unlocks rolling restart/restart functionality in operators.

Also contains change to add pod-uid to the config directory name.

… on recreated pods.

Also contains change to add pod-uid to the config directory name.
@soenkeliebau soenkeliebau requested a review from lfrancke December 9, 2020 21:17
Copy link
Member

@lfrancke lfrancke left a comment

Choose a reason for hiding this comment

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

Minor comments.

I still haven't looked at the starting etc. states in detail because I assume they'll change drastically with systemd integration?


async fn initialize_pod_state(&self, pod: &Pod) -> anyhow::Result<Self::PodState> {
let service_name = pod.name();
let service_uid = String::from(pod.as_kube_pod().metadata.uid.as_ref().unwrap());
Copy link
Member

Choose a reason for hiding this comment

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

unwrap should be handled properly

lfrancke
lfrancke previously approved these changes Dec 10, 2020
)]
MissingConfigMapsError { missing_config_maps: Vec<String> },
#[error("An object received from Kubernetes didn't contain a required field: {field_name}")]
IllegalKubeObject { field_name: String },
Copy link
Member

Choose a reason for hiding this comment

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

…uses in the operator framework (which in turn is copied from the kubernetes client crate).
@soenkeliebau soenkeliebau merged commit fe3d655 into stackabletech:main Dec 11, 2020
@soenkeliebau soenkeliebau deleted the restart branch December 11, 2020 08:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants