Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Fix clusterresource Project #167

Merged
merged 2 commits into from
Mar 24, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/clusterresource/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func (c *controller) syncNamespace(ctx context.Context, project models.Project,
// First, add the special case namespace template which is always substituted by the system
// rather than fetched via a user-specified source.
templateValues[fmt.Sprintf(templateVariableFormat, namespaceVariable)] = namespace
templateValues[fmt.Sprintf(templateVariableFormat, projectVariable)] = project.Name
templateValues[fmt.Sprintf(templateVariableFormat, projectVariable)] = project.Identifier
templateValues[fmt.Sprintf(templateVariableFormat, domainVariable)] = domain.Name

var config = string(template)
Expand Down