|
| 1 | +// WARNING: generated by kopium - manual changes will be overwritten |
| 2 | +// kopium command: kopium --docs --derive=Default --derive=PartialEq --smart-derive-elision --filename crd-catalog/Kuadrant/dns-operator/kuadrant.io/v1alpha1/dnshealthcheckprobes.yaml |
| 3 | +// kopium version: 0.21.1 |
| 4 | + |
| 5 | +#[allow(unused_imports)] |
| 6 | +mod prelude { |
| 7 | + pub use kube::CustomResource; |
| 8 | + pub use serde::{Serialize, Deserialize}; |
| 9 | +} |
| 10 | +use self::prelude::*; |
| 11 | + |
| 12 | +/// DNSHealthCheckProbeSpec defines the desired state of DNSHealthCheckProbe |
| 13 | +#[derive(CustomResource, Serialize, Deserialize, Clone, Debug, Default, PartialEq)] |
| 14 | +#[kube(group = "kuadrant.io", version = "v1alpha1", kind = "DNSHealthCheckProbe", plural = "dnshealthcheckprobes")] |
| 15 | +#[kube(namespaced)] |
| 16 | +#[kube(status = "DNSHealthCheckProbeStatus")] |
| 17 | +#[kube(schema = "disabled")] |
| 18 | +#[kube(derive="Default")] |
| 19 | +#[kube(derive="PartialEq")] |
| 20 | +pub struct DNSHealthCheckProbeSpec { |
| 21 | + /// AdditionalHeadersRef refers to a secret that contains extra headers to send in the probe request, this is primarily useful if an authentication |
| 22 | + /// token is required by the endpoint. |
| 23 | + #[serde(default, skip_serializing_if = "Option::is_none", rename = "additionalHeadersRef")] |
| 24 | + pub additional_headers_ref: Option<DNSHealthCheckProbeAdditionalHeadersRef>, |
| 25 | + /// Address to connect to the host on (IP Address (A Record) or hostname (CNAME)). |
| 26 | + #[serde(default, skip_serializing_if = "Option::is_none")] |
| 27 | + pub address: Option<String>, |
| 28 | + /// AllowInsecureCertificate will instruct the health check probe to not fail on a self-signed or otherwise invalid SSL certificate |
| 29 | + /// this is primarily used in development or testing environments and is set by the --insecure-health-checks flag |
| 30 | + #[serde(default, skip_serializing_if = "Option::is_none", rename = "allowInsecureCertificate")] |
| 31 | + pub allow_insecure_certificate: Option<bool>, |
| 32 | + /// FailureThreshold is a limit of consecutive failures that must occur for a host to be considered unhealthy |
| 33 | + #[serde(default, skip_serializing_if = "Option::is_none", rename = "failureThreshold")] |
| 34 | + pub failure_threshold: Option<i64>, |
| 35 | + /// Hostname is the value sent in the host header, to route the request to the correct service |
| 36 | + /// Represents a root host of the parent DNS Record. |
| 37 | + #[serde(default, skip_serializing_if = "Option::is_none")] |
| 38 | + pub hostname: Option<String>, |
| 39 | + /// Interval defines how frequently this probe should execute |
| 40 | + #[serde(default, skip_serializing_if = "Option::is_none")] |
| 41 | + pub interval: Option<String>, |
| 42 | + /// Path is the path to append to the host to reach the expected health check. |
| 43 | + /// Must start with "?" or "/", contain only valid URL characters and end with alphanumeric char or "/". For example "/" or "/healthz" are common |
| 44 | + #[serde(default, skip_serializing_if = "Option::is_none")] |
| 45 | + pub path: Option<String>, |
| 46 | + /// Port to connect to the host on. Must be either 80, 443 or 1024-49151 |
| 47 | + #[serde(default, skip_serializing_if = "Option::is_none")] |
| 48 | + pub port: Option<i64>, |
| 49 | + /// Protocol to use when connecting to the host, valid values are "HTTP" or "HTTPS" |
| 50 | + #[serde(default, skip_serializing_if = "Option::is_none")] |
| 51 | + pub protocol: Option<String>, |
| 52 | +} |
| 53 | + |
| 54 | +/// AdditionalHeadersRef refers to a secret that contains extra headers to send in the probe request, this is primarily useful if an authentication |
| 55 | +/// token is required by the endpoint. |
| 56 | +#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)] |
| 57 | +pub struct DNSHealthCheckProbeAdditionalHeadersRef { |
| 58 | + pub name: String, |
| 59 | +} |
| 60 | + |
| 61 | +/// DNSHealthCheckProbeStatus defines the observed state of DNSHealthCheckProbe |
| 62 | +#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)] |
| 63 | +pub struct DNSHealthCheckProbeStatus { |
| 64 | + #[serde(default, skip_serializing_if = "Option::is_none", rename = "consecutiveFailures")] |
| 65 | + pub consecutive_failures: Option<i64>, |
| 66 | + #[serde(default, skip_serializing_if = "Option::is_none")] |
| 67 | + pub healthy: Option<bool>, |
| 68 | + #[serde(default, skip_serializing_if = "Option::is_none", rename = "observedGeneration")] |
| 69 | + pub observed_generation: Option<i64>, |
| 70 | + #[serde(default, skip_serializing_if = "Option::is_none")] |
| 71 | + pub reason: Option<String>, |
| 72 | + #[serde(default, skip_serializing_if = "Option::is_none")] |
| 73 | + pub status: Option<i64>, |
| 74 | +} |
| 75 | + |
0 commit comments