1
0
mirror of https://github.com/rancher/types.git synced 2025-08-02 05:11:59 +00:00

Merge pull request #34 from StrongMonkey/change-credential

Change credential
This commit is contained in:
Darren Shepherd 2017-11-29 13:42:42 -08:00 committed by GitHub
commit 606e13969e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -97,8 +97,8 @@ type GoogleKubernetesEngineConfig struct {
// The map of Kubernetes labels (key/value pairs) to be applied
// to each node.
Labels map[string]string `json:"labels,omitempty"`
// The path to the credential file(key.json)
CredentialPath string `json:"credentialPath,omitempty"`
// The content of the credential file(key.json)
Credential string `json:"credential,omitempty"`
// Enable alpha feature
EnableAlphaFeature bool `json:"enableAlphaFeature,omitempty"`
}

View File

@ -3,7 +3,7 @@ package client
const (
GoogleKubernetesEngineConfigType = "googleKubernetesEngineConfig"
GoogleKubernetesEngineConfigFieldClusterIpv4Cidr = "clusterIpv4Cidr"
GoogleKubernetesEngineConfigFieldCredentialPath = "credentialPath"
GoogleKubernetesEngineConfigFieldCredential = "credential"
GoogleKubernetesEngineConfigFieldDescription = "description"
GoogleKubernetesEngineConfigFieldDiskSizeGb = "diskSizeGb"
GoogleKubernetesEngineConfigFieldEnableAlphaFeature = "enableAlphaFeature"
@ -18,7 +18,7 @@ const (
type GoogleKubernetesEngineConfig struct {
ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
CredentialPath string `json:"credentialPath,omitempty"`
Credential string `json:"credential,omitempty"`
Description string `json:"description,omitempty"`
DiskSizeGb *int64 `json:"diskSizeGb,omitempty"`
EnableAlphaFeature *bool `json:"enableAlphaFeature,omitempty"`