github.com/openshift/installer@v1.4.17/upi/gcp/03_iam.py (about)

     1  def GenerateConfig(context):
     2  
     3      resources = [{
     4          'name': context.properties['infra_id'] + '-master-node-sa',
     5          'type': 'iam.v1.serviceAccount',
     6          'properties': {
     7              'accountId': context.properties['infra_id'] + '-m',
     8              'displayName': context.properties['infra_id'] + '-master-node'
     9          }
    10      }, {
    11          'name': context.properties['infra_id'] + '-worker-node-sa',
    12          'type': 'iam.v1.serviceAccount',
    13          'properties': {
    14              'accountId': context.properties['infra_id'] + '-w',
    15              'displayName': context.properties['infra_id'] + '-worker-node'
    16          }
    17      }]
    18  
    19      return {'resources': resources}