Skip to content

Commit

Permalink
rebase on master'
Browse files Browse the repository at this point in the history
  • Loading branch information
timothysmith0609 committed Sep 4, 2019
1 parent c463236 commit 790f010
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/kubernetes-deploy/deploy_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,9 @@ def initialize(namespace:, context:, current_sha:, logger: nil, kubectl_instance
max_watch_seconds: nil, selector: nil, template_paths: [], template_dir: nil)
template_dir = File.expand_path(template_dir) if template_dir
template_paths = (template_paths.map { |path| File.expand_path(path) } << template_dir).compact
@template_sets = TemplateSet.with_dirs_and_files(template_paths) do |dir, files|
TemplateSet.new(
template_dir: dir,
file_whitelist: files,
logger: logger,
renderer: Renderer.new(current_sha: current_sha, logger: logger,
bindings: bindings, template_dir: dir)
)
end

@logger = logger || KubernetesDeploy::FormattedLogger.build(namespace, context)
@template_sets = TemplateSets.from_dirs_and_files(paths: template_paths, logger: @logger)
@task_config = KubernetesDeploy::TaskConfig.new(context, namespace, @logger)
@bindings = bindings
@namespace = namespace
Expand Down

0 comments on commit 790f010

Please sign in to comment.