We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 345b7d2 commit a3829c4Copy full SHA for a3829c4
1 file changed
crates/stackable-operator/src/v2/mod.rs
@@ -1 +1,24 @@
1
+use crate::v2::types::kubernetes::Uid;
2
+
3
pub mod config_overrides;
4
+pub mod macros;
5
+pub mod types;
6
7
+/// Has a non-empty name
8
+///
9
+/// Useful as an object reference; Should not be used to create an object because the name could
10
+/// violate the naming constraints (e.g. maximum length) of the object.
11
+pub trait HasName {
12
+ #[allow(dead_code)]
13
+ fn to_name(&self) -> String;
14
+}
15
16
+/// Has a Kubernetes UID
17
+pub trait HasUid {
18
+ fn to_uid(&self) -> Uid;
19
20
21
+/// The name is a valid label value
22
+pub trait NameIsValidLabelValue {
23
+ fn to_label_value(&self) -> String;
24
0 commit comments