-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup: remove corev1 usage from credentials package
- Loading branch information
1 parent
86026ba
commit 0e86d08
Showing
6 changed files
with
83 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package common | ||
|
||
// Secret key constants used in credential files, | ||
// so as to avoid reliance on corev1.Secret. | ||
const ( | ||
BasicAuthUsernameKey = "username" | ||
BasicAuthPasswordKey = "password" | ||
SSHAuthPrivateKey = "ssh-privatekey" | ||
DockerConfigKey = ".dockercfg" | ||
DockerConfigJsonKey = ".dockerconfigjson" | ||
SecretTypeBasicAuth = "kubernetes.io/basic-auth" | ||
SecretTypeSSHAuth = "kubernetes.io/ssh-auth" | ||
SecretTypeDockerConfigJson = "kubernetes.io/dockerconfigjson" | ||
SecretTypeDockercfg = "kubernetes.io/dockercfg" | ||
SecretTypeServiceAccountToken = "kubernetes.io/service-account-token" | ||
SecretTypeOpaque = "kubernetes.io/opaque" | ||
SecretTypeTLS = "kubernetes.io/tls" | ||
SecretTypeBootstrapToken = "kubernetes.io/bootstrap-token" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters