Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ COMPUTE_PCRS_IMAGE=$(REGISTRY)/compute-pcrs:$(TAG)
REG_SERVER_IMAGE=$(REGISTRY)/registration-server:$(TAG)
ATTESTATION_KEY_REGISTER_IMAGE=$(REGISTRY)/attestation-key-register:$(TAG)
TRUSTEE_IMAGE ?= quay.io/trusted-execution-clusters/key-broker-service:v0.17.0
TEST_IMAGE ?= quay.io/trusted-execution-clusters/fedora-coreos-kubevirt:20260225
TEST_IMAGE ?= quay.io/trusted-execution-clusters/fedora-coreos-kubevirt:42.20260622
# tagged as 42.20251012.2.0
APPROVED_IMAGE ?= quay.io/trusted-execution-clusters/fedora-coreos@sha256:6997f51fd27d1be1b5fc2e6cc3ebf16c17eb94d819b5d44ea8d6cf5f826ee773

Expand Down
2 changes: 1 addition & 1 deletion docs/design/boot-attestation.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ This merge source contacts the registration service, which provides an Ignition
```json
{
"ignition": {
"version": "3.5.0"
"version": "3.6.0"
},
"storage": {
"luks": [
Expand Down
2 changes: 1 addition & 1 deletion examples/ignition-coreos.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}
]
},
"version": "3.6.0-experimental"
"version": "3.6.0"
},
"passwd": {
"users": [
Expand Down
2 changes: 1 addition & 1 deletion examples/vm-coreos-ign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
volumes:
- name: containerdisk
containerDisk:
image: "quay.io/trusted-execution-clusters/fedora-coreos-kubevirt:20260225"
image: "quay.io/trusted-execution-clusters/fedora-coreos-kubevirt:42.20260622"
imagePullPolicy: IfNotPresent
- name: cloudinitdisk
cloudInitConfigDrive:
Expand Down
5 changes: 5 additions & 0 deletions operator/src/reference_values.rs
Comment thread
Jakob-Naucke marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ async fn image_add_reconcile(
info!("No TrustedExecutionCluster found, deferring image processing for {name}");
return Ok(Action::requeue(Duration::from_secs(5)));
};
// If the cluster is being deleted, defer the image processing
if cluster.metadata.deletion_timestamp.is_some() {
info!("TrustedExecutionCluster is being deleted, deferring image processing for {name}");
return Ok(Action::requeue(Duration::from_secs(5)));
}
let uid_owns = |uid: &String| {
let refs = image.metadata.owner_references.as_ref();
refs.map(|os| os.iter().any(|o| o.uid == *uid))
Expand Down
12 changes: 2 additions & 10 deletions register-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use clevis_pin_trustee_lib::{
AttestationKey, Config as ClevisConfig, Registration, Server as ClevisServer,
};
use env_logger::Env;
use ignition_config::v3_5::{
use ignition_config::v3_6::{
Clevis, ClevisCustom, Config as IgnitionConfig, Filesystem, Luks, Storage,
};
use k8s_openapi::api::core::v1::Secret;
Expand Down Expand Up @@ -200,19 +200,11 @@ async fn register_handler() -> impl IntoResponse {
};

let ignition_config = generate_ignition(&id, &endpoint_info);
let mut ignition_json = match serde_json::to_value(&ignition_config) {
let ignition_json = match serde_json::to_value(&ignition_config) {
Ok(json) => json,
Err(e) => return internal_error(e.into()),
};

// Overwrite ignition version to 3.6-experimental
if let Some(obj) = ignition_json.as_object_mut() {
obj.insert(
"ignition".to_string(),
serde_json::json!({"version": "3.6.0-experimental"}),
);
}

(StatusCode::OK, Json(ignition_json))
}

Expand Down
4 changes: 2 additions & 2 deletions test_utils/src/virt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ pub fn generate_ssh_key_pair() -> Result<(String, PathBuf)> {
}

pub async fn generate_ignition(config: &VmConfig) -> Result<serde_json::Value> {
use ignition_config::v3_5::*;
use ignition_config::v3_6::*;
let client = config.client.clone();
let ns = &config.namespace;
let port = Some(REGISTER_SERVER_PORT);
let register_server_url = get_cluster_url(client, ns, REGISTER_SERVER_SERVICE, port).await?;
let root_pem_encoded = utf8_percent_encode(&config.ca_pem, NON_ALPHANUMERIC);
let ignition = Ignition {
version: "3.6.0-experimental".to_string(),
version: "3.6.0".to_string(),
config: Some(IgnitionConfig {
merge: Some(vec![Resource {
source: Some(format!(
Expand Down