@@ -51,7 +51,7 @@ pub struct Kubeconfig {
51
51
52
52
/// Preferences stores extensions for cli.
53
53
#[ derive( Clone , Debug , Serialize , Deserialize ) ]
54
- #[ cfg_attr( test, derive( PartialEq ) ) ]
54
+ #[ cfg_attr( test, derive( PartialEq , Eq ) ) ]
55
55
pub struct Preferences {
56
56
/// Enable colors
57
57
#[ serde( skip_serializing_if = "Option::is_none" ) ]
@@ -63,7 +63,7 @@ pub struct Preferences {
63
63
64
64
/// NamedExtention associates name with extension.
65
65
#[ derive( Clone , Debug , Serialize , Deserialize ) ]
66
- #[ cfg_attr( test, derive( PartialEq ) ) ]
66
+ #[ cfg_attr( test, derive( PartialEq , Eq ) ) ]
67
67
pub struct NamedExtension {
68
68
/// Name of extension
69
69
pub name : String ,
@@ -73,7 +73,7 @@ pub struct NamedExtension {
73
73
74
74
/// NamedCluster associates name with cluster.
75
75
#[ derive( Clone , Debug , Serialize , Deserialize ) ]
76
- #[ cfg_attr( test, derive( PartialEq ) ) ]
76
+ #[ cfg_attr( test, derive( PartialEq , Eq ) ) ]
77
77
pub struct NamedCluster {
78
78
/// Name of cluster
79
79
pub name : String ,
@@ -83,7 +83,7 @@ pub struct NamedCluster {
83
83
84
84
/// Cluster stores information to connect Kubernetes cluster.
85
85
#[ derive( Clone , Debug , Serialize , Deserialize ) ]
86
- #[ cfg_attr( test, derive( PartialEq ) ) ]
86
+ #[ cfg_attr( test, derive( PartialEq , Eq ) ) ]
87
87
pub struct Cluster {
88
88
/// The address of the kubernetes cluster (https://hostname:port).
89
89
pub server : String ,
@@ -209,13 +209,13 @@ pub struct AuthInfo {
209
209
#[ cfg( test) ]
210
210
impl PartialEq for AuthInfo {
211
211
fn eq ( & self , other : & Self ) -> bool {
212
- serde_json:: to_value ( & self ) . unwrap ( ) == serde_json:: to_value ( & other) . unwrap ( )
212
+ serde_json:: to_value ( self ) . unwrap ( ) == serde_json:: to_value ( other) . unwrap ( )
213
213
}
214
214
}
215
215
216
216
/// AuthProviderConfig stores auth for specified cloud provider.
217
217
#[ derive( Clone , Debug , Serialize , Deserialize ) ]
218
- #[ cfg_attr( test, derive( PartialEq ) ) ]
218
+ #[ cfg_attr( test, derive( PartialEq , Eq ) ) ]
219
219
pub struct AuthProviderConfig {
220
220
/// Name of the auth provider
221
221
pub name : String ,
@@ -225,7 +225,7 @@ pub struct AuthProviderConfig {
225
225
226
226
/// ExecConfig stores credential-plugin configuration.
227
227
#[ derive( Clone , Debug , Serialize , Deserialize ) ]
228
- #[ cfg_attr( test, derive( PartialEq ) ) ]
228
+ #[ cfg_attr( test, derive( PartialEq , Eq ) ) ]
229
229
pub struct ExecConfig {
230
230
/// Preferred input version of the ExecInfo.
231
231
///
@@ -247,7 +247,7 @@ pub struct ExecConfig {
247
247
248
248
/// NamedContext associates name with context.
249
249
#[ derive( Clone , Debug , Serialize , Deserialize ) ]
250
- #[ cfg_attr( test, derive( PartialEq ) ) ]
250
+ #[ cfg_attr( test, derive( PartialEq , Eq ) ) ]
251
251
pub struct NamedContext {
252
252
/// Name of the context
253
253
pub name : String ,
@@ -257,7 +257,7 @@ pub struct NamedContext {
257
257
258
258
/// Context stores tuple of cluster and user information.
259
259
#[ derive( Clone , Debug , Serialize , Deserialize ) ]
260
- #[ cfg_attr( test, derive( PartialEq ) ) ]
260
+ #[ cfg_attr( test, derive( PartialEq , Eq ) ) ]
261
261
pub struct Context {
262
262
/// Name of the cluster for this context
263
263
pub cluster : String ,
0 commit comments