Open
Description
I am trying to create bindings for KubeadmControlPlaneTemplate
using kopium
, however, it seems to be failing here:
---- src/cluster_api/kubeadmcontrolplanetemplates.rs - cluster_api::kubeadmcontrolplanetemplates::KubeadmControlPlaneTemplateTemplateSpecRemediationStrategy::min_healthy_period (line 1665) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found reserved keyword `become`
--> src/cluster_api/kubeadmcontrolplanetemplates.rs:1666:4
|
3 | M1 become unhealthy; remediation happens, and M1-1 is created as a replacement.
| ^^^^^^ expected one of 8 possible tokens
error: aborting due to 1 previous error
Couldn't compile the test.
---- src/cluster_api/kubeadmcontrolplanetemplates.rs - cluster_api::kubeadmcontrolplanetemplates::KubeadmControlPlaneTemplateTemplateSpecRemediationStrategy::max_retry (line 1646) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found reserved keyword `become`
--> src/cluster_api/kubeadmcontrolplanetemplates.rs:1647:4
|
3 | M1 become unhealthy; remediation happens, and M1-1 is created as a replacement.
| ^^^^^^ expected one of 8 possible tokens
That can be manually worked around but I guess it would be nice to escape the become
keyword, int hsi case:
/// MinHealthyPeriod defines the duration after which KCP will consider any failure to a machine unrelated
/// from the previous one. In this case the remediation is not considered a retry anymore, and thus the retry
/// counter restarts from 0. For example, assuming MinHealthyPeriod is set to 1h (default)
///
///
/// M1 become unhealthy; remediation happens, and M1-1 is created as a replacement.
/// If M1-1 (replacement of M1) has problems within the 1hr after the creation, also
/// this machine will be remediated and this operation is considered a retry - a problem related
/// to the original issue happened to M1 -.
///
///
/// If instead the problem on M1-1 is happening after MinHealthyPeriod expired, e.g. four days after
/// m1-1 has been created as a remediation of M1, the problem on M1-1 is considered unrelated to
/// the original issue happened to M1.
///
///
/// If not set, this value is defaulted to 1h.
#[serde(default, skip_serializing_if = "Option::is_none", rename = "minHealthyPeriod")]
pub min_healthy_period: Option<String>,