Skip to content

Commit

Permalink
feat(iam): Add ServiceLinkedRole
Browse files Browse the repository at this point in the history
Signed-off-by: haarchri <[email protected]>
Signed-off-by: Maximilian Blatt (external expert on behalf of DB Netz) <[email protected]>

Co-authored-by: Maximilian Blatt (external expert on behalf of DB Netz) <[email protected]>
Add status info and check if role is actually a service-linked role.
  • Loading branch information
haarchri authored and MisterMX committed Jul 28, 2023
1 parent 2e94dd2 commit 7744114
Show file tree
Hide file tree
Showing 19 changed files with 1,526 additions and 3 deletions.
7 changes: 6 additions & 1 deletion apis/iam/generator-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ ignore:
- PolicyVersion
- Role
- SAMLProvider
- ServiceLinkedRole
- ServiceSpecificCredential
- User
- VirtualMFADevice
field_paths:
- CreateInstanceProfileInput.InstanceProfileName
- DeleteInstanceProfileInput.InstanceProfileName
resources:
ServiceLinkedRole:
exceptions:
errors:
404:
code: NoSuchEntity
19 changes: 19 additions & 0 deletions apis/iam/v1alpha1/custom_types.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2023 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1

import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
Expand All @@ -17,3 +33,6 @@ type CustomInstanceProfileParameters struct {
// +optional
RoleSelector *xpv1.Selector `json:"roleSelector,omitempty"`
}

// CustomServiceLinkedRoleParameters includes the custom fields of ServiceLinkedRole.
type CustomServiceLinkedRoleParameters struct{}
226 changes: 225 additions & 1 deletion apis/iam/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 66 additions & 0 deletions apis/iam/v1alpha1/zz_generated.managed.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions apis/iam/v1alpha1/zz_generated.managedlist.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7744114

Please sign in to comment.