You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- introduces resource_ids to eip status
- moves setting attachment status to be
before an attempt at attaching
- moves status update from patch to replace
this should raise errors if the resource has
changed allowing the resource_id to function
somewhat as a lock
- resource won't attempt to claim a resource
with a resource id
- fixes cargo deny errors
Copy file name to clipboardexpand all lines: eip_operator/src/eip.rs
+24-20
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
use k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1::CustomResourceDefinition;
2
2
use kube::api::{Api,DeleteParams,ListParams,Patch,PatchParams,PostParams};
3
3
use kube::core::crd::merge_crds;
4
-
use kube::{Client,CustomResourceExt};
4
+
use kube::{Client,CustomResourceExt,ResourceExt};
5
5
use kube_runtime::wait::{await_condition, conditions};
6
6
use schemars::JsonSchema;
7
7
use serde::{Deserialize,Serialize};
@@ -121,7 +121,8 @@ pub mod v2 {
121
121
printcolumn = r#"{"name": "PublicIP", "type": "string", "description": "Public IP address of the EIP.", "jsonPath": ".status.publicIpAddress"}"#,
122
122
printcolumn = r#"{"name": "Selector", "type": "string", "description": "Selector for the pod or node to associate the EIP with.", "jsonPath": ".spec.selector", "priority": 1}"#,
123
123
printcolumn = r#"{"name": "ENI", "type": "string", "description": "ID of the Elastic Network Interface of the pod.", "jsonPath": ".status.eni", "priority": 1}"#,
124
-
printcolumn = r#"{"name": "PrivateIP", "type": "string", "description": "Private IP address of the pod.", "jsonPath": ".status.privateIpAddress", "priority": 1}"#
124
+
printcolumn = r#"{"name": "PrivateIP", "type": "string", "description": "Private IP address of the pod.", "jsonPath": ".status.privateIpAddress", "priority": 1}"#,
125
+
printcolumn = r#"{"name": "ResourceId", "type": "string", "description": "ID of resource the EIP is attached to..", "jsonPath": ".status.resourceId", "priority": 1}"#
125
126
)]
126
127
pubstructEipSpec{
127
128
pubselector:EipSelector,
@@ -205,13 +206,14 @@ pub mod v2 {
205
206
}
206
207
207
208
/// The status fields for the Eip Kubernetes custom resource.
0 commit comments