GetInstanceAttributes fetches an instance and converts its annotations to attributes nil is returned if an error occurred or instance was not found
(ctx context.Context, instanceID string)
| 129 | // GetInstanceAttributes fetches an instance and converts its annotations to attributes |
| 130 | // nil is returned if an error occurred or instance was not found |
| 131 | func (r *Runtime) GetInstanceAttributes(ctx context.Context, instanceID string) []attribute.KeyValue { |
| 132 | instance, err := r.Instance(ctx, instanceID) |
| 133 | if err != nil { |
| 134 | return nil |
| 135 | } |
| 136 | |
| 137 | return instanceAnnotationsToAttribs(instance) |
| 138 | } |
| 139 | |
| 140 | func (r *Runtime) UpdateInstanceWithRillYAML(ctx context.Context, instanceID string, p *parser.Parser, restartController bool) error { |
| 141 | if p.RillYAML == nil { |
no test coverage detected