-
Notifications
You must be signed in to change notification settings - Fork 888
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
error validating "STDIN" ... unknown field "labelSelector" in io.k8s.metacontroller.v1alpha1.CompositeController.spec.parentResource #2133
Comments
I also bumped into this, thanks for creating the issue @rubbercable! This happened to me when developing the e2e tests, using a KinD cluster. @zijianjoy do you know why this would be the case? We can bypass the following error with We might need to update the |
Can you try to remove the Adding @juliusvonkohout for help on this change. |
The original problem is here kubeflow/pipelines#6537 (comment) I checked the documentation at https://metacontroller.github.io/metacontroller/api/compositecontroller.html#label-selector again and it is a bit confusing. They really expect the parentresource that has been created by the profiles-controller (the namespace) to already have a spec.selector field instead of specifying it in the compositecontroller and handling it for us automatically.
So i misinterpreted this and it worked because there was preserveUnknownFields: true before.
This this will be fixed properly anyway in the coming weeks because a colleague of mine is implementing kubeflow/pipelines#7219 (comment) and especially the referenced merging of the two controller kubeflow/pipelines#6629 (comment) So we just need to drop the field labelselector in the mean time and move on. i will create a pull request |
Thanks for the detailed explanation! I'm missing some context on the CompositeController/MetaController, but I'll get up to speed. In the mean time, until kubeflow/pipelines#7311 is merged and a new RC for pipelines' manifests is cut I'll add a I'm expecting folks will be trying this out as well when installing Kubeflow, and I want to ensure the command works. When the PR for the updated KFP manifests with the fix in kubeflow/pipelines#7311 is included, then let's remove the |
Don't verify when applying, due to temporary issue with KFP manifests: kubeflow#2133 Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com>
Metacontroller/compositecontroller and kubeflow-pipelines-controller is an ugly hack that tries to add additional stuff to the profile namespace that has been created by the "real" kubeflow profile controller
I installed the new CRD and had to remove the three lines.
Yes it is a trivial fix and should be merged soon. |
using
$ while ! kustomize build example | kubectl apply -f -; do echo "Retrying to apply resources"; sleep 20; done
Results: 64 pods created, all green
...
deployment.apps/ml-pipeline-viewer-crd configured
deployment.apps/ml-pipeline-visualizationserver unchanged
error: error validating "STDIN": error validating data: ValidationError(CompositeController.spec.parentResource): unknown field "labelSelector" in io.k8s.metacontroller.v1alpha1.CompositeController.spec.parentResource; if you choose to ignore these errors, turn validation off with --validate=false
Retrying to apply resources
Looks like the manifests/apps/pipeline/upstream/base/installs/multi-user/pipelines-profile-controller/composite-controller.yaml
NOTE: not sure if this is relevant, but:
$ kustomize build example | head
2022/02/13 20:29:15 nil value at
valueFrom.configMapKeyRef.nameignored in mutation attempt
2022/02/13 20:29:15 nil value at
valueFrom.secretKeyRef.nameignored in mutation attempt
2022/02/13 20:29:15 well-defined vars that were never replaced: kfp-app-name,kfp-app-version
apiVersion: v1
...
The text was updated successfully, but these errors were encountered: