Files
odo/pkg/api/component-abstract.go
Philippe Martin ce8fdc1d5b Rename generic run-on flag into platform (#6445)
* Rename pkg/odo/commonflags/run_on.go to pkg/odo/commonflags/platform.go and change runOn to platform

* Rename feature

* Rename into pkg/odo/commonflags/context/

* Update comments

* Update doc

* fix comment

* Update integration tests

* Duplicate runningOn field with platform + deprecated runningOn

* Mark RunningOn as Deprecated

* Do not modify blog post

* Fix typo

* Add exception for SA1019

* odo describe component

* Fix integration tests for odo describe component
2023-01-03 13:51:51 -05:00

25 lines
963 B
Go

package api
// ComponentAbstract represents a component as part of a list of components
type ComponentAbstract struct {
Name string `json:"name"`
ManagedBy string `json:"managedBy"`
ManagedByVersion string `json:"managedByVersion"`
// RunningIn are the modes the component is running in, among Dev and Deploy
RunningIn RunningModes `json:"runningIn"`
Type string `json:"projectType"`
// RunningOn is the platform the component is running on, either cluster or podman
//
// Deprecated: This field is deprecated and will be replaced by Platform
RunningOn string `json:"runningOn,omitempty"`
// Platform is the platform the component is running on, either cluster or podman
Platform string `json:"platform,omitempty"`
}
const (
// TypeUnknown means that odo cannot tell its state
TypeUnknown = "Unknown"
// TypeNone means that it has not been pushed to the cluster *at all* in either deploy or dev
TypeNone = "None"
)