Skip to content

Commit 35e7f2c

Browse files
committed
ensure error message are lowercased
1 parent 67945ba commit 35e7f2c

File tree

11 files changed

+27
-27
lines changed

11 files changed

+27
-27
lines changed

rust/operator-binary/src/authentication/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,26 @@ const HTTP_SERVER_AUTHENTICATION_TYPE: &str = "http-server.authentication.type";
4343
#[derive(Snafu, Debug)]
4444
pub enum Error {
4545
#[snafu(display(
46-
"The Trino Operator does not support the AuthenticationClass provider [{authentication_class_provider}] from AuthenticationClass [{authentication_class}]."
46+
"the Trino Operator does not support the AuthenticationClass provider [{authentication_class_provider}] from AuthenticationClass [{authentication_class}]."
4747
))]
4848
AuthenticationClassProviderNotSupported {
4949
authentication_class_provider: String,
5050
authentication_class: ObjectRef<core::v1alpha1::AuthenticationClass>,
5151
},
5252

53-
#[snafu(display("Failed to format trino authentication java properties"))]
53+
#[snafu(display("failed to format trino authentication java properties"))]
5454
FailedToWriteJavaProperties {
5555
source: product_config::writer::PropertiesWriterError,
5656
},
5757

58-
#[snafu(display("Failed to configure trino password authentication"))]
58+
#[snafu(display("failed to configure trino password authentication"))]
5959
InvalidPasswordAuthenticationConfig { source: password::Error },
6060

61-
#[snafu(display("Failed to configure trino OAuth2 authentication"))]
61+
#[snafu(display("failed to configure trino OAuth2 authentication"))]
6262
InvalidOauth2AuthenticationConfig { source: oidc::Error },
6363

6464
#[snafu(display(
65-
"OIDC authentication details not specified. The AuthenticationClass {auth_class_name:?} uses an OIDC provider, you need to specify OIDC authentication details (such as client credentials) as well"
65+
"oidc authentication details not specified. The AuthenticationClass {auth_class_name:?} uses an OIDC provider, you need to specify OIDC authentication details (such as client credentials) as well"
6666
))]
6767
OidcAuthenticationDetailsNotSpecified { auth_class_name: String },
6868

rust/operator-binary/src/authentication/oidc/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,28 @@ const WEB_UI_AUTHENTICATION_TYPE: &str = "web-ui.authentication.type";
2828
#[derive(Snafu, Debug)]
2929
pub enum Error {
3030
#[snafu(display(
31-
"No OAuth2 AuthenticationClass provided. This is an internal operator failure and should not be happening."
31+
"no OAuth2 AuthenticationClass provided. This is an internal operator failure and should not be happening."
3232
))]
3333
NoOauth2AuthenticationClassProvided,
3434

3535
#[snafu(display(
36-
"Trino cannot configure OAuth2 with multiple Identity providers. \
36+
"trino cannot configure OAuth2 with multiple Identity providers. \
3737
Received the following AuthenticationClasses {authentication_class_names:?}. \
3838
Please only provide one OAuth2 AuthenticationClass!"
3939
))]
4040
MultipleOauth2AuthenticationClasses {
4141
authentication_class_names: Vec<String>,
4242
},
4343

44-
#[snafu(display("Failed to create OAuth2 issuer endpoint url."))]
44+
#[snafu(display("failed to create OAuth2 issuer endpoint url."))]
4545
FailedToCreateIssuerEndpointUrl {
4646
source: stackable_operator::crd::authentication::oidc::v1alpha1::Error,
4747
},
4848

49-
#[snafu(display("Trino does not support unverified TLS connections to OIDC"))]
49+
#[snafu(display("trino does not support unverified TLS connections to OIDC"))]
5050
UnverifiedOidcTlsConnectionNotSupported,
5151

52-
#[snafu(display("Failed to create OIDC Volumes and VolumeMounts"))]
52+
#[snafu(display("failed to create OIDC Volumes and VolumeMounts"))]
5353
FailedToCreateOidcVolumeAndVolumeMounts { source: TlsClientDetailsError },
5454
}
5555

rust/operator-binary/src/authentication/password/ldap.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ const LDAP_PASSWORD_ENV: &str = "LDAP_PASSWORD";
2222

2323
#[derive(Snafu, Debug)]
2424
pub enum Error {
25-
#[snafu(display("Trino does not support unverified TLS connections to LDAP"))]
25+
#[snafu(display("trino does not support unverified TLS connections to LDAP"))]
2626
UnverifiedLdapTlsConnectionNotSupported,
2727

28-
#[snafu(display("Failed to construct LDAP endpoint URL"))]
28+
#[snafu(display("failed to construct LDAP endpoint URL"))]
2929
LdapEndpoint {
3030
source: stackable_operator::crd::authentication::ldap::v1alpha1::Error,
3131
},
3232

33-
#[snafu(display("Failed to construct LDAP Volumes and VolumeMounts"))]
33+
#[snafu(display("failed to construct LDAP Volumes and VolumeMounts"))]
3434
LdapVolumeAndVolumeMounts {
3535
source: stackable_operator::crd::authentication::ldap::v1alpha1::Error,
3636
},

rust/operator-binary/src/catalog/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub enum FromTrinoCatalogError {
5757
data_key: String,
5858
},
5959

60-
#[snafu(display("Failed to create the Secret Volume for the S3 credentials"))]
60+
#[snafu(display("failed to create the Secret Volume for the S3 credentials"))]
6161
CreateS3CredentialsSecretOperatorVolume {
6262
source: stackable_operator::builder::pod::volume::SecretOperatorVolumeSourceBuilderError,
6363
},

rust/operator-binary/src/config/client_protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::{
1818

1919
#[derive(Snafu, Debug)]
2020
pub enum Error {
21-
#[snafu(display("Failed to resolve S3 connection"))]
21+
#[snafu(display("failed to resolve S3 connection"))]
2222
ResolveS3Connection { source: config::s3::Error },
2323

2424
#[snafu(display("trino does not support disabling the TLS verification of S3 servers"))]

rust/operator-binary/src/config/fault_tolerant_execution.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ use crate::{
2323

2424
#[derive(Snafu, Debug)]
2525
pub enum Error {
26-
#[snafu(display("Failed to resolve S3 connection"))]
26+
#[snafu(display("failed to resolve S3 connection"))]
2727
S3Connection {
2828
source: s3::v1alpha1::ConnectionError,
2929
},
3030

31-
#[snafu(display("Failed to resolve S3 connection"))]
31+
#[snafu(display("failed to resolve S3 connection"))]
3232
ResolveS3Connection { source: config::s3::Error },
3333

3434
#[snafu(display("trino does not support disabling the TLS verification of S3 servers"))]

rust/operator-binary/src/config/s3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::{command, crd::STACKABLE_CLIENT_TLS_DIR};
1212

1313
#[derive(Snafu, Debug)]
1414
pub enum Error {
15-
#[snafu(display("Failed to resolve S3 connection"))]
15+
#[snafu(display("failed to resolve S3 connection"))]
1616
S3Connection {
1717
source: s3::v1alpha1::ConnectionError,
1818
},

rust/operator-binary/src/controller.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub enum Error {
133133
#[snafu(display("object defines no namespace"))]
134134
ObjectHasNoNamespace,
135135

136-
#[snafu(display("Trino cluster {name:?} has no namespace"))]
136+
#[snafu(display("trino cluster {name:?} has no namespace"))]
137137
MissingTrinoNamespace {
138138
source: crate::crd::Error,
139139
name: String,
@@ -278,17 +278,17 @@ pub enum Error {
278278
source: stackable_operator::commons::rbac::Error,
279279
},
280280

281-
#[snafu(display("Failed to retrieve AuthenticationClass"))]
281+
#[snafu(display("failed to retrieve AuthenticationClass"))]
282282
AuthenticationClassRetrieval {
283283
source: crate::crd::authentication::Error,
284284
},
285285

286-
#[snafu(display("Unsupported Trino authentication"))]
286+
#[snafu(display("unsupported Trino authentication"))]
287287
UnsupportedAuthenticationConfig {
288288
source: crate::authentication::Error,
289289
},
290290

291-
#[snafu(display("Invalid Trino authentication"))]
291+
#[snafu(display("invalid Trino authentication"))]
292292
InvalidAuthenticationConfig {
293293
source: crate::authentication::Error,
294294
},

rust/operator-binary/src/crd/authentication.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ use stackable_operator::{
77

88
#[derive(Snafu, Debug)]
99
pub enum Error {
10-
#[snafu(display("Failed to retrieve AuthenticationClass"))]
10+
#[snafu(display("failed to retrieve AuthenticationClass"))]
1111
AuthenticationClassRetrieval {
1212
source: stackable_operator::client::Error,
1313
},
1414

15-
#[snafu(display("Invalid OIDC configuration"))]
15+
#[snafu(display("invalid OIDC configuration"))]
1616
InvalidOidcConfiguration {
1717
source: stackable_operator::crd::authentication::core::v1alpha1::Error,
1818
},

rust/operator-binary/src/operations/graceful_shutdown.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::crd::{
1515

1616
#[derive(Debug, Snafu)]
1717
pub enum Error {
18-
#[snafu(display("Failed to set terminationGracePeriod"))]
18+
#[snafu(display("failed to set terminationGracePeriod"))]
1919
SetTerminationGracePeriod {
2020
source: stackable_operator::builder::pod::Error,
2121
},

0 commit comments

Comments
 (0)