Coder Social home page Coder Social logo

Comments (3)

eytan-avisror avatar eytan-avisror commented on July 23, 2024

Solution:

  • Discover active ARNs from controller configmap & tagged CF stacks
  • If existing configmap has a role that conflicts with discovered configmap, override it from the discovered ARNs as a node role, for example if ['arn-1', 'arn-2'] were discovered, and configmap was:
data:
  mapRoles: |
    - rolearn: arn:aws:iam::0000000000:role/arn-1
      username: user:some-user
      groups:
        - system:masters

It will be removed, and replaced with the node mapRole.

data:
  mapRoles: |
    - rolearn: arn:aws:iam::0000000000:role/arn-1
      username: system:node:{{EC2PrivateDNSName}}
      groups:
      - system:bootstrappers
      - system:nodes
  • If existing configmap has a role that does not conflict with discovered ARNs, we add it as is in addition to discovered ARNs.

from instance-manager.

wanghong230 avatar wanghong230 commented on July 23, 2024

user: pattern won't work. We should be able to support the assume role pattern, which will show up as role: also.

from instance-manager.

eytan-avisror avatar eytan-avisror commented on July 23, 2024

@wanghong230 will not use any pattern - will parse out existing configmap and dedupe with instance-manager additions.
see PR : #28

from instance-manager.

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.