Documentation
¶
Index ¶
- Constants
- func GetAction(obj metav1.Object) string
- func GetCreatedBy(obj metav1.Object) string
- func GetInstance(obj metav1.Object) map[string]string
- func GetPlan(obj metav1.Object) string
- func HasPlan(obj metav1.Object) bool
- func Propagate(child client.Object, parent client.Object)
- func SetAction(obj *metav1.ObjectMeta, action string)
- func SetComponent(obj *metav1.ObjectMeta, kind Component)
- func SetCreatedBy(child client.Object, parent client.Object)
- func SetInstance(obj metav1.Object)
- func SetPlan(obj *metav1.ObjectMeta, plan string)
- func SpecForSystemService(spec *v1alpha1.ServiceSpec) bool
- type Component
Constants ¶
View Source
const ( // ComponentSys is a component that belongs to Frisbee. Such components can be excluded from Chaos events. ComponentSys = Component("SYS") // ComponentSUT is a component that belongs to the system under testing ComponentSUT = Component("SUT") )
View Source
const ( // LabelName points to the plan LabelName = "plan.frisbee.io/name" // LabelPartOf points to the action this resource is part of. LabelPartOf = "plan.frisbee.io/action" // LabelCreatedBy points to the controller who created this resource LabelCreatedBy = "plan.frisbee.io/created-by" // LabelComponent describes the role of the component within the architecture. // It can be SUT (for system under service) or SYS (if it's a frisbee component like Grafana). LabelComponent = "plan.frisbee.io/component" // LabelInstance contains a unique name identifying the instance of the resource LabelInstance = "plan.frisbee.io/instance" )
https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/
View Source
const (
// ResourceDiscoveryLabel is used to discover frisbee resources across different namespaces
ResourceDiscoveryLabel = "discover.frisbee.io/name"
)
Variables ¶
This section is empty.
Functions ¶
func GetCreatedBy ¶
GetCreatedBy returns the creator of the resource.
func SetAction ¶
func SetAction(obj *metav1.ObjectMeta, action string)
func SetComponent ¶
func SetComponent(obj *metav1.ObjectMeta, kind Component)
func SetInstance ¶
func SetPlan ¶
func SetPlan(obj *metav1.ObjectMeta, plan string)
func SpecForSystemService ¶
func SpecForSystemService(spec *v1alpha1.ServiceSpec) bool
Types ¶
Click to show internal directories.
Click to hide internal directories.