Skip to content

Commit

Permalink
Merge pull request #230 from shalb/hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
romanprog authored Oct 20, 2023
2 parents b2db17f + 598897f commit 4b3c6a3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/project/unit.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@ func NewUnit(spec map[string]interface{}, stack *Stack) (Unit, error) {
return nil, fmt.Errorf("incorrect unit type")
}
uName, ok := spec["name"].(string)
if !ok {
return nil, fmt.Errorf("incorrect unit name")
}
modDrv, exists := UnitFactoriesMap[mType]
// TODO remove deprecated unit type 'kubernetes'
if mType == "kubernetes" {
log.Warnf("Unit: '%v'. Unit type 'kubernetes' is deprecated and will be removed in future releases. Use 'k8s-manifest' instead", fmt.Sprintf("%v.%v", stack.Name, uName))
}
// if mType == "kubernetes" {
// log.Warnf("Unit: '%v'. Unit type 'kubernetes' is deprecated and will be removed in future releases. Use 'k8s-manifest' instead", fmt.Sprintf("%v.%v", stack.Name, uName))
// }
if !exists {
// TODO remove deprecated unit type 'terraform'
if mType == "terraform" {
Expand Down

0 comments on commit 4b3c6a3

Please sign in to comment.