Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
barry cho
Rancher
Commits
c0a20840
Commit
c0a20840
authored
6 years ago
by
Daishan Peng
Committed by
Craig Jellick
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix regression on catalog
parent
287983ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/catalog/manager/crd.go
+1
-1
pkg/catalog/manager/crd.go
with
1 addition
and
1 deletion
+1
-1
pkg/catalog/manager/crd.go
+
1
-
1
View file @
c0a20840
...
...
@@ -119,7 +119,7 @@ func (m *Manager) createTemplate(template v3.Template, catalog *v3.Catalog, tagM
}
func
(
m
*
Manager
)
getTemplateMap
(
catalogName
string
)
(
map
[
string
]
*
v3
.
Template
,
error
)
{
r
,
_
:=
labels
.
NewRequirement
(
c
atalogName
,
selection
.
Equals
,
[]
string
{
catalogName
})
r
,
_
:=
labels
.
NewRequirement
(
C
atalogName
Label
,
selection
.
Equals
,
[]
string
{
catalogName
})
templateList
,
err
:=
m
.
templateLister
.
List
(
""
,
labels
.
NewSelector
()
.
Add
(
*
r
))
if
err
!=
nil
{
return
nil
,
err
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment