Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit bd305fe

Browse files
committed
Update default namespace
1 parent 1ddd70d commit bd305fe

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

create_overlay.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
o.separator 'example: create_overlay --service my-service --cluster-repo my-company/my-cluster --target-image my-company/my-service'
1111
o.separator ''
1212
o.separator 'options:'
13-
o.string '-s', '--service',
13+
o.string '-s', '--service',
1414
'The service to deploy to your cluster', default: ENV['SERVICE']
15-
o.string '-r', '--cluster-repo',
15+
o.string '-r', '--cluster-repo',
1616
'GitHub repository that controls your cluster', default: ENV['CLUSTER_REPO']
17-
o.string '-i', '--target-image',
17+
o.string '-i', '--target-image',
1818
'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',
2222
'Image tag, or inferred from GITHUB_SHA', default: ENV['GITHUB_SHA']&.[](0..6)
23-
o.string '-T', '--token',
23+
o.string '-T', '--token',
2424
'GitHub access token with repos access, _NOT_ GITHUB_TOKEN', default: ENV['TOKEN']
2525
o.boolean '--flux',
2626
'Modifies manifests for automated Flux deployments', default: false

0 commit comments

Comments
 (0)