Skip to content

Commit

Permalink
Fixes user-namespace for kustomize 5 (#2583)
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseyolg authored Dec 26, 2023
1 parent a642df7 commit 12e5c63
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions common/user-namespace/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 12e5c63

Please sign in to comment.