diff --git a/common/user-namespace/base/kustomization.yaml b/common/user-namespace/base/kustomization.yaml index ebf7180b35..a77e6bba95 100644 --- a/common/user-namespace/base/kustomization.yaml +++ b/common/user-namespace/base/kustomization.yaml @@ -5,25 +5,37 @@ kind: Kustomization resources: - profile-instance.yaml configMapGenerator: -- name: default-install-config - envs: +- envs: - params.env -vars: + name: default-install-config # These vars are used for substituing in the parameters from the config map # into the Profiles custom resource. -- name: user - objref: +configurations: +- params.yaml +replacements: +- source: + fieldPath: data.user kind: ConfigMap name: default-install-config - apiVersion: v1 - fieldref: - fieldpath: data.user -- name: profile-name - objref: + version: v1 + targets: + - fieldPaths: + - spec.owner.name + select: + group: kubeflow.org + kind: Profile + name: $(profile-name) + version: v1beta1 +- source: + fieldPath: data.profile-name kind: ConfigMap name: default-install-config - apiVersion: v1 - fieldref: - fieldpath: data.profile-name -configurations: -- params.yaml + version: v1 + targets: + - fieldPaths: + - metadata.name + select: + group: kubeflow.org + kind: Profile + name: $(profile-name) + version: v1beta1