Skip to content

Commit

Permalink
Fix namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
dudo committed Nov 12, 2019
1 parent dc7bfb1 commit 23bd523
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def create_supporting_manifests(svc) # rubocop:disable Metrics/AbcSize

@templates << Templates::Ingress.new(service: svc, namespace: namespace, hosts: base_ingress_hosts(svc)) if include_ingress?(svc)
@templates << Templates::Service.new(service: svc, namespace: namespace) if include_service?(svc)
@templates << Templates::Kustomization.new(service: svc, namespace: namespace, templates: @templates, svc: true)
@templates << Templates::Kustomization.new(service: svc, namespace: namespace, templates: @templates, primary: false)
end

def commit_overlay_to_github # rubocop:disable Metrics/AbcSize
Expand Down
4 changes: 2 additions & 2 deletions templates/kustomization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ def manifest

def resources
[].tap do |array|
array.push("#{Templates::Namespace::NAME}.yaml") if options[:templates].any?(&:namespace?)
array.push("#{Templates::Namespace::NAME}.yaml") if options[:primary] && options[:templates].any?(&:namespace?)
end
end

def patches
[].tap do |array|
array.push("#{Templates::Service::NAME}.yaml") if options[:svc]
array.push("#{Templates::Service::NAME}.yaml") unless options[:primary]
end
end

Expand Down

0 comments on commit 23bd523

Please sign in to comment.