Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-995

Use v1 for ClusterRoleBinding rbac.authorization.k8s.io instead of v1beta1

    XMLWordPrintableJSON

Details

    Description

      Here's the following kubernetes client/server info on my local machine:

      ➜  incubator-yunikorn-k8shim git:(master) ✗ kubectl version
      Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.4", GitCommit:"b695d79d4f967c403a96986f1750a35eb75e75f1", GitTreeState:"clean", BuildDate:"2021-11-17T15:48:33Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"darwin/arm64"}
      Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.4", GitCommit:"b695d79d4f967c403a96986f1750a35eb75e75f1", GitTreeState:"clean", BuildDate:"2021-11-17T15:42:41Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"linux/arm64"} 

      This results in the following error when running the `helm install` command from the docs:

      ➜  incubator-yunikorn-k8shim git:(master) ✗ helm install yunikorn yunikorn/yunikorn --namespace yunikornError: INSTALLATION FAILED: failed pre-install: unable to build kubernetes object for deleting hook yunikorn/templates/rbac.yaml: unable to recognize "": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"

      I believe this is because ClusterRoleBinding is removed from rbac.authorization.k8s.io/v1beta1 as of version 1.22 of Kubernetes. We should instead use the following apiVersion for this resource in the yaml: rbac.authorization.k8s.io/v1. 

       

      Attachments

        Issue Links

          Activity

            People

              ccondit Craig Condit
              anuraagn Anuraag Nalluri
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified