mirror of
https://github.com/rancher/norman.git
synced 2025-09-22 03:28:42 +00:00
14 lines
217 B
Go
14 lines
217 B
Go
![]() |
package k8s
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
)
|
||
|
|
||
|
var serverConfig configKey
|
||
|
|
||
|
type configKey struct{}
|
||
|
|
||
|
func SetK3sConfig(ctx context.Context, conf interface{}) context.Context {
|
||
|
return context.WithValue(ctx, serverConfig, conf)
|
||
|
}
|