(ctx context.Context)
| 276 | } |
| 277 | |
| 278 | func IsRootNsOperation(ctx context.Context) bool { |
| 279 | md, ok := metadata.FromIncomingContext(ctx) |
| 280 | if !ok { |
| 281 | return false |
| 282 | } |
| 283 | ns := md.Get("galaxy-operation") |
| 284 | return len(ns) > 0 && (ns[0] == "true" || ns[0] == "True") |
| 285 | } |
| 286 | |
| 287 | func GetForceNamespace(ctx context.Context) string { |
| 288 | md, ok := metadata.FromIncomingContext(ctx) |
no test coverage detected