Skip to content

Commit

Permalink
Fix up rubocop violations for annotation removal
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Aug 3, 2020
1 parent ea1235b commit 2d98f49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unit/krane/kubernetes_resource/deployment_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,9 @@ def stub_validation_dry_run(out: "", err: "", status: SystemExit.new(0))
.returns([out, err, status])
end

def build_deployment_template(status: { 'replicas' => 3 }, rollout: nil, strategy: 'rollingUpdate', max_unavailable: nil)
def build_deployment_template(status: { 'replicas' => 3 }, rollout: nil,
strategy: 'rollingUpdate', max_unavailable: nil)

base_deployment_manifest = fixtures.find { |fixture| fixture["kind"] == "Deployment" }
result = base_deployment_manifest.deep_merge("status" => status)
result["metadata"]["annotations"][rollout_annotation_key] = rollout if rollout
Expand Down

0 comments on commit 2d98f49

Please sign in to comment.