Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
peiranliushop committed Jun 8, 2021
1 parent 227e264 commit 52beee3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/krane/cli/deploy_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class DeployCommand
"selector" => { type: :string, banner: "'label=value'",
desc: "Select workloads by selector(s)" },
"selector-as-filter" => { type: :boolean,
desc: "Use --selector as a label filter to select a subset of resources to deploy",
default: false },
desc: "Use --selector as a label filter to select a subset of resources to deploy",
default: false },
"verbose-log-prefix" => { type: :boolean, desc: "Add [context][namespace] to the log prefix",
default: false },
"verify-result" => { type: :boolean, default: true,
Expand Down
4 changes: 2 additions & 2 deletions lib/krane/cli/global_deploy_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class GlobalDeployCommand
"selector" => { type: :string, banner: "'label=value'", required: true,
desc: "Select workloads owned by selector(s)" },
"selector-as-filter" => { type: :boolean,
desc: "Use --selector as a label filter to select a subset of resources to deploy",
default: false },
desc: "Use --selector as a label filter to select a subset of resources to deploy",
default: false },
"prune" => { type: :boolean, desc: "Enable deletion of resources that match"\
" the provided selector and do not appear in the provided templates",
default: true },
Expand Down
3 changes: 2 additions & 1 deletion test/helpers/fixture_deploy_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def deploy_raw_fixtures(set, wait: true, bindings: {}, subset: nil, render_erb:
end

def deploy_dirs_without_profiling(dirs, wait: true, prune: true, bindings: {},
sha: "k#{SecureRandom.hex(6)}", kubectl_instance: nil, global_timeout: nil, selector: nil, selector_as_filter: false,
sha: "k#{SecureRandom.hex(6)}", kubectl_instance: nil, global_timeout: nil,
selector: nil, selector_as_filter: false,
protected_namespaces: nil, render_erb: false)
kubectl_instance = build_kubectl

Expand Down

0 comments on commit 52beee3

Please sign in to comment.