-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6611 from Microsoft/users/ansheno/kubernetesSecre…
…tsSection Added secrets section in Kubernetes Task
- Loading branch information
Showing
8 changed files
with
210 additions
and
58 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,8 @@ tr.setInput('useConfigurationFile', process.env[shared.TestEnvVars.useConfigurat | |
tr.setInput('configuration', ConfigurationFilePath); | ||
tr.setInput('arguments', process.env[shared.TestEnvVars.arguments] || ''); | ||
tr.setInput('namespace', process.env[shared.TestEnvVars.namespace] || ''); | ||
tr.setInput('secretType', process.env[shared.TestEnvVars.secretType] || 'dockerRegistry'); | ||
tr.setInput('secretArguments', process.env[shared.TestEnvVars.secretArguments] || ''); | ||
tr.setInput('secretName', process.env[shared.TestEnvVars.secretName] || ''); | ||
tr.setInput('forceUpdate', process.env[shared.TestEnvVars.forceUpdate] || "true"); | ||
tr.setInput('versionOrLocation', process.env[shared.TestEnvVars.versionOrLocation] || 'version'); | ||
|
@@ -98,6 +100,9 @@ a.exec[`kubectl --kubeconfig ${KubconfigFile} create secret docker-registry my-s | |
a.exec[`kubectl --kubeconfig ${KubconfigFile} create secret docker-registry my-secret --docker-server=https://index.docker.io/v1/ --docker-username=test --docker-password=regpassword [email protected]`] = { | ||
"code": 0 | ||
}; | ||
a.exec[`kubectl --kubeconfig ${KubconfigFile} create secret generic my-secret --from-literal=key1=value1 --from-literal=key2=value2`] = { | ||
"code": 0 | ||
}; | ||
a.exec[`kubectl --kubeconfig ${KubconfigFile} get secrets my-secret -o yaml`] = { | ||
"code": 0, | ||
"stdout": "successfully got secret my-secret and printed it in the specified format" | ||
|
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
Oops, something went wrong.