ch9991 | Deepak | fixing deploy scripts
This commit is contained in:
74
bindata.go
74
bindata.go
@@ -84,19 +84,19 @@ func (fi bindataFileInfo) Sys() interface{} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var _bindataTemplatesAwsrolestfDeploysh = []byte(
|
var _bindataTemplatesAwsrolestfDeploysh = []byte(
|
||||||
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\x51\x4d\xaf\xda\x30\x10\xbc\xfb\x57\x6c\x43\xae\x0e\xea\xb5\x55\x0e" +
|
"\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" +
|
||||||
"\x88\xe6\xd6\xa2\x0a\x5a\xf5\x50\x55\xc8\x38\xeb\x62\xe1\xac\x23\xdb\x81\x44\xc1\xff\xfd\x29\x48\x8f\x67\x3e\xf4" +
|
"\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" +
|
||||||
"\xde\xd1\x33\xb3\x3b\x3b\x9e\xd9\xa7\xf9\x4e\xd3\xdc\xef\x19\x9b\x01\xf6\x3a\xc0\x69\x8f\x04\x82\x06\x90\xb6\x69" +
|
"\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" +
|
||||||
"\x04\xd5\xa0\x84\x36\x9e\x79\x0c\xc0\x91\x31\x51\xd7\x3a\x68\x4b\xc2\x6c\x03\x3a\x27\x94\x75\xcd\xd6\xb6\x13\xe4" +
|
"\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" +
|
||||||
"\xcb\x2c\x4b\xf9\x43\xb7\xc3\x94\x62\x6f\x03\x42\x4e\x68\x99\x8f\x9f\xbf\x70\xd1\xb6\x66\x88\x4c\x2b\xf8\x0b\xf9" +
|
"\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" +
|
||||||
"\xbd\x04\xca\x12\xb2\x8b\x22\x83\x7f\x5f\xc3\x1e\x89\x01\x00\x24\x2e\x57\x83\x7c\x7c\x44\x23\x70\xd1\x05\x3b\x79" +
|
"\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" +
|
||||||
"\x38\x7b\xc4\x8c\xa1\xf1\x78\xbf\xe1\xf6\xce\x9b\x35\x29\x15\x81\xf3\xda\x0d\xdc\x75\x94\x31\xa5\x93\x38\xa0\x49" +
|
"\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" +
|
||||||
"\x87\xe4\x79\xb2\xee\xe0\x5b\x21\x11\x3c\x1a\x94\x01\xc6\x11\x8a\xaa\x0f\x4e\xac\xd1\xdb\xce\x49\xf4\xc5\x9f\xab" +
|
"\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" +
|
||||||
"\x26\x46\x38\x9f\xe1\xd9\x34\xe1\xe9\xa3\xd1\xc4\xf5\xf1\xef\xf2\xf7\xca\x62\x6c\x0a\x27\x83\x01\x69\x49\xe9\xff" +
|
"\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" +
|
||||||
"\xd0\x79\xe4\xd2\x52\xc0\x3e\x40\x3e\x2e\xbf\xff\xde\xfc\xaa\xd6\xf1\xaa\xba\x94\x00\x5c\x5d\x2e\xfa\x86\xad\xb1" +
|
"\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" +
|
||||||
"\x43\x83\x14\x8a\x95\x68\xa6\x43\xf8\x13\x78\xd3\x29\xa5\xfb\x57\xf2\x2e\x45\x45\x47\xed\x2c\x4d\x62\x88\xb1\x18" +
|
"\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" +
|
||||||
"\x44\x63\x80\x13\xe4\xe3\x6a\xf1\xa3\xda\xfc\x5c\x2c\xab\x78\x13\x20\xad\xe2\x25\x00\x00\xff\xff\x2d\x97\xc7\xbf" +
|
"\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" +
|
||||||
"\xb6\x02\x00\x00")
|
"\x02\x00\x00")
|
||||||
|
|
||||||
func bindataTemplatesAwsrolestfDeployshBytes() ([]byte, error) {
|
func bindataTemplatesAwsrolestfDeployshBytes() ([]byte, error) {
|
||||||
return bindataRead(
|
return bindataRead(
|
||||||
@@ -115,10 +115,10 @@ func bindataTemplatesAwsrolestfDeploysh() (*asset, error) {
|
|||||||
|
|
||||||
info := bindataFileInfo{
|
info := bindataFileInfo{
|
||||||
name: "templates/aws-roles-tf/deploy.sh",
|
name: "templates/aws-roles-tf/deploy.sh",
|
||||||
size: 694,
|
size: 715,
|
||||||
md5checksum: "",
|
md5checksum: "",
|
||||||
mode: os.FileMode(420),
|
mode: os.FileMode(420),
|
||||||
modTime: time.Unix(1588771288, 0),
|
modTime: time.Unix(1588787351, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
@@ -170,14 +170,14 @@ func bindataTemplatesAwsrolestfMaintf() (*asset, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var _bindataTemplatesAwss3buckettfDeploysh = []byte(
|
var _bindataTemplatesAwss3buckettfDeploysh = []byte(
|
||||||
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\x8f\xb1\x4e\xf3\x40\x10\x84\xfb\x7d\x8a\xf9\x2f\x6e\x9d\xe8\x6f\x41" +
|
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\x90\xb1\x4e\xc3\x30\x10\x86\xf7\x7b\x8a\x1f\x37\x6b\x5a\xb1\x82\x32" +
|
||||||
"\x2e\x79\x01\x1a\x0a\x84\xa2\xe5\xbc\x96\x57\xd8\x77\xd6\xdd\x06\x27\x72\xfc\xee\xc8\x14\x89\x85\x91\x28\xf7\xd3" +
|
"\xf2\x02\x2c\x0c\x08\x55\x87\x73\x51\x4e\x24\x76\x64\x5f\x49\xab\x34\xef\x8e\xc2\x40\x2b\x40\xe9\xe8\xdf\xdf\xaf" +
|
||||||
"\x8c\xbe\x9d\xdd\xbf\xc3\xbb\x86\x43\x6e\x89\x76\x90\xb3\x1a\xc6\x56\x02\x38\x5c\xe0\x63\xdf\x73\xa8\xd1\xb0\x76" +
|
"\xef\xee\x36\x77\xbb\x77\x0d\xbb\xdc\x12\x6d\x20\x47\x35\x8c\xad\x04\x70\x38\xc1\xc7\xbe\xe7\x50\xa3\x61\xed\x32" +
|
||||||
"\x99\xb2\x18\x4a\x21\xe2\xba\x56\xd3\x18\xb8\x3b\x9a\xa4\xc4\x4d\x4c\xfd\x31\x0e\x0b\xca\x95\x73\x74\x87\xec\x17" +
|
"\x65\x31\x94\x42\xc4\x75\xad\xa6\x31\x70\xb7\x37\x49\x89\x9b\x98\xfa\x7d\x1c\x96\x28\x57\xce\xd1\x25\x64\xbf\x84" +
|
||||||
"\x58\x15\xd3\xff\x87\x92\x87\xa1\xbb\xcc\x44\xda\xe0\x15\xc5\xcf\x0c\xaa\x0a\xee\x3b\xe2\xf0\xf6\x68\xad\x04\x02" +
|
"\x55\x31\xdd\x3f\x94\x3c\x0c\xdd\x69\x26\xd2\x06\xaf\x28\x7e\x33\xa8\x2a\xb8\x6f\xc4\xe1\xed\xd1\x5a\x09\x04\x00" +
|
||||||
"\x80\x95\xea\x26\x28\xa6\x2d\x9d\x51\xf2\xc9\xe2\x22\x49\xf1\x53\x1c\x35\x4a\xf7\x3f\xa0\x41\x6d\x75\x8e\x31\x7d" +
|
"\xeb\xaa\x62\x5a\xfb\x9f\x51\xf2\xc1\xe2\x22\x4e\xf1\x53\x1c\x35\x4a\x97\xd9\xa0\x41\xed\xea\x39\xc6\xf4\x91\x07" +
|
||||||
"\xe4\x81\xbd\x20\x4b\x27\xde\x30\x4d\xd8\x3f\x9d\x2d\xf1\xb3\xe4\x78\x4a\x5e\xf2\xfe\xe5\x96\x99\x67\x5c\xaf\xf8" +
|
"\xf6\x82\x2c\x9d\x78\xc3\x34\x61\xfb\x74\xb4\xc4\xcf\x92\xe3\x21\x79\xc9\xdb\x97\x1f\x66\x9e\x71\x3e\xe3\xbf\x76" +
|
||||||
"\xad\x1d\x64\xfc\xab\xba\xb2\x6e\x37\x17\xdb\x21\x5f\x01\x00\x00\xff\xff\xaa\x7e\x34\xfa\x8d\x01\x00\x00")
|
"\x90\xf1\x56\xf5\xca\xfa\xf7\x0e\xc5\xda\x4a\xf4\x15\x00\x00\xff\xff\x25\xc5\x00\xaa\xac\x01\x00\x00")
|
||||||
|
|
||||||
func bindataTemplatesAwss3buckettfDeployshBytes() ([]byte, error) {
|
func bindataTemplatesAwss3buckettfDeployshBytes() ([]byte, error) {
|
||||||
return bindataRead(
|
return bindataRead(
|
||||||
@@ -196,10 +196,10 @@ func bindataTemplatesAwss3buckettfDeploysh() (*asset, error) {
|
|||||||
|
|
||||||
info := bindataFileInfo{
|
info := bindataFileInfo{
|
||||||
name: "templates/aws-s3-bucket-tf/deploy.sh",
|
name: "templates/aws-s3-bucket-tf/deploy.sh",
|
||||||
size: 397,
|
size: 428,
|
||||||
md5checksum: "",
|
md5checksum: "",
|
||||||
mode: os.FileMode(420),
|
mode: os.FileMode(420),
|
||||||
modTime: time.Unix(1588771288, 0),
|
modTime: time.Unix(1588787379, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
@@ -251,16 +251,16 @@ func bindataTemplatesAwss3buckettfMaintf() (*asset, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var _bindataTemplatesRdstfDeploysh = []byte(
|
var _bindataTemplatesRdstfDeploysh = []byte(
|
||||||
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x91\xb1\x4e\xc3\x30\x10\x86\x77\x3f\xc5\x11\xb2\xd6\x15\x2b\x28\x23" +
|
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x90\xb1\x4e\xf4\x30\x10\x84\x7b\x3f\xc5\xfe\xf9\xd3\x9e\x4f\xb4\xa0" +
|
||||||
"\x2f\xc0\xc2\x80\x90\x75\xb5\x2f\xad\x45\x62\x5b\xbe\x4b\x02\x4a\xf3\xee\x28\x08\x35\x11\x45\x54\x0c\xdd\xec\xcf" +
|
"\x94\xbc\x00\x0d\x05\x42\xd6\xc6\xde\xdc\x59\x24\xb6\xe5\xdd\x24\xa0\x5c\xde\x1d\x05\x21\x72\x02\x94\x13\xc5\x75" +
|
||||||
"\xff\xf9\xf3\x2f\xdf\xde\x6c\x77\x3e\x6c\xf9\xa0\x14\x3a\xe7\xc5\xc7\x80\x8d\x11\xca\x19\xeb\x98\x5b\x13\xd3\x8c" +
|
"\xf6\xec\x8c\x3f\xef\xfc\xff\xb7\xaf\x7d\xd8\xf3\x51\x29\x74\xce\x8b\x8f\x01\x5b\x23\x94\x33\x36\x31\x77\x26\xa6" +
|
||||||
"\xb8\x2a\x0a\xb5\x40\xb4\x33\xac\xca\xf1\xee\x7e\x83\x29\x35\x1f\x93\x52\xbe\x86\x17\x28\x7f\x66\xa0\xaa\xa0\xf8" +
|
"\x45\xe2\xaa\x28\xd4\x2a\xa2\x5d\xc4\xaa\x9c\x6e\x6e\x77\x98\x52\xfb\x36\x2b\xe5\x1b\x78\x82\xf2\xbb\x07\xaa\x0a" +
|
||||||
"\x8a\x14\xf0\xfa\x20\x07\x0a\x0a\x00\x60\xa5\x3a\x09\xca\xf1\x9c\x4e\xb0\xc1\x4e\xe2\x2c\xc9\xb1\xa7\x42\xd5\x5e" +
|
"\x8a\x0f\x4b\x01\xcf\x77\x72\xa4\xa0\x00\x00\xb6\x51\xe5\xb4\x35\x9f\x61\x87\xbd\xc4\x05\x9c\xe3\x40\x85\x6a\xbc" +
|
||||||
"\x2d\xef\x00\x1f\xbc\xac\xb6\x43\xcc\x6f\x9c\xd0\x12\x30\x35\x64\x05\xc6\x11\xf4\xe3\xbb\x64\x7c\x22\x8e\x5d\xb6" +
|
"\x5a\xff\x06\x3e\x78\x39\xbb\x8e\x31\xbf\x70\x42\x4b\xc0\xd4\x92\x15\x98\x26\xd0\xf7\xaf\x92\xf1\x81\x38\xf6\xd9" +
|
||||||
"\xc4\xfa\xf9\x94\x99\x26\x38\x1e\xe1\xb7\xe9\x40\xc3\xa5\xd1\x95\xf5\xbc\xf3\x46\x30\xef\x49\xaa\x36\xba\xae\x21" +
|
"\x12\xeb\xc7\x2f\xcf\x3c\xc3\xe9\x04\xbf\xa5\x03\x8d\x97\xa2\x67\xd4\x9f\x3d\xec\x04\xf3\x81\xa4\xea\xa2\xeb\x5b" +
|
||||||
"\x9d\x1d\x6b\x87\x82\x1a\x07\x36\xdc\xed\x02\x89\xf1\x8e\xb5\x8d\x6d\x8b\xc1\x99\x94\x7d\x8f\x42\xdf\x47\x0c\xe5" +
|
"\xd2\xd9\xb1\x76\x28\xa8\x71\x64\xc3\x7d\x1d\x48\x8c\x77\xac\x6d\xec\x3a\x0c\xce\xa4\xec\x07\x14\xfa\x1c\x31\x94" +
|
||||||
"\x5f\x1f\xf1\x5f\xf1\xb2\x34\x3e\xb0\x60\xb0\x74\x75\x81\xa1\x9e\xc2\x95\x8a\xa4\xc8\xb2\xcf\xc4\xc6\xed\x2e\xdc" +
|
"\x5b\x8d\xfc\x15\xbc\x1e\x8d\x0f\x2c\x18\x2c\x5d\x1d\x60\x68\xa0\x70\xa5\x45\x52\x64\x39\x64\x62\xe3\xea\x0b\xef" +
|
||||||
"\xff\x19\x00\x00\xff\xff\x78\x3a\x19\xa0\xda\x02\x00\x00")
|
"\xbf\x07\x00\x00\xff\xff\x10\x3a\x85\x28\xee\x02\x00\x00")
|
||||||
|
|
||||||
func bindataTemplatesRdstfDeployshBytes() ([]byte, error) {
|
func bindataTemplatesRdstfDeployshBytes() ([]byte, error) {
|
||||||
return bindataRead(
|
return bindataRead(
|
||||||
@@ -279,10 +279,10 @@ func bindataTemplatesRdstfDeploysh() (*asset, error) {
|
|||||||
|
|
||||||
info := bindataFileInfo{
|
info := bindataFileInfo{
|
||||||
name: "templates/rds-tf/deploy.sh",
|
name: "templates/rds-tf/deploy.sh",
|
||||||
size: 730,
|
size: 750,
|
||||||
md5checksum: "",
|
md5checksum: "",
|
||||||
mode: os.FileMode(420),
|
mode: os.FileMode(420),
|
||||||
modTime: time.Unix(1588771288, 0),
|
modTime: time.Unix(1588787322, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ additional_kube_options=""
|
|||||||
|
|
||||||
terraform_action=${1:-apply}
|
terraform_action=${1:-apply}
|
||||||
if [ $terraform_action == "apply" ];then
|
if [ $terraform_action == "apply" ];then
|
||||||
additional_options="${additional_options} -auto-approve"
|
additional_terraform_options="${additional_terraform_options} -auto-approve"
|
||||||
else
|
else
|
||||||
additional_kube_options="${additional_kube_options} --dry-run"
|
additional_kube_options="${additional_kube_options} --dry-run"
|
||||||
fi
|
fi
|
||||||
@@ -18,4 +18,4 @@ terraform workspace select {{ .ExtraResources.Workspace }} || terraform workspac
|
|||||||
terraform $terraform_action $additional_terraform_options
|
terraform $terraform_action $additional_terraform_options
|
||||||
|
|
||||||
kubectl config use-context ${CLUSTER}
|
kubectl config use-context ${CLUSTER}
|
||||||
kubectl apply -f {{ .Deployment.Name }}-{{ .Deployment.NameSuffix }}-{{ .ExtraResources.Environment }}.yaml -n ${NAMESPACE} $additional_kube_options
|
kubectl apply -f {{ .Deployment.Name }}-{{ .Deployment.NameSuffix }}-{{ .ExtraResources.Environment }}.yaml -n ${NAMESPACE} $additional_kube_options
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ additional_terraform_options=""
|
|||||||
terraform_action=${1:-apply}
|
terraform_action=${1:-apply}
|
||||||
|
|
||||||
if [ $terraform_action == "apply" ];then
|
if [ $terraform_action == "apply" ];then
|
||||||
additional_options="${additional_options} -auto-approve"
|
additional_terraform_options="${additional_terraform_options} -auto-approve"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
terraform init
|
terraform init
|
||||||
terraform workspace select {{ .ExtraResources.Workspace }} || terraform workspace new {{ .ExtraResources.Workspace }}
|
terraform workspace select {{ .ExtraResources.Workspace }} || terraform workspace new {{ .ExtraResources.Workspace }}
|
||||||
terraform $terraform_action $additional_options
|
terraform $terraform_action $additional_terraform_options
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ additional_terraform_options=""
|
|||||||
terraform_action=${1:-apply}
|
terraform_action=${1:-apply}
|
||||||
|
|
||||||
if [ $terraform_action == "apply" ];then
|
if [ $terraform_action == "apply" ];then
|
||||||
additional_options="${additional_options} -auto-approve"
|
additional_terraform_options="${additional_terraform_options} -auto-approve"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
terraform init
|
terraform init
|
||||||
|
|||||||
Reference in New Issue
Block a user