Documentation ¶
Index ¶
- Variables
- func GetGCPConfigMapName(ownerName string) string
- func GetGCPContainerVolume(workloadIdentityPool string, name string) corev1.Volume
- func GetGCPContainerVolumeMount() corev1.VolumeMount
- func GetGCPEnvVar() corev1.EnvVar
- func GetGoogleServiceAccountCredentialsConfigMap(ctx context.Context, namespace string, name string, gcpServiceAccount string, ...) (corev1.ConfigMap, error)
- type CredentialSource
- type WorkloadIdentityCredentials
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CredentialsMountPath = "/var/run/secrets/tokens/gcp-ksa" CredentialsFileName = "google-application-credentials.json" ServiceAccountTokenExpiration = int64(60 * 60 * 24 * 2) // Two days )
Functions ¶
func GetGCPConfigMapName ¶
func GetGCPContainerVolume ¶
func GetGCPContainerVolumeMount ¶
func GetGCPContainerVolumeMount() corev1.VolumeMount
func GetGCPEnvVar ¶
Types ¶
type CredentialSource ¶
type CredentialSource struct {
File string `json:"file"`
}
type WorkloadIdentityCredentials ¶
type WorkloadIdentityCredentials struct { Type string `json:"type"` Audience string `json:"audience"` ServiceAccountImpersonationUrl string `json:"service_account_impersonation_url"` SubjectTokenType string `json:"subject_token_type"` TokenUrl string `json:"token_url"` CredentialSource CredentialSource `json:"credential_source"` }
Click to show internal directories.
Click to hide internal directories.