-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eks*: add S3 access to worker node roles
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
- Loading branch information
Showing
16 changed files
with
174 additions
and
35 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package mng | ||
|
||
import ( | ||
"bytes" | ||
"fmt" | ||
"testing" | ||
"text/template" | ||
) | ||
|
||
func TestTemplateRole(t *testing.T) { | ||
tpl := template.Must(template.New("TemplateRole").Parse(TemplateRole)) | ||
buf := bytes.NewBuffer(nil) | ||
if err := tpl.Execute(buf, templateRole{}); err != nil { | ||
t.Fatal(err) | ||
} | ||
fmt.Println(buf.String()) | ||
|
||
buf.Reset() | ||
if err := tpl.Execute(buf, templateRole{ | ||
S3BucketName: "hello", | ||
ClusterName: "test-cluster", | ||
}); err != nil { | ||
t.Fatal(err) | ||
} | ||
fmt.Println(buf.String()) | ||
} |
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,3 @@ | ||
// Package autoscaler implements various auto-scaler. | ||
// ref. https://github.com/kubernetes/autoscaler | ||
package autoscaler |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package ng | ||
|
||
import ( | ||
"bytes" | ||
"fmt" | ||
"testing" | ||
"text/template" | ||
) | ||
|
||
func TestTemplateRole(t *testing.T) { | ||
tpl := template.Must(template.New("TemplateRole").Parse(TemplateRole)) | ||
buf := bytes.NewBuffer(nil) | ||
if err := tpl.Execute(buf, templateRole{}); err != nil { | ||
t.Fatal(err) | ||
} | ||
fmt.Println(buf.String()) | ||
|
||
buf.Reset() | ||
if err := tpl.Execute(buf, templateRole{ | ||
S3BucketName: "hello", | ||
ClusterName: "test-cluster", | ||
ASGPolicyData: asgPolicyData, | ||
}); err != nil { | ||
t.Fatal(err) | ||
} | ||
fmt.Println(buf.String()) | ||
} |
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.