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

Commit

Permalink
Fix clusterresource Project and domain(#167)
Browse files Browse the repository at this point in the history
* Fix clusterresource Project

Signed-off-by: Anand Swaminathan <[email protected]>
  • Loading branch information
anandswaminathan authored Mar 24, 2021
1 parent 24d3ece commit 0a2e2f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/clusterresource/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ 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, domainVariable)] = domain.Name
templateValues[fmt.Sprintf(templateVariableFormat, projectVariable)] = project.Identifier
templateValues[fmt.Sprintf(templateVariableFormat, domainVariable)] = domain.ID

var config = string(template)
for templateKey, templateValue := range templateValues {
Expand Down

0 comments on commit 0a2e2f7

Please sign in to comment.