Skip to content

Commit 51b6e1f

Browse files
committed
update Kuadrant/dns-operator
Signed-off-by: Sebastian Hoß <[email protected]>
1 parent 1d74c4a commit 51b6e1f

File tree

8 files changed

+180
-3
lines changed

8 files changed

+180
-3
lines changed

code-generator/src/catalog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1935,8 +1935,8 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
19351935
project_name: "Kuadrant/dns-operator",
19361936
license: APACHE_V2,
19371937
urls: &[
1938+
"https://github.com/Kuadrant/dns-operator/blob/main/config/crd/bases/kuadrant.io_dnshealthcheckprobes.yaml",
19381939
"https://github.com/Kuadrant/dns-operator/blob/main/config/crd/bases/kuadrant.io_dnsrecords.yaml",
1939-
"https://github.com/Kuadrant/dns-operator/blob/main/config/crd/bases/kuadrant.io_managedzones.yaml",
19401940
],
19411941
ignores: &[],
19421942
},
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: "v0.14.0"
6+
name: "dnshealthcheckprobes.kuadrant.io"
7+
spec:
8+
group: "kuadrant.io"
9+
names:
10+
kind: "DNSHealthCheckProbe"
11+
listKind: "DNSHealthCheckProbeList"
12+
plural: "dnshealthcheckprobes"
13+
singular: "dnshealthcheckprobe"
14+
scope: "Namespaced"
15+
versions:
16+
- additionalPrinterColumns:
17+
- description: "DNSHealthCheckProbe healthy."
18+
jsonPath: ".status.healthy"
19+
name: "Healthy"
20+
type: "boolean"
21+
name: "v1alpha1"
22+
schema:
23+
openAPIV3Schema:
24+
description: "DNSHealthCheckProbe is the Schema for the dnshealthcheckprobes API"
25+
properties:
26+
apiVersion:
27+
description: "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
28+
type: "string"
29+
kind:
30+
description: "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
31+
type: "string"
32+
metadata:
33+
type: "object"
34+
spec:
35+
description: "DNSHealthCheckProbeSpec defines the desired state of DNSHealthCheckProbe"
36+
properties:
37+
additionalHeadersRef:
38+
description: "AdditionalHeadersRef refers to a secret that contains extra headers to send in the probe request, this is primarily useful if an authentication\ntoken is required by the endpoint."
39+
properties:
40+
name:
41+
type: "string"
42+
required:
43+
- "name"
44+
type: "object"
45+
address:
46+
description: "Address to connect to the host on (IP Address (A Record) or hostname (CNAME))."
47+
type: "string"
48+
allowInsecureCertificate:
49+
description: "AllowInsecureCertificate will instruct the health check probe to not fail on a self-signed or otherwise invalid SSL certificate\nthis is primarily used in development or testing environments and is set by the --insecure-health-checks flag"
50+
type: "boolean"
51+
failureThreshold:
52+
description: "FailureThreshold is a limit of consecutive failures that must occur for a host to be considered unhealthy"
53+
type: "integer"
54+
x-kubernetes-validations:
55+
- message: "Failure threshold must be greater than 0"
56+
rule: "self > 0"
57+
hostname:
58+
description: "Hostname is the value sent in the host header, to route the request to the correct service\nRepresents a root host of the parent DNS Record."
59+
type: "string"
60+
interval:
61+
description: "Interval defines how frequently this probe should execute"
62+
type: "string"
63+
path:
64+
description: "Path is the path to append to the host to reach the expected health check.\nMust start with \"?\" or \"/\", contain only valid URL characters and end with alphanumeric char or \"/\". For example \"/\" or \"/healthz\" are common"
65+
pattern: "^(?:\\?|\\/)[\\w\\-.~:\\/?#\\[\\]@!$&'()*+,;=]+(?:[a-zA-Z0-9]|\\/){1}$"
66+
type: "string"
67+
port:
68+
description: "Port to connect to the host on. Must be either 80, 443 or 1024-49151"
69+
type: "integer"
70+
x-kubernetes-validations:
71+
- message: "Only ports 80, 443, 1024-49151 are allowed"
72+
rule: "self in [80, 443] || (self >= 1024 && self <= 49151)"
73+
protocol:
74+
description: "Protocol to use when connecting to the host, valid values are \"HTTP\" or \"HTTPS\""
75+
type: "string"
76+
x-kubernetes-validations:
77+
- message: "Only HTTP or HTTPS protocols are allowed"
78+
rule: "self in ['HTTP','HTTPS']"
79+
type: "object"
80+
status:
81+
description: "DNSHealthCheckProbeStatus defines the observed state of DNSHealthCheckProbe"
82+
properties:
83+
consecutiveFailures:
84+
type: "integer"
85+
healthy:
86+
type: "boolean"
87+
observedGeneration:
88+
format: "int64"
89+
type: "integer"
90+
reason:
91+
type: "string"
92+
status:
93+
type: "integer"
94+
type: "object"
95+
type: "object"
96+
served: true
97+
storage: true
98+
subresources:
99+
status: {}

custom-resources/kuadrant_io/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This crate is part of [kube-custom-resources-rs](https://github.com/metio/kube-c
1414
### kuadrant.io/v1
1515
- `RateLimitPolicy`
1616
### kuadrant.io/v1alpha1
17+
- `DNSHealthCheckProbe`
1718
- `DNSRecord`
1819
- `ManagedZone`
1920
### kuadrant.io/v1beta1

custom-resources/kuadrant_io/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This crate contains [kube-rs](https://kube.rs/) compatible bindings for Kubernet
66
## kuadrant.io/v1
77
- `RateLimitPolicy`
88
## kuadrant.io/v1alpha1
9+
- `DNSHealthCheckProbe`
910
- `DNSRecord`
1011
- `ManagedZone`
1112
## kuadrant.io/v1beta1
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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+

custom-resources/kuadrant_io/src/v1alpha1/dnsrecords.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// WARNING: generated by kopium - manual changes will be overwritten
22
// kopium command: kopium --docs --derive=Default --derive=PartialEq --smart-derive-elision --filename crd-catalog/Kuadrant/dns-operator/kuadrant.io/v1alpha1/dnsrecords.yaml
3-
// kopium version: 0.21.2
3+
// kopium version: 0.21.1
44

55
#[allow(unused_imports)]
66
mod prelude {

custom-resources/kuadrant_io/src/v1alpha1/managedzones.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// WARNING: generated by kopium - manual changes will be overwritten
22
// kopium command: kopium --docs --derive=Default --derive=PartialEq --smart-derive-elision --filename crd-catalog/Kuadrant/dns-operator/kuadrant.io/v1alpha1/managedzones.yaml
3-
// kopium version: 0.21.2
3+
// kopium version: 0.21.1
44

55
#[allow(unused_imports)]
66
mod prelude {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
pub mod dnshealthcheckprobes;
12
pub mod dnsrecords;
23
pub mod managedzones;

0 commit comments

Comments
 (0)