-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Podidentity #207
Open
satishbpatil
wants to merge
28
commits into
awslabs:main
Choose a base branch
from
satishbpatil:podidentity
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Podidentity #207
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
b69c4c0
s3 podidentity files
3a07c0b
testing: ArgoCD application pointing to branch and not main
4337b0e
removed irsa reference
ed10da8
removed irsa reference
f115e3c
set serviceaccount name
69cd0f6
updated composition name
f20c1be
fix to podidentity composition names
9266129
fix name plural
487cd27
fix as per naming convention
3691844
removed prune
5e829e1
removed prune
1fac9cd
merging irsa and podidentity
05ca52b
removed old references to podidentity
eca3430
remove old podidentity references
a45ea52
merge podidentity and irsa
82c9c00
comment podidentity association
b2e900d
merge podidentity and irsa
e798c1a
merge podidentity and irsa
7950492
crossplane podidentity
ba99188
podidentity
6a4ce05
podidentity example
e7b2880
podidentity example
89fcbce
podidentity example
e85a28d
podidentity example
374284c
podidentity
c3121a3
podidentity
9086483
podidentity
afeff8b
podidentity
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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,5 @@ | ||
terraform destroy -target="module.crossplane" -auto-approve | ||
terraform destroy -target="module.gatekeeper" -auto-approve | ||
terraform destroy -target="module.eks_blueprints_addons" -auto-approve | ||
terraform destroy -target="module.eks" -auto-approve | ||
terraform destroy -auto-approve |
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
58 changes: 58 additions & 0 deletions
58
compositions/upbound-aws-provider/podidentity-role/definition.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,58 @@ | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
apiVersion: apiextensions.crossplane.io/v1 | ||
kind: CompositeResourceDefinition | ||
metadata: | ||
name: xpodidentityroles.awsblueprints.io | ||
spec: | ||
claimNames: | ||
kind: PodIdentityRole | ||
plural: podidentityroles | ||
group: awsblueprints.io | ||
names: | ||
kind: xPodIdentityRole | ||
plural: xpodidentityroles | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
referenceable: true | ||
schema: | ||
openAPIV3Schema: | ||
description: Schema for the podidentity role API | ||
properties: | ||
spec: | ||
description: defines the desired state of PodIdentityRole | ||
properties: | ||
managedPolicyArns: | ||
items: | ||
type: string | ||
type: array | ||
inlinePolicy: | ||
type: string | ||
inlinePolicyName: | ||
type: string | ||
default: default | ||
permissionsBoundaryArn: | ||
type: string | ||
resourceConfig: | ||
description: ResourceConfig defines general properties of this AWS | ||
resource. | ||
properties: | ||
providerConfigName: | ||
type: string | ||
region: | ||
type: string | ||
required: | ||
- providerConfigName | ||
type: object | ||
required: | ||
- resourceConfig | ||
type: object | ||
status: | ||
description: Status defines the observed state of PodIdentityRole | ||
properties: | ||
roleArn: | ||
type: string | ||
type: object | ||
type: object |
6 changes: 6 additions & 0 deletions
6
compositions/upbound-aws-provider/podidentity-role/kustomization.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,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- definition.yaml | ||
- podidentity-role.yaml | ||
|
60 changes: 60 additions & 0 deletions
60
compositions/upbound-aws-provider/podidentity-role/podidentity-role.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,60 @@ | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
apiVersion: apiextensions.crossplane.io/v1 | ||
kind: Composition | ||
metadata: | ||
name: xpodidentityrole-composition | ||
spec: | ||
compositeTypeRef: | ||
apiVersion: awsblueprints.io/v1alpha1 | ||
kind: xPodIdentityRole | ||
patchSets: | ||
- name: common-fields-composition | ||
patches: | ||
- type: FromCompositeFieldPath | ||
fromFieldPath: spec.resourceConfig.providerConfigName | ||
toFieldPath: spec.providerConfigRef.name | ||
resources: | ||
- name: iam-role | ||
base: | ||
apiVersion: iam.aws.upbound.io/v1beta1 | ||
kind: Role | ||
spec: | ||
forProvider: | ||
assumeRolePolicy: | | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Sid": "AllowEksAuthToAssumeRoleForPodIdentity", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": "pods.eks.amazonaws.com" | ||
}, | ||
"Action": [ | ||
"sts:AssumeRole", | ||
"sts:TagSession" | ||
] | ||
} | ||
] | ||
} | ||
patches: | ||
- type: PatchSet | ||
patchSetName: common-fields-composition | ||
- type: FromCompositeFieldPath | ||
fromFieldPath: spec.inlinePolicy | ||
toFieldPath: spec.forProvider.inlinePolicy[0].policy | ||
- type: FromCompositeFieldPath | ||
fromFieldPath: spec.inlinePolicyName | ||
toFieldPath: spec.forProvider.inlinePolicy[0].name | ||
- type: FromCompositeFieldPath | ||
fromFieldPath: spec.managedPolicyArns | ||
toFieldPath: spec.forProvider.managedPolicyArns | ||
- type: FromCompositeFieldPath | ||
fromFieldPath: spec.permissionsBoundaryArn | ||
toFieldPath: spec.forProvider.permissionsBoundary | ||
- type: ToCompositeFieldPath | ||
fromFieldPath: status.atProvider.arn | ||
toFieldPath: status.roleArn | ||
|
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
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
9 changes: 9 additions & 0 deletions
9
compositions/upbound-aws-provider/s3-access/kustomization.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,9 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./podidentity/definition.yaml | ||
- ./podidentity/s3-podidentity.yaml | ||
- ./irsa/definition.yaml | ||
- ./irsa/s3-irsa.yaml | ||
|
||
|
71 changes: 71 additions & 0 deletions
71
compositions/upbound-aws-provider/s3-access/podidentity/definition.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,71 @@ | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
apiVersion: apiextensions.crossplane.io/v1 | ||
kind: CompositeResourceDefinition | ||
metadata: | ||
name: xs3podidentities.awsblueprints.io | ||
spec: | ||
claimNames: | ||
kind: S3PodIdentityclaim | ||
plural: s3prodidentityclaims | ||
group: awsblueprints.io | ||
names: | ||
kind: xS3PodIdentity | ||
plural: xs3podidentities | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
referenceable: true | ||
schema: | ||
openAPIV3Schema: | ||
description: S3PODIDENTITY is the Schema for the s3podidentity API | ||
properties: | ||
spec: | ||
description: S3PODIDENTITYSpec defines the desired state of S3PODIDENTITY | ||
properties: | ||
policyArns: | ||
items: | ||
type: string | ||
type: array | ||
resourceConfig: | ||
description: ResourceConfig defines general properties of this AWS | ||
resource. | ||
properties: | ||
region: | ||
type: string | ||
deletionPolicy: | ||
description: Defaults to Delete | ||
enum: | ||
- Delete | ||
- Orphan | ||
type: string | ||
name: | ||
description: Set the name of this resource in AWS to the value | ||
provided by this field. | ||
type: string | ||
providerConfigName: | ||
type: string | ||
tags: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
required: | ||
- providerConfigName | ||
type: object | ||
required: | ||
- resourceConfig | ||
type: object | ||
status: | ||
description: defines the observed state of S3 PodIdentity | ||
properties: | ||
serviceAccountName: | ||
type: string | ||
bucketArn: | ||
type: string | ||
roleName: | ||
type: string | ||
roleArn: | ||
type: string | ||
type: object | ||
type: object |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is region commented out? If not required, remove it.