Skip to content

Commit

Permalink
Adjust example manifests for converting singleton lists to embedded o…
Browse files Browse the repository at this point in the history
…bjects

- Fix the example manifest examples/directoryroles/v1beta1/customdirectoryrole.yaml

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
  • Loading branch information
ulucinar committed Apr 18, 2024
1 parent fb03606 commit bf9bf2a
Show file tree
Hide file tree
Showing 30 changed files with 160 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions examples/applications/v1beta2/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: CC0-1.0

apiVersion: applications.azuread.upbound.io/v1beta2
kind: Application
metadata:
annotations:
meta.upbound.io/example-id: applications/v1beta1/application
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
displayName: example-${Rand.RFC1123Subdomain}
55 changes: 55 additions & 0 deletions examples/conditionalaccess/v1beta1/accesspolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: CC0-1.0

apiVersion: conditionalaccess.azuread.upbound.io/v1beta1
kind: AccessPolicy
metadata:
annotations:
meta.upbound.io/example-id: conditionalaccess/v1beta1/accesspolicy
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
conditions:
- applications:
- excludedApplications: []
includedApplications:
- All
clientAppTypes:
- all
devices:
- filter:
- mode: exclude
rule: device.operatingSystem eq "Doors"
locations:
- excludedLocations:
- AllTrusted
includedLocations:
- All
platforms:
- excludedPlatforms:
- iOS
includedPlatforms:
- android
signInRiskLevels:
- medium
userRiskLevels:
- medium
users:
- excludedUsers:
- GuestsOrExternalUsers
includedUsers:
- All
displayName: example policy
grantControls:
- builtInControls:
- mfa
operator: OR
sessionControls:
- applicationEnforcedRestrictionsEnabled: true
cloudAppSecurityPolicy: monitorOnly
signInFrequency: 10
signInFrequencyPeriod: hours
state: disabled
20 changes: 20 additions & 0 deletions examples/conditionalaccess/v1beta2/location.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: CC0-1.0

apiVersion: conditionalaccess.azuread.upbound.io/v1beta2
kind: Location
metadata:
annotations:
meta.upbound.io/example-id: conditionalaccess/v1beta1/location
labels:
testing.upbound.io/example-name: example-ip
name: example-ip
spec:
forProvider:
displayName: IP Named Location
ip:
ipRanges:
- 1.1.1.1/32
- 2.2.2.2/32
trusted: true
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ spec:
- microsoft.directory/applications/create
- microsoft.directory/applications/standard/read
- allowedResourceActions:
- microsoft.directory/groups/allProperties/read
- microsoft.directory/groups/allProperties/read
- microsoft.directory/groups/basic/update
- microsoft.directory/groups/create
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ apiVersion: groups.azuread.upbound.io/v1beta1
kind: Group
metadata:
annotations:
uptest.upbound.io/pre-delete-hook: testhooks/delete-member.sh
uptest.upbound.io/pre-delete-hook: ../testhooks/delete-member.sh
meta.upbound.io/example-id: groups/v1beta1/member
labels:
testing.upbound.io/example-name: example
Expand Down
16 changes: 16 additions & 0 deletions examples/groups/v1beta2/group.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: CC0-1.0

apiVersion: groups.azuread.upbound.io/v1beta2
kind: Group
metadata:
annotations:
meta.upbound.io/example-id: groups/v1beta1/group
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
displayName: example
securityEnabled: true
File renamed without changes.
19 changes: 19 additions & 0 deletions examples/invitations/v1beta2/invitation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: CC0-1.0

apiVersion: invitations.azuread.upbound.io/v1beta2
kind: Invitation
metadata:
annotations:
meta.upbound.io/example-id: invitations/v1beta1/invitation
upjet.upbound.io/manual-intervention: "This resource either requires a user with an email in untrusted domain
(but this needs collaboration configuration) or an email in a trusted domain (but in our testing account invitations
in this domain has been disabled)"
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
userEmailAddress: [email protected]
redirectUrl: https://portal.azure.com
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ kind: Principal
metadata:
annotations:
meta.upbound.io/example-id: serviceprincipaldelegated/v1beta1/permissiongrant
uptest.upbound.io/pre-delete-hook: testhooks/delete-permissiongrant.sh
uptest.upbound.io/pre-delete-hook: ../testhooks/delete-permissiongrant.sh
labels:
testing.upbound.io/example-name: example
name: example
Expand Down Expand Up @@ -66,7 +66,7 @@ kind: Principal
metadata:
annotations:
meta.upbound.io/example-id: serviceprincipaldelegated/v1beta1/permissiongrant
uptest.upbound.io/pre-delete-hook: testhooks/delete-permissiongrant.sh
uptest.upbound.io/pre-delete-hook: ../testhooks/delete-permissiongrant.sh
labels:
testing.upbound.io/example-name: msgraph
name: msgraph
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions examples/serviceprincipals/v1beta2/principal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: CC0-1.0

apiVersion: serviceprincipals.azuread.upbound.io/v1beta2
kind: Principal
metadata:
annotations:
meta.upbound.io/example-id: serviceprincipals/v1beta1/principal
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
applicationIdSelector:
matchLabels:
testing.upbound.io/example-name: example
appRoleAssignmentRequired: false
---
apiVersion: applications.azuread.upbound.io/v1beta1
kind: Application
metadata:
annotations:
meta.upbound.io/example-id: serviceprincipals/v1beta1/principal
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
displayName: example
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ kind: Secret
metadata:
annotations:
meta.upbound.io/example-id: synchronization/v1beta1/job
uptest.upbound.io/pre-delete-hook: testhooks/delete-secret.sh
uptest.upbound.io/pre-delete-hook: ../testhooks/delete-secret.sh
labels:
testing.upbound.io/example-name: example
name: example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ kind: Principal
metadata:
annotations:
meta.upbound.io/example-id: synchronization/v1beta1/secret
uptest.upbound.io/pre-delete-hook: testhooks/delete-secret.sh
uptest.upbound.io/pre-delete-hook: ../testhooks/delete-secret.sh
labels:
testing.upbound.io/example-name: example
name: example
Expand Down
File renamed without changes.

0 comments on commit bf9bf2a

Please sign in to comment.