Skip to content

Commit

Permalink
Add auth_provider for cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
ynqa committed Mar 21, 2019
1 parent d2772e1 commit e749b02
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/config/apis.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::fs::File;
use std::path::Path;
use std::collections::HashMap;

use failure::Error;
use serde_yaml;
Expand Down Expand Up @@ -87,6 +88,16 @@ pub struct AuthInfo {
pub impersonate: Option<String>,
#[serde(rename = "as-groups")]
pub impersonate_groups: Option<Vec<String>>,

#[serde(rename = "auth-provider")]
pub auth_provider: Option<AuthProviderConfig>,
}

/// AuthProviderConfig stores auth for specified cloud provider
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct AuthProviderConfig {
pub name: String,
pub config: HashMap<String, String>,
}

/// NamedContext associates name with context.
Expand Down

0 comments on commit e749b02

Please sign in to comment.