-
Notifications
You must be signed in to change notification settings - Fork 231
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 #2879 from dtaylor113/secrets
Automatic merge from submit-queue. Create Opaque Secrets from File https://trello.com/c/SANVwQnv - Created a new Secret Type 'Opaque Secret'. Not sure if this should be 'Input' or 'Builder' secret? - 'Opaque Secret' form is same key-value map used in Create Config Map. ![image](https://user-images.githubusercontent.com/12733153/37102182-45abf7a2-21f5-11e8-9110-36fe4f2fe2d8.png) Not sure what code to use to Create this type of secret. Creating a Secret is: ``` DataService.create(secretsVersion, null, newSecret, $scope).then(function(secret) { // Success // In order to link: // - the SA has to be defined // - defined SA has to be present in the obtained SA list // - user can update SA // Else the linking will be skipped if ($scope.newSecret.linkSecret && $scope.serviceAccountsNames.contains($scope.newSecret.pickedServiceAccountToLink) && AuthorizationService.canI('serviceaccounts', 'update')) { linkSecretToServiceAccount(secret); ``` - Do I need to show the 'Link secret to a service account.' checkbox for 'Opaque Secrets' ? Creating a Config Map is: ``` DataService.create(createConfigMapVersion, null, $scope.configMap, context) ``` - where `$scope.configMap.data` is the key-value pairs map. Looking into `DataService.create(secretsVersion...` to see if it supports `data.keyvaluepairs`
- Loading branch information
Showing
9 changed files
with
100 additions
and
65 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
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
Oops, something went wrong.