@@ -90,6 +90,13 @@ attributed_string_type! {
9090 ( regex = "[-._a-zA-Z0-9]+" )
9191}
9292
93+ attributed_string_type ! {
94+ SecretName ,
95+ "The name of a Secret" ,
96+ "opensearch-security-config" ,
97+ is_rfc_1123_dns_subdomain_name
98+ }
99+
93100attributed_string_type ! {
94101 ServiceAccountName ,
95102 "The name of a ServiceAccount" ,
@@ -138,8 +145,8 @@ attributed_string_type! {
138145mod tests {
139146 use super :: {
140147 ClusterRoleName , ConfigMapKey , ConfigMapName , ContainerName , ListenerClassName ,
141- ListenerName , NamespaceName , PersistentVolumeClaimName , RoleBindingName ,
142- ServiceAccountName , ServiceName , StatefulSetName , Uid , VolumeName ,
148+ ListenerName , NamespaceName , PersistentVolumeClaimName , RoleBindingName , SecretKey ,
149+ SecretName , ServiceAccountName , ServiceName , StatefulSetName , Uid , VolumeName ,
143150 } ;
144151
145152 #[ test]
@@ -153,6 +160,8 @@ mod tests {
153160 NamespaceName :: test_example ( ) ;
154161 PersistentVolumeClaimName :: test_example ( ) ;
155162 RoleBindingName :: test_example ( ) ;
163+ SecretKey :: test_example ( ) ;
164+ SecretName :: test_example ( ) ;
156165 ServiceAccountName :: test_example ( ) ;
157166 ServiceName :: test_example ( ) ;
158167 StatefulSetName :: test_example ( ) ;
0 commit comments