|
10 | 10 | o.separator 'example: create_overlay --service my-service --cluster-repo my-company/my-cluster --target-image my-company/my-service'
|
11 | 11 | o.separator ''
|
12 | 12 | o.separator 'options:'
|
13 |
| - o.string '-s', '--service', |
| 13 | + o.string '-s', '--service', |
14 | 14 | 'The service to deploy to your cluster', default: ENV['SERVICE']
|
15 |
| - o.string '-r', '--cluster-repo', |
| 15 | + o.string '-r', '--cluster-repo', |
16 | 16 | 'GitHub repository that controls your cluster', default: ENV['CLUSTER_REPO']
|
17 |
| - o.string '-i', '--target-image', |
| 17 | + o.string '-i', '--target-image', |
18 | 18 | 'Remotely hosted target image', default: ENV['TARGET_IMAGE']
|
19 |
| - o.string '-n', '--namespace', |
20 |
| - 'Desired namespace, or inferred from GITHUB_REF', default: ENV['GITHUB_REF']&.split('/')&.reject{ |i| %w(refs heads).include? i }&.join('-') |
21 |
| - o.string '-t', '--tag', |
| 19 | + o.string '-n', '--namespace', |
| 20 | + 'Desired namespace, or inferred from GITHUB_HEAD_REF', default: ENV['GITHUB_HEAD_REF']&.split('/')&.join('-') |
| 21 | + o.string '-t', '--tag', |
22 | 22 | 'Image tag, or inferred from GITHUB_SHA', default: ENV['GITHUB_SHA']&.[](0..6)
|
23 |
| - o.string '-T', '--token', |
| 23 | + o.string '-T', '--token', |
24 | 24 | 'GitHub access token with repos access, _NOT_ GITHUB_TOKEN', default: ENV['TOKEN']
|
25 | 25 | o.boolean '--flux',
|
26 | 26 | 'Modifies manifests for automated Flux deployments', default: false
|
|
0 commit comments