Code Monkey home page Code Monkey logo

Comments (12)

mylesagray avatar mylesagray commented on July 26, 2024 8

This line:

- 8bdecb1a.alexellis.io

Causes the CM to never get created with an error in the controller logs:

error initially creating leader election record: configmaps is forbidden:
User "system:serviceaccount:registry-creds-system:default" cannot create resource "configmaps" in API group "" in the namespace
 "registry-creds-system"

I've had to remove

resourceNames:
- 8bdecb1a.alexellis.io
to get it to work

from registry-creds.

alexellis avatar alexellis commented on July 26, 2024

I agree. I think this was introduced by a community PR. Happy to take a PR @sarahhodne

from registry-creds.

alexellis avatar alexellis commented on July 26, 2024

@sarahhodne thanks for your feedback, did you want to do the PR yourself?

from registry-creds.

alexellis avatar alexellis commented on July 26, 2024

/add labels: good first issue,skill/beginner,help wanted

from registry-creds.

developer-guy avatar developer-guy commented on July 26, 2024

I'm a volunteer for this issue.

from registry-creds.

sarahhodne avatar sarahhodne commented on July 26, 2024

I probably won't have time to look at it for a bit, sorry, so feel free to work on this. Here's the roles we actually ended up using and got to work:

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: registry-creds
rules:
- apiGroups: [""]
  resources: [namespaces]
  verbs: [get, list, watch]
- apiGroups: [""]
  resources: [secrets]
  verbs: [create, get, list, watch]
- apiGroups: [""]
  resources: [serviceaccounts]
  verbs: [get, list, patch, update, watch]
- apiGroups: [ops.alexellis.io]
  resources: [clusterpullsecrets]
  verbs: [get, list, watch]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: registry-creds
rules:
- apiGroups: [""]
  resources: [configmaps, events]
  verbs: [create]
- apiGroups: [""]
  resourceNames: [8bdecb1a.alexellis.io]
  resources: [configmaps]
  verbs: [get, patch, update]

from registry-creds.

developer-guy avatar developer-guy commented on July 26, 2024

I'll test and check if it works properly with these roles. 👍

from registry-creds.

alexellis avatar alexellis commented on July 26, 2024

@mylesagray on what Kubernetes version? It works fine for me with K8s 1.21.

from registry-creds.

mylesagray avatar mylesagray commented on July 26, 2024

@alexellis every one i've tested it on - IIRC from around v1.18 on, both self built vanilla K8s and Tanzu K8s distros. Fresh cluster install - apply the manifest in the repo and it won't work until that static resource name is removed - it looks like it's generated on apply?

from registry-creds.

alexellis avatar alexellis commented on July 26, 2024

@mylesagray I can't reproduce any issue with KinD 1.18 or 1.21.1

Perhaps this is a specific support request that only affects VMware Tanzu users?

How about you raise your own issue with a detailed repro and error messages / logs?

Otherwise, every time I test it, it works as expected. I don't have VMware Tanzu so can't support you with that.

from registry-creds.

mylesagray avatar mylesagray commented on July 26, 2024

@alexellis i can do, but this also affects my ARM Pi cluster which is straight up vanilla K8S and another x86 vanilla cluster I have too, not just Tanzu.

I never attempted to test it in kind, but I will give that a shot just for comparison's sake.

from registry-creds.

alexellis avatar alexellis commented on July 26, 2024

/lock: resolved

from registry-creds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.