@@ -142,7 +142,6 @@ pub fn validate(
142142 opa : & v1alpha2:: OpaCluster ,
143143 operator_environment : & OperatorEnvironmentOptions ,
144144) -> Result < ValidatedCluster > {
145- // Wrap the metadata in fail-safe v2 types so the build steps never have to re-check it.
146145 let name = get_cluster_name ( opa) . context ( GetClusterNameSnafu ) ?;
147146 let namespace = get_namespace ( opa) . context ( GetNamespaceSnafu ) ?;
148147 let uid = get_uid ( opa) . context ( GetUidSnafu ) ?;
@@ -182,8 +181,8 @@ pub fn validate(
182181 } ,
183182 ) ?;
184183
185- // The framework keeps `envOverrides` as a `HashMap<String, String>`; lift it into the
186- // type-safe `EnvVarSet` consumed by the build step.
184+ // `envOverrides` is kept as a `HashMap<String, String>`; lift it into the type-safe
185+ // `EnvVarSet` consumed by the build step.
187186 let mut env_overrides = EnvVarSet :: new ( ) ;
188187 for ( name, value) in merged. config . env_overrides {
189188 env_overrides = env_overrides. with_value (
@@ -200,8 +199,8 @@ pub fn validate(
200199 & vector_aggregator_config_map_name,
201200 ) ?;
202201
203- // Validate the role group name against the upstream `RoleGroupName` newtype (RFC 1123
204- // label, length-bounded) so the typed key is guaranteed to produce valid resource names.
202+ // Validate the role group name against the `RoleGroupName` newtype (RFC 1123 label,
203+ // length-bounded) so the typed key is guaranteed to produce valid resource names.
205204 let role_group_name =
206205 RoleGroupName :: from_str ( role_group_name) . context ( ParseRoleGroupNameSnafu {
207206 role_group : role_group_name. clone ( ) ,
@@ -210,7 +209,7 @@ pub fn validate(
210209 group_configs. insert (
211210 role_group_name,
212211 OpaRoleGroupConfig {
213- // Unused for a DaemonSet, but the framework type requires it.
212+ // Unused for a DaemonSet, but the `RoleGroupConfig` type requires it.
214213 replicas : merged. replicas ,
215214 config : ValidatedOpaConfig :: from_merged ( merged. config . config , logging) ,
216215 config_overrides : merged. config . config_overrides ,
0 commit comments