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

Commit 23bd523

Browse files
committed
Fix namespacing
1 parent dc7bfb1 commit 23bd523

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

manifest.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def create_supporting_manifests(svc) # rubocop:disable Metrics/AbcSize
8787

8888
@templates << Templates::Ingress.new(service: svc, namespace: namespace, hosts: base_ingress_hosts(svc)) if include_ingress?(svc)
8989
@templates << Templates::Service.new(service: svc, namespace: namespace) if include_service?(svc)
90-
@templates << Templates::Kustomization.new(service: svc, namespace: namespace, templates: @templates, svc: true)
90+
@templates << Templates::Kustomization.new(service: svc, namespace: namespace, templates: @templates, primary: false)
9191
end
9292

9393
def commit_overlay_to_github # rubocop:disable Metrics/AbcSize

templates/kustomization.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ def manifest
2525

2626
def resources
2727
[].tap do |array|
28-
array.push("#{Templates::Namespace::NAME}.yaml") if options[:templates].any?(&:namespace?)
28+
array.push("#{Templates::Namespace::NAME}.yaml") if options[:primary] && options[:templates].any?(&:namespace?)
2929
end
3030
end
3131

3232
def patches
3333
[].tap do |array|
34-
array.push("#{Templates::Service::NAME}.yaml") if options[:svc]
34+
array.push("#{Templates::Service::NAME}.yaml") unless options[:primary]
3535
end
3636
end
3737

0 commit comments

Comments
 (0)