We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 047aeb9 + 65b130c commit 28dc0d1Copy full SHA for 28dc0d1
mesheryctl/pkg/utils/model.go
@@ -14,7 +14,6 @@ import (
14
15
var (
16
shouldRegisterMod = "publishToSites"
17
- shouldRegisterToRegsitry = "publishToRegistry"
18
)
19
20
type ModelCSV struct {
@@ -130,7 +129,9 @@ func (mch *ModelCSVHelper) ParseModelsSheet(parseForDocs bool) error {
130
129
if parseForDocs {
131
index = GetIndexForRegisterCol(columns, shouldRegisterMod)
132
} else {
133
- index = GetIndexForRegisterCol(columns, shouldRegisterToRegsitry)
+ // Generation of models should not consider publishedToRegistry column value.
+ // Generation should happen for all models, while during registration "published" attribute should be respected.
134
+ return true
135
}
136
if index != -1 && index < len(currentRow) {
137
shouldRegister := currentRow[index]
0 commit comments