Skip to content

Commit

Permalink
removed deprecation warning of kubernetes unit
Browse files Browse the repository at this point in the history
  • Loading branch information
arti-shalb committed Oct 20, 2023
1 parent b2db17f commit e58efdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/project/unit.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ func NewUnit(spec map[string]interface{}, stack *Stack) (Unit, error) {
uName, ok := spec["name"].(string)
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 e58efdd

Please sign in to comment.