Skip to content

Commit 985afd2

Browse files
chore: Extend comment of MAX_OBJECT_NAME_LENGTH
1 parent 5331677 commit 985afd2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rust/operator-binary/src/framework.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ pub enum Error {
3333
},
3434
}
3535

36-
// TODO The maximum length of objects differs.
3736
/// Maximum length of a DNS subdomain name as defined in RFC 1123.
37+
/// The object names of most types, e.g. ConfigMap and StatefulSet, must not exceed this limit.
38+
/// However, there are kinds that allow longer object names, e.g. ClusterRole.
3839
#[allow(dead_code)]
3940
pub const MAX_OBJECT_NAME_LENGTH: usize = 253;
4041

0 commit comments

Comments
 (0)