-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from alexander-demichev/cloudcredentials
Add cloud credentials requests to manifests
- Loading branch information
Showing
1 changed file
with
99 additions
and
0 deletions.
There are no files selected for viewing
99 changes: 99 additions & 0 deletions
99
manifests/0000_30_capi-operator_00_credentials-request.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |