You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2023/02/09 22:59:00 UTC

[jira] [Commented] (YUNIKORN-1569) Admission controller cannot update CronJobs

    [ https://issues.apache.org/jira/browse/YUNIKORN-1569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17686797#comment-17686797 ] 

Wilfred Spiegelenburg commented on YUNIKORN-1569:
-------------------------------------------------

Cryptic error message pointing to a typo :(

This should have been covered by e2e tests.  I looked at the tests and we only test pods and deployments. I thought we had a list of 5 or more different types when we first looked at this [implementation|https://yunikorn.apache.org/docs/next/design/user_group#current-findings-and-challenges]

If they are not added through this Jira we at least need to file a follow up Jira that adds e2e tests for all workload types to test the admission controller.

> Admission controller cannot update CronJobs
> -------------------------------------------
>
>                 Key: YUNIKORN-1569
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1569
>             Project: Apache YuniKorn
>          Issue Type: Bug
>          Components: shim - kubernetes
>    Affects Versions: 1.2.0
>            Reporter: Peter Bacsko
>            Assignee: Peter Bacsko
>            Priority: Major
>              Labels: pull-request-available
>
> If {{admissionController.accessControl.bypassAuth}} is set to false, then CronJobs are not updated with userinfo properly by the admission conroller.
> The following error is generated:
> {noformat}
> Error from server (InternalError): error when creating "cronjob.yaml": Internal error occurred: add operation does not apply: doc is missing path: "/spec/jobtemplate/spec/template/metadata/annotations": missing value
> {noformat}
> The problem is that the path uses "jobtemplate" instead of "jobTemplate".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org