INFRA-558| Deepak Jain| fixing deploy.sh for iamroles
This commit is contained in:
@@ -84,19 +84,20 @@ func (fi bindataFileInfo) Sys() interface{} {
|
||||
}
|
||||
|
||||
var _bindataTemplatesAwsrolestfDeploysh = []byte(
|
||||
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\x51\x4d\x6f\xe2\x30\x10\xbd\xfb\x57\xcc\x86\x5c\x1d\xb4\xd7\x5d\xe5" +
|
||||
"\x80\xd8\xdc\xb6\xa8\x82\x56\x3d\x54\x15\x32\xce\xb8\x58\x38\xe3\xc8\x76\x20\x51\xf0\x7f\xaf\x82\x54\x1a\x28\xa2" +
|
||||
"\x47\xbf\x0f\xcf\x7b\x33\x93\x5f\xd3\x8d\xa6\xa9\xdf\x32\x36\x01\x6c\x75\x80\xc3\x16\x09\x04\x75\x20\x6d\x55\x09" +
|
||||
"\x2a\x41\x09\x6d\x3c\xf3\x18\x80\x23\x63\xa2\x2c\x75\xd0\x96\x84\x59\x07\x74\x4e\x28\xeb\xaa\xb5\xad\x07\xc8\xe7" +
|
||||
"\x49\x32\xe6\x77\xcd\x06\xc7\x14\xfb\x32\x08\x39\xa0\x79\xda\xff\xfe\xc3\x45\x5d\x9b\x2e\x32\xad\xe0\x15\xd2\x6b" +
|
||||
"\x09\xe4\x39\x24\x27\x45\x02\x6f\x7f\xc3\x16\x89\x01\x00\xdc\x4f\x91\xf6\xf7\xf8\x08\x5c\x34\xc1\x0e\x73\x9d\xdd" +
|
||||
"\x63\xc2\xd0\x78\xbc\xfe\xf5\x32\xfb\xc5\x87\x63\x2a\x02\xe7\xa5\xeb\xb8\x6b\x28\x61\x4a\x8f\x2a\x82\x26\x1d\x46" +
|
||||
"\xcf\x83\x75\x3b\x5f\x0b\x89\xe0\xd1\xa0\x0c\xd0\xf7\x90\x15\x6d\x70\x62\x89\xde\x36\x4e\xa2\xcf\x5e\xce\x9a\x18" +
|
||||
"\xe1\x78\x84\x5b\x6e\xc2\xc3\x4f\xd6\xd1\xd4\xef\xfb\x4c\xef\xad\x86\xb1\xa1\x9c\x0c\x06\xa4\x25\xa5\xdf\xa1\xf1" +
|
||||
"\xc8\xa5\xa5\x80\x6d\x80\xb4\x9f\xff\x7f\x5e\x3d\x15\xcb\x78\x56\x9d\x0e\x03\x5c\x9d\x12\xfd\xc3\xda\xd8\xae\x42" +
|
||||
"\x0a\xd9\x42\x54\x43\x10\x7e\x03\x5e\x35\x4a\xe9\xf6\x93\xbc\x6a\x51\xd0\x5e\x3b\x4b\x83\x18\x62\xcc\x3a\x51\x19" +
|
||||
"\xe0\x04\x69\xbf\x98\x3d\x14\xab\xc7\xd9\xbc\x88\x17\x05\xc6\xa7\x60\x1f\x01\x00\x00\xff\xff\xae\xfa\x5e\xb7\xcb" +
|
||||
"\x02\x00\x00")
|
||||
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x91\x41\x8f\xd3\x30\x10\x85\xef\xfe\x15\x8f\x6c\xae\xce\x8a\x2b\xa8" +
|
||||
"\x87\xd5\x92\x1b\xac\x50\x0b\xe2\x80\xd0\xca\xeb\x8c\xa9\xb5\x8e\x1d\xd9\x4e\x9b\xc8\xeb\xff\x8e\x52\x09\x70\xbb" +
|
||||
"\x6d\x39\x71\x89\x94\x99\x79\xcf\xdf\x9b\xb9\x79\x73\xfb\xa4\xed\x6d\xd8\x32\x76\x03\x9a\x74\xc4\x7e\x4b\x16\xc2" +
|
||||
"\xce\x90\xae\xef\x85\xed\xa0\x84\x36\x81\x05\x8a\xe0\xc4\x98\xe8\x3a\x1d\xb5\xb3\xc2\x3c\x46\xf2\x5e\x28\xe7\xfb" +
|
||||
"\x47\x37\x2c\xa5\xb0\xaa\xaa\xb2\xff\x3c\x3e\x51\xd9\x62\x7f\x05\x42\x2e\xd5\x55\x9d\xde\xbe\xe3\x62\x18\xcc\x9c" +
|
||||
"\x99\x56\xf8\x8e\xfa\x74\x04\xab\x15\xaa\xc3\x44\x85\x1f\xef\xe3\x96\x2c\x03\x80\xeb\x14\x75\xba\xd6\xcf\xe0\x62" +
|
||||
"\x8c\x6e\x79\xd7\xbb\x1d\x55\x8c\x4c\xa0\x53\xd7\x63\xf6\x23\xc3\xb2\x95\xc1\x79\xe7\x67\xee\x47\x5b\x31\xa5\x8b" +
|
||||
"\x88\xd0\x56\xc7\xe2\x77\xef\xfc\x73\x18\x84\x24\x04\x32\x24\x23\x52\x42\xd3\x4e\xd1\x8b\x35\x05\x37\x7a\x49\xa1" +
|
||||
"\xf9\xf6\x67\x26\x67\xbc\xbc\xe0\x9c\xda\xd2\xfe\x5f\xd2\xe2\xd5\xd7\xfb\xac\xaf\xad\x86\xb1\x25\x9c\x8c\x06\xd2" +
|
||||
"\x59\xa5\x7f\x62\x0c\xc4\xa5\xb3\x91\xa6\x88\x3a\xdd\x7f\xfc\xba\xf9\xd2\xae\x33\x4b\x89\x43\xab\x57\x10\x1b\xf2" +
|
||||
"\x3b\x2d\x69\xed\x0c\x35\xcb\xe7\x41\xf4\x07\x9e\xdf\xa6\x87\x3b\x82\xab\x73\x01\x2e\x68\xf9\x99\xd1\xd6\xee\xb4" +
|
||||
"\x77\xb6\x27\x1b\x91\x73\x33\x8b\xde\x80\x5b\xd4\xe9\xe1\xee\x53\xbb\xf9\x7c\x77\xdf\xe6\xa3\x98\xe5\xc1\x58\x4a" +
|
||||
"\x58\xee\x7d\x11\xeb\x03\x0d\xc6\xcd\x8b\x77\x53\x22\x9c\x94\x37\xa3\x52\x7a\xfa\x3f\x7c\x1c\x64\xbb\x85\xef\x57" +
|
||||
"\x00\x00\x00\xff\xff\x54\xa2\x5a\xff\x9c\x03\x00\x00")
|
||||
|
||||
func bindataTemplatesAwsrolestfDeployshBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
@@ -115,10 +116,10 @@ func bindataTemplatesAwsrolestfDeploysh() (*asset, error) {
|
||||
|
||||
info := bindataFileInfo{
|
||||
name: "templates/aws-roles-tf/deploy.sh",
|
||||
size: 715,
|
||||
size: 924,
|
||||
md5checksum: "",
|
||||
mode: os.FileMode(420),
|
||||
modTime: time.Unix(1602477747, 0),
|
||||
modTime: time.Unix(1602494656, 0),
|
||||
}
|
||||
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
@@ -163,7 +164,7 @@ func bindataTemplatesAwsrolestfMaintf() (*asset, error) {
|
||||
size: 896,
|
||||
md5checksum: "",
|
||||
mode: os.FileMode(420),
|
||||
modTime: time.Unix(1602480027, 0),
|
||||
modTime: time.Unix(1602483426, 0),
|
||||
}
|
||||
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
@@ -201,7 +202,7 @@ func bindataTemplatesAwss3buckettfDeploysh() (*asset, error) {
|
||||
size: 428,
|
||||
md5checksum: "",
|
||||
mode: os.FileMode(420),
|
||||
modTime: time.Unix(1589190905, 0),
|
||||
modTime: time.Unix(1602483426, 0),
|
||||
}
|
||||
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
@@ -244,7 +245,7 @@ func bindataTemplatesAwss3buckettfMaintf() (*asset, error) {
|
||||
size: 660,
|
||||
md5checksum: "",
|
||||
mode: os.FileMode(420),
|
||||
modTime: time.Unix(1602477747, 0),
|
||||
modTime: time.Unix(1602483426, 0),
|
||||
}
|
||||
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
@@ -285,7 +286,7 @@ func bindataTemplatesRdstfDeploysh() (*asset, error) {
|
||||
size: 817,
|
||||
md5checksum: "",
|
||||
mode: os.FileMode(420),
|
||||
modTime: time.Unix(1593411032, 0),
|
||||
modTime: time.Unix(1602483426, 0),
|
||||
}
|
||||
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
@@ -355,7 +356,7 @@ func bindataTemplatesRdstfMaintf() (*asset, error) {
|
||||
size: 5214,
|
||||
md5checksum: "",
|
||||
mode: os.FileMode(420),
|
||||
modTime: time.Unix(1602477747, 0),
|
||||
modTime: time.Unix(1602483426, 0),
|
||||
}
|
||||
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
|
||||
@@ -18,4 +18,8 @@ terraform workspace select {{ .ExtraResources.Workspace }} || terraform workspac
|
||||
terraform $terraform_action $additional_terraform_options
|
||||
|
||||
kubectl config use-context ${CLUSTER}
|
||||
{{- if .ExtraResources.ServiceRole.RoleName }}
|
||||
kubectl apply -f {{ .ExtraResources.ServiceRole.RoleName }}-{{ .ExtraResources.Environment }}.yaml -n ${NAMESPACE} $additional_kube_options
|
||||
{{ else }}
|
||||
kubectl apply -f {{ .Deployment.Name }}-{{ .Deployment.NameSuffix }}-{{ .ExtraResources.Environment }}.yaml -n ${NAMESPACE} $additional_kube_options
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user