try again
This commit is contained in:
parent
6463458ab2
commit
540b683b0e
|
@ -69,6 +69,9 @@ metadata:
|
|||
namespace: longhorn-system
|
||||
spec:
|
||||
interval: 5m
|
||||
dependsOn:
|
||||
name: kyverno
|
||||
namespace: longhorn-system
|
||||
chart:
|
||||
spec:
|
||||
chart: raw
|
||||
|
@ -83,14 +86,14 @@ spec:
|
|||
- apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: longhorn
|
||||
name: longhorn-custom-path
|
||||
namespace: longhorn-system
|
||||
data:
|
||||
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/run/wrappers/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin
|
||||
- apiVersion: kyverno.io/v1
|
||||
kind: ClusterPolicy
|
||||
metadata:
|
||||
name: longhorn
|
||||
name: add-host-path-to-longhorn
|
||||
annotations:
|
||||
policies.kyverno.io/title: Add Environment Variables from ConfigMap
|
||||
policies.kyverno.io/subject: Pod
|
||||
|
@ -116,9 +119,9 @@ spec:
|
|||
- (name): "*"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: longhorn
|
||||
name: longhorn-custom-path
|
||||
containers:
|
||||
- (name): "*"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: longhorn
|
||||
name: longhorn-custom-path
|
Loading…
Reference in New Issue