Skip to content

Commit a592ede

Browse files
committed
Address linter warnings about embedded structs
Specifically it wants them to appear first, before non-embedded things. Signed-off-by: Nic Cope <[email protected]>
1 parent d65515c commit a592ede

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

apis/common/v1/connection_details.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ type Config struct {
145145
// KubernetesAuthConfig required to authenticate to a K8s API. It expects
146146
// a "kubeconfig" file to be provided.
147147
type KubernetesAuthConfig struct {
148-
// Source of the credentials.
149-
// +kubebuilder:validation:Enum=None;Secret;Environment;Filesystem
150-
Source CredentialsSource `json:"source"`
151-
152148
// CommonCredentialSelectors provides common selectors for extracting
153149
// credentials.
154150
CommonCredentialSelectors `json:",inline"`
151+
152+
// Source of the credentials.
153+
// +kubebuilder:validation:Enum=None;Secret;Environment;Filesystem
154+
Source CredentialsSource `json:"source"`
155155
}
156156

157157
// KubernetesSecretStoreConfig represents the required configuration

pkg/connection/fake/mocks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ func (ss *SecretStore) DeleteKeyValues(ctx context.Context, s *store.Secret, do
5656
// StoreConfig is a mock implementation of the StoreConfig interface.
5757
type StoreConfig struct {
5858
metav1.ObjectMeta
59+
v1.ConditionedStatus
5960

6061
Config v1.SecretStoreConfig
61-
v1.ConditionedStatus
6262
}
6363

6464
// GetStoreConfig returns SecretStoreConfig.

pkg/connection/store/plugin/fake/mocks.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ import (
2424

2525
// ExternalSecretStorePluginServiceClient is a fake ExternalSecretStorePluginServiceClient.
2626
type ExternalSecretStorePluginServiceClient struct {
27+
*ess.UnimplementedExternalSecretStorePluginServiceServer
28+
2729
GetSecretFn func(context.Context, *ess.GetSecretRequest, ...grpc.CallOption) (*ess.GetSecretResponse, error)
2830
ApplySecretFn func(context.Context, *ess.ApplySecretRequest, ...grpc.CallOption) (*ess.ApplySecretResponse, error)
2931
DeleteKeysFn func(context.Context, *ess.DeleteKeysRequest, ...grpc.CallOption) (*ess.DeleteKeysResponse, error)
30-
*ess.UnimplementedExternalSecretStorePluginServiceServer
3132
}
3233

3334
// GetSecret returns the secret.

0 commit comments

Comments
 (0)