From dd505fd212b1c0c5d7af7c0793fc5ef519bf26f1 Mon Sep 17 00:00:00 2001 From: Jasmine Dahilig Date: Wed, 21 Aug 2019 08:49:18 -0700 Subject: [PATCH] remove networking from job init --short example jobspec --- command/assets/example-short.nomad | 13 ------------- command/job_init.bindata_assetfs.go | 10 +++++----- 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/command/assets/example-short.nomad b/command/assets/example-short.nomad index f980e0be9f0f..ae3de97d3101 100644 --- a/command/assets/example-short.nomad +++ b/command/assets/example-short.nomad @@ -22,19 +22,6 @@ job "example" { port "db" {} } } - - service { - name = "redis-cache" - tags = ["global", "cache"] - port = "db" - - check { - name = "alive" - type = "tcp" - interval = "10s" - timeout = "2s" - } - } } } } diff --git a/command/job_init.bindata_assetfs.go b/command/job_init.bindata_assetfs.go index 6cadef30e0e2..8eb92269158c 100644 --- a/command/job_init.bindata_assetfs.go +++ b/command/job_init.bindata_assetfs.go @@ -87,7 +87,7 @@ func commandAssetsConnectShortNomad() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "command/assets/connect-short.nomad", size: 997, mode: os.FileMode(420), modTime: time.Unix(1566326933, 0)} + info := bindataFileInfo{name: "command/assets/connect-short.nomad", size: 997, mode: os.FileMode(420), modTime: time.Unix(1566490218, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -107,12 +107,12 @@ func commandAssetsConnectNomad() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "command/assets/connect.nomad", size: 17625, mode: os.FileMode(420), modTime: time.Unix(1566326933, 0)} + info := bindataFileInfo{name: "command/assets/connect.nomad", size: 17625, mode: os.FileMode(420), modTime: time.Unix(1566490218, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _commandAssetsExampleShortNomad = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x74\x51\xd1\x6e\x83\x30\x0c\x7c\xcf\x57\x9c\xf2\xbc\x4d\xb4\x55\x3b\x6d\x12\x5f\x32\x55\x53\x48\x3c\x9a\x95\x90\xc8\x09\x6c\x55\xc5\xbf\x4f\xd0\x42\xc3\xc3\x5e\x30\xba\x3b\xfb\xec\xcb\xb7\xaf\x20\xe9\x57\xb9\xd0\x90\xc4\x55\x00\x46\x25\xa5\xa9\x4d\xc4\x11\x25\x3e\xa4\xd1\x1b\x79\x14\x02\xa8\xd9\x77\x01\x52\x2b\x7d\xba\x4b\x81\xa4\xe2\x19\x92\xc9\xd8\x38\x43\x80\x61\xdb\x13\xa3\x84\x34\x5e\x9f\x89\xa5\xb8\x13\xda\xb7\x5f\xb6\x5e\x74\x80\x75\xaa\xa6\x51\x38\x4d\x78\xdf\xbd\x6c\x17\x2d\x10\x3c\xa7\x4f\xa7\x42\xa6\x07\x4c\x85\x12\x87\xdd\xeb\xdb\x82\x0d\x62\xae\xf7\x1f\xa6\xe8\x3b\xd6\x14\xb3\x46\x1d\xba\xb1\x94\xd8\x17\xc5\x02\x3a\x72\x9e\x2f\x28\xb1\xdd\x1f\x1e\xb6\x2d\xa5\x1f\xcf\xe7\x95\xab\xab\x6c\x1a\xd3\xd8\x14\x19\x38\xee\x07\x48\x53\x49\xe0\x3a\xfc\xbf\x4f\x24\xee\xad\xa6\x6c\x60\xab\xdc\xe3\xea\xe7\x5b\xa0\x0b\x99\x54\x7d\x0b\xbe\x6e\x7c\xa5\x1a\xf9\x34\x47\x7e\x5c\x25\x33\xc5\x5b\x65\x71\xe9\x13\xe9\xf5\xd6\x93\xcd\xed\x6c\xa9\x1a\xdb\x67\x26\x40\xba\x84\x85\x4c\x3a\xe4\x94\x1d\x1f\xbf\x57\xcd\x48\x6d\x8a\xb8\xea\xb2\x8e\x7c\x97\xa6\xae\x6d\xc6\x3c\x8e\x9e\xbf\x83\x18\xc4\x5f\x00\x00\x00\xff\xff\xfb\x5f\xf9\x77\x5d\x02\x00\x00") +var _commandAssetsExampleShortNomad = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x6c\x90\xdd\x4a\xc4\x30\x10\x85\xef\xf3\x14\x87\x79\x00\xe9\xee\xb2\x2b\x0a\x79\x12\x11\x49\x93\xb1\xc6\x9a\x4e\x98\xa4\xfe\xb0\xf4\xdd\xa5\xd2\xd6\x0a\xde\x64\xc2\x97\x2f\x39\x87\xbc\x4a\x0b\xe2\x4f\x97\xf2\x1b\x13\xae\x06\x08\xae\x3a\xcf\x43\x65\x2d\xb0\x78\xa0\xe0\x0f\xf4\x68\x0c\xd0\xa9\x8c\x19\xe4\x9d\x7f\x59\x54\xa0\xba\xd2\x83\x94\x43\x2c\x2b\x02\x82\xc6\x77\x56\x58\x50\x10\xdf\xb3\x92\x59\x0e\xbc\x0c\xcf\xb1\xdb\x3c\x20\x26\xd7\xf1\x2c\xfe\xbc\x70\x7f\xba\x39\x6e\x2e\x90\x45\xeb\x53\x72\x79\xe7\x03\xa1\x85\xc5\xe5\x74\x7b\xb7\xb1\xc9\xac\x73\xd9\x28\x17\x19\xd5\x73\xd9\x5d\xf4\x79\x9c\x87\xc5\xb9\x69\x36\x98\x38\x89\x7e\xc1\xe2\x78\xbe\xfc\xc6\x0e\x5c\x3f\x44\xfb\x3f\xa9\xa9\x8d\x75\xfe\x8d\x43\xb3\x83\x73\x3f\x80\x42\x4b\xc0\x75\xfa\xa7\xcf\xba\x4e\x66\x32\xdf\x01\x00\x00\xff\xff\xd2\x2e\x19\x9c\x68\x01\x00\x00") func commandAssetsExampleShortNomadBytes() ([]byte, error) { return bindataRead( @@ -127,7 +127,7 @@ func commandAssetsExampleShortNomad() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "command/assets/example-short.nomad", size: 605, mode: os.FileMode(420), modTime: time.Unix(1566326933, 0)} + info := bindataFileInfo{name: "command/assets/example-short.nomad", size: 360, mode: os.FileMode(420), modTime: time.Unix(1566869876, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -147,7 +147,7 @@ func commandAssetsExampleNomad() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "command/assets/example.nomad", size: 15629, mode: os.FileMode(420), modTime: time.Unix(1566326933, 0)} + info := bindataFileInfo{name: "command/assets/example.nomad", size: 15629, mode: os.FileMode(420), modTime: time.Unix(1566490218, 0)} a := &asset{bytes: bytes, info: info} return a, nil }