Skip to content

Commit

Permalink
Merge pull request #15 from alexander-demichev/cloudcredentials
Browse files Browse the repository at this point in the history
Add cloud credentials requests to manifests
  • Loading branch information
openshift-merge-robot committed Dec 6, 2021
2 parents 22fbdaa + eb88534 commit d82fcfc
Showing 1 changed file with 99 additions and 0 deletions.
99 changes: 99 additions & 0 deletions manifests/0000_30_capi-operator_00_credentials-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
apiVersion: cloudcredential.openshift.io/v1
kind: CredentialsRequest
metadata:
name: openshift-cluster-api-aws
namespace: openshift-cloud-credential-operator
annotations:
exclude.release.openshift.io/internal-openshift-hosted: "true"
include.release.openshift.io/self-managed-high-availability: "true"
release.openshift.io/feature-gate: "TechPreviewNoUpgrade"
spec:
secretRef:
name: aws-cloud-credentials
namespace: openshift-cluster-api
providerSpec:
apiVersion: cloudcredential.openshift.io/v1
kind: AWSProviderSpec
statementEntries:
- effect: Allow
action:
- ec2:CreateTags
- ec2:DescribeAvailabilityZones
- ec2:DescribeDhcpOptions
- ec2:DescribeImages
- ec2:DescribeInstances
- ec2:DescribeInternetGateways
- ec2:DescribeSecurityGroups
- ec2:DescribeSubnets
- ec2:DescribeVpcs
- ec2:RunInstances
- ec2:TerminateInstances
- elasticloadbalancing:DescribeLoadBalancers
- elasticloadbalancing:DescribeTargetGroups
- elasticloadbalancing:DescribeTargetHealth
- elasticloadbalancing:RegisterInstancesWithLoadBalancer
- elasticloadbalancing:RegisterTargets
- elasticloadbalancing:DeregisterTargets
- iam:PassRole
- iam:CreateServiceLinkedRole
resource: "*"
- effect: Allow
action:
- kms:Decrypt
- kms:Encrypt
- kms:GenerateDataKey
- kms:GenerateDataKeyWithoutPlainText
- kms:DescribeKey
resource: '*'
- effect: Allow
action:
- kms:RevokeGrant
- kms:CreateGrant
- kms:ListGrants
resource: '*'
policyCondition:
"Bool":
"kms:GrantIsForAWSResource": true
---
apiVersion: cloudcredential.openshift.io/v1
kind: CredentialsRequest
metadata:
name: openshift-cluster-api-azure
namespace: openshift-cloud-credential-operator
annotations:
exclude.release.openshift.io/internal-openshift-hosted: "true"
include.release.openshift.io/self-managed-high-availability: "true"
release.openshift.io/feature-gate: "TechPreviewNoUpgrade"
spec:
secretRef:
name: azure-cloud-credentials
namespace: openshift-cluster-api
providerSpec:
apiVersion: cloudcredential.openshift.io/v1
kind: AzureProviderSpec
roleBindings:
- role: Contributor
---
apiVersion: cloudcredential.openshift.io/v1
kind: CredentialsRequest
metadata:
name: openshift-cluster-api-gcp
namespace: openshift-cloud-credential-operator
annotations:
exclude.release.openshift.io/internal-openshift-hosted: "true"
include.release.openshift.io/self-managed-high-availability: "true"
release.openshift.io/feature-gate: "TechPreviewNoUpgrade"
spec:
secretRef:
name: gcp-cloud-credentials
namespace: openshift-cluster-api
providerSpec:
apiVersion: cloudcredential.openshift.io/v1
kind: GCPProviderSpec
skipServiceCheck: true
predefinedRoles:
- "roles/compute.instanceAdmin.v1"
- "roles/iam.serviceAccountUser"
- "roles/compute.loadBalancerAdmin"
# includes compute.targetPools.* currently used to add masters to LB in DR scenarios.
# https://cloud.google.com/compute/docs/access/iam#compute.loadBalancerAdmin

0 comments on commit d82fcfc

Please sign in to comment.