Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes user-namespace for kustomize 5 #2583

Merged
merged 1 commit into from
Dec 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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