-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add role for aws-creds-secret-reader
- Loading branch information
Showing
3 changed files
with
38 additions
and
29 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
pkg/asset/manifests/content/tectonic/aws-creds-secret-and-reader-role.go
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,31 @@ | ||
package tectonic | ||
|
||
import ( | ||
"text/template" | ||
) | ||
|
||
var ( | ||
// AwsCredsSecretAndReaderRole is the constant to represent contents of aws-creds-secret.yaml file | ||
AwsCredsSecretAndReaderRole = template.Must(template.New("aws-creds-secret-and-reader-role.yaml").Parse(` | ||
--- | ||
kind: Secret | ||
apiVersion: v1 | ||
metadata: | ||
namespace: kube-system | ||
name: aws-creds-secret | ||
data: | ||
aws_access_key_id: {{.Base64encodeAWSaccessKeyID}} | ||
aws_secret_access_key: {{.Base64encodeAWSsecretAccessKey}} | ||
--- | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
namespace: kube-system | ||
name: aws-creds-secret-reader | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
resourceNames: ["aws-creds-secret"] | ||
verbs: ["get"] | ||
`)) | ||
) |
This file was deleted.
Oops, something went wrong.
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