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

[backend] Warning during kubeflow pipelines installation about deprecated commonLabels #11272

Open
etheleon opened this issue Oct 6, 2024 · 6 comments

Comments

@etheleon
Copy link

etheleon commented Oct 6, 2024

Environment

  • How did you deploy Kubeflow Pipelines (KFP)?
    I deployed KFP on my standalone workstation running Ubuntu 24.04 LTS

  • KFP version:
    2.3.0

Steps to reproduce

Followed instructions from https://www.kubeflow.org/docs/components/pipelines/operator-guides/installation/

export PIPELINE_VERSION=2.3.0
kubectl apply -k "github.com/kubeflow/pipelines/manifests/kustomize/cluster-scoped-resources?ref=$PIPELINE_VERSION"
kubectl wait --for condition=established --timeout=60s crd/applications.app.k8s.io
kubectl apply -k "github.com/kubeflow/pipelines/manifests/kustomize/env/dev?ref=$PIPELINE_VERSION"

When applying the last command i got a couple of commonLabels is deprecated warning.

kubectl apply -k "github.com/kubeflow/pipelines/manifests/kustomize/env/dev?ref=$PIPELINE_VERSION"

# Warning: 'commonLabels' is deprecated. Please use 'labels' instead. Run 'kustomize edit fix' to update your Kustomization automatically.
# Warning: 'vars' is deprecated. Please use 'replacements' instead. [EXPERIMENTAL] Run 'kustomize edit fix' to update your Kustomization automatically.
# Warning: 'commonLabels' is deprecated. Please use 'labels' instead. Run 'kustomize edit fix' to update your Kustomization automatically.
# Warning: 'commonLabels' is deprecated. Please use 'labels' instead. Run 'kustomize edit fix' to update your Kustomization automatically.

I would love to work on this could anyone guide me?

Impacted by this bug? Give it a 👍.

@HumairAK
Copy link
Collaborator

HumairAK commented Oct 7, 2024

Hey @etheleon this looks like the kustomize manifest files need to be updated, you can grep for all occurrences of these in the manifests folder example here:

# from manifests/ folder
$ grep -r "commonLabels" . 
./kustomize/base/cache-deployer/kustomization.yaml:commonLabels:
./kustomize/base/cache/kustomization.yaml:commonLabels:
./kustomize/base/installs/multi-user/cache/kustomization.yaml:commonLabels:
./kustomize/base/installs/multi-user/pipelines-profile-controller/kustomization.yaml:commonLabels:
./kustomize/base/installs/multi-user/pipelines-ui/kustomization.yaml:commonLabels:
./kustomize/base/installs/multi-user/kustomization.yaml:commonLabels:
./kustomize/env/aws/kustomization.yaml:commonLabels:
./kustomize/env/azure/kustomization.yaml:commonLabels:
./kustomize/env/cert-manager/base/kustomization.yaml:commonLabels:
./kustomize/env/dev/postgresql/kustomization.yaml:commonLabels:
./kustomize/env/dev/kustomization.yaml:commonLabels:
./kustomize/env/gcp/kustomization.yaml:commonLabels:
./kustomize/env/platform-agnostic-multi-user/kustomization.yaml:commonLabels:
./kustomize/env/openshift/kustomization.yaml:commonLabels:
./kustomize/env/platform-agnostic-multi-user-legacy/kustomization.yaml:commonLabels:
./kustomize/env/platform-agnostic-postgresql/kustomization.yaml:commonLabels:
./kustomize/env/plain-multi-user/kustomization.yaml:commonLabels:
./kustomize/env/platform-agnostic-tekton-multi-user/kustomization.yaml:commonLabels:
./kustomize/sample/kustomization.yaml:commonLabels:
./kustomize/third-party/argo/upstream/manifests/quick-start/sso/dex/kustomization.yaml:commonLabels:
./kustomize/third-party/metacontroller/base/kustomization.yaml:commonLabels:

Docs for this are here: https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/labels/
If you are unfamiliar with kustomize, you can learn about it here: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/#overview-of-kustomize

Let me know if you'd like to take this on, I can assign you!

@etheleon
Copy link
Author

etheleon commented Oct 8, 2024

Would love to take this on! Assign this to me and I'll get to work

@HumairAK
Copy link
Collaborator

HumairAK commented Oct 8, 2024

/assign etheleon

@etheleon
Copy link
Author

etheleon commented Oct 12, 2024

Hi @HumairAK, there's multiple resources are impacted by this change, should i submit this as a single PR?

How can I test this?

Also I've created a draft PR #11289

@etheleon
Copy link
Author

@HumairAK, the list you provided, manifests meant for the openshift environment cant be found on the master branch anymore

@HumairAK
Copy link
Collaborator

I was probably on a separate fork, so I wouldn't use my list as the source of truth here, rather just run the same command in the kubeflow master branch

Hi @HumairAK, there's multiple resources are impacted by this change, should i submit this as a single PR?

that would be ideal, yes, I've added this to 2.4 milestone, so I'll try get some eyes on this, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants