Skip to content

Commit

Permalink
Add generated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Jul 8, 2024
1 parent 7b4e1e3 commit 395fbbc
Show file tree
Hide file tree
Showing 20 changed files with 436 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples-generated/cdr/v1alpha1/organization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: cdr.hsdp.crossplane.io/v1alpha1
kind: Organization
metadata:
annotations:
meta.upbound.io/example-id: cdr/v1alpha1/organization
labels:
testing.upbound.io/example-name: root_org
name: root-org
spec:
forProvider:
fhirStore: ${data.hsdp_cdr_fhir_store.sandbox.endpoint}
name: Root ORG
orgIdSelector:
matchLabels:
testing.upbound.io/example-name: example
version: r4
38 changes: 38 additions & 0 deletions examples-generated/cdr/v1alpha1/subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: cdr.hsdp.crossplane.io/v1alpha1
kind: Subscription
metadata:
annotations:
meta.upbound.io/example-id: cdr/v1alpha1/subscription
labels:
testing.upbound.io/example-name: patient_changes
name: patient-changes
spec:
forProvider:
criteria: Patient
deleteEndpoint: https://webhook.myapp.io/patient_deleted
end: "2030-12-31T23:59:59Z"
endpoint: https://webhook.myapp.io/patient
fhirStore: ${hsdp_cdr_org.test.fhir_store}
headers:
- 'Authorization: Basic cm9uOnN3YW5zb24='
reason: Notification for patient changes
version: r4

---

apiVersion: cdr.hsdp.crossplane.io/v1alpha1
kind: Organization
metadata:
annotations:
meta.upbound.io/example-id: cdr/v1alpha1/subscription
labels:
testing.upbound.io/example-name: test
name: test
spec:
forProvider:
fhirStore: ${data.hsdp_cdr_fhir_store.sandbox.endpoint}
name: Hospital
orgIdSelector:
matchLabels:
testing.upbound.io/example-name: test
version: r4
17 changes: 17 additions & 0 deletions examples-generated/dbs/v1alpha1/sqssubscriber.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: dbs.hsdp.crossplane.io/v1alpha1
kind: SqsSubscriber
metadata:
annotations:
meta.upbound.io/example-id: dbs/v1alpha1/sqssubscriber
labels:
testing.upbound.io/example-name: my-subscriber
name: my-subscriber
spec:
forProvider:
deliveryDelaySeconds: 0
description: My subscriber
messageRetentionPeriodSeconds: 0
nameInfix: my-subscriber
queueType: Standard
receiveWaitTimeSeconds: 0
serverSideEncryption: true
15 changes: 15 additions & 0 deletions examples-generated/dicom/v1alpha1/notification.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: dicom.hsdp.crossplane.io/v1alpha1
kind: Notification
metadata:
annotations:
meta.upbound.io/example-id: dicom/v1alpha1/notification
labels:
testing.upbound.io/example-name: topic
name: topic
spec:
forProvider:
configUrl: ${hsdp_dicom_store_config.dicom.config_url}
defaultOrganizationIdSelector:
matchLabels:
testing.upbound.io/example-name: tenant1
endpointUrl: ${var.notification_endpoint_url}
31 changes: 31 additions & 0 deletions examples-generated/dicom/v1alpha1/objectstore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: dicom.hsdp.crossplane.io/v1alpha1
kind: ObjectStore
metadata:
annotations:
meta.upbound.io/example-id: dicom/v1alpha1/objectstore
labels:
testing.upbound.io/example-name: store2
name: store2
spec:
forProvider:
configUrl: ${var.dicom_base_url}
description: Store 2
organizationIdSelector:
matchLabels:
testing.upbound.io/example-name: example
s3credsAccess:
- bucketName: yyyy-yyyy-yyy-yyyy
endpoint: https://xxx.com
folderPath: /store1
productKeySecretRef:
key: example-key
name: example-secret
namespace: upbound-system
serviceAccount:
- accessTokenEndpoint: ${data.hsdp_config.iam.url}/oauth2/access_token
privateKeySecretRef:
key: example-key
name: example-secret
namespace: upbound-system
serviceId: [email protected]
tokenEndpoint: ${data.hsdp_config.iam.url}/authorize/oauth2/token
17 changes: 17 additions & 0 deletions examples-generated/dicom/v1alpha1/repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: dicom.hsdp.crossplane.io/v1alpha1
kind: Repository
metadata:
annotations:
meta.upbound.io/example-id: dicom/v1alpha1/repository
labels:
testing.upbound.io/example-name: repo1
name: repo1
spec:
forProvider:
configUrl: ${hsdp_dicom_store_config.dicom.config_url}
notification:
- organizationId: ${hsdp_iam_org.tenant1.id}
objectStoreId: ${hsdp_dicom_object_store.store1.id}
organizationIdSelector:
matchLabels:
testing.upbound.io/example-name: root_org
19 changes: 19 additions & 0 deletions examples-generated/dicom/v1alpha1/storeconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: dicom.hsdp.crossplane.io/v1alpha1
kind: StoreConfig
metadata:
annotations:
meta.upbound.io/example-id: dicom/v1alpha1/storeconfig
labels:
testing.upbound.io/example-name: dicom
name: dicom
spec:
forProvider:
cdrServiceAccount:
- privateKey: ${hsdp_iam_service.cdr.private_key}
serviceId: ${hsdp_iam_service.cdr.service_id}
configUrl: ${var.dicom_base_url}
fhirStore:
- mpiEndpoint: https://foo.bar/xxx
organizationIdSelector:
matchLabels:
testing.upbound.io/example-name: example
15 changes: 15 additions & 0 deletions examples-generated/iam/v1alpha1/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: iam.hsdp.crossplane.io/v1alpha1
kind: Application
metadata:
annotations:
meta.upbound.io/example-id: iam/v1alpha1/application
labels:
testing.upbound.io/example-name: testapp
name: testapp
spec:
forProvider:
description: Test application
name: TESTAPP
propositionIdSelector:
matchLabels:
testing.upbound.io/example-name: testprop
36 changes: 36 additions & 0 deletions examples-generated/iam/v1alpha1/client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: iam.hsdp.crossplane.io/v1alpha1
kind: Client
metadata:
annotations:
meta.upbound.io/example-id: iam/v1alpha1/client
labels:
testing.upbound.io/example-name: testclient
name: testclient
spec:
forProvider:
applicationIdSelector:
matchLabels:
testing.upbound.io/example-name: testtapp
clientId: testclient
defaultScopes:
- cn
- introspect
description: Test client
globalReferenceId: some-ref-here
name: TESTCLIENT
passwordSecretRef:
key: attribute.result
name: example-password
namespace: upbound-system
redirectionUris:
- https://foo.bar/auth
- https://testapp.cloud.pcftest.com/auth
responseTypes:
- code
- code id_token
scopes:
- cn
- introspect
- email
- profile
type: Public
24 changes: 24 additions & 0 deletions examples-generated/iam/v1alpha1/emailtemplate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: iam.hsdp.crossplane.io/v1alpha1
kind: EmailTemplate
metadata:
annotations:
meta.upbound.io/example-id: iam/v1alpha1/emailtemplate
labels:
testing.upbound.io/example-name: password_changed
name: password-changed
spec:
forProvider:
format: HTML
managingOrganizationSelector:
matchLabels:
testing.upbound.io/example-name: hsdp_iam_org
message: |
Dear {{user.givenName}},
Your password was recently changed. If this was not initiated
by you please contact support immediately.
Kind regards,
IAM Team
subject: Your IAM account password was changed
type: PASSWORD_CHANGED
23 changes: 23 additions & 0 deletions examples-generated/iam/v1alpha1/group.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: iam.hsdp.crossplane.io/v1alpha1
kind: Group
metadata:
annotations:
meta.upbound.io/example-id: iam/v1alpha1/group
labels:
testing.upbound.io/example-name: tdr_users
name: tdr-users
spec:
forProvider:
description: Group for TDR Users with Contract and Dataitem roles
devices: []
managingOrganizationSelector:
matchLabels:
testing.upbound.io/example-name: devorg
name: TDR Users
roleRef:
- name: TDRALL
serviceRef:
- name: test
userRef:
- name: admin
- name: developer
13 changes: 13 additions & 0 deletions examples-generated/iam/v1alpha1/organization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: iam.hsdp.crossplane.io/v1alpha1
kind: Organization
metadata:
annotations:
meta.upbound.io/example-id: iam/v1alpha1/organization
labels:
testing.upbound.io/example-name: testorg
name: testorg
spec:
forProvider:
description: Test Organization
name: TestOrg
parentOrgId: ${hsdp_iam_org.myorg.id}
22 changes: 22 additions & 0 deletions examples-generated/iam/v1alpha1/passwordpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: iam.hsdp.crossplane.io/v1alpha1
kind: PasswordPolicy
metadata:
annotations:
meta.upbound.io/example-id: iam/v1alpha1/passwordpolicy
labels:
testing.upbound.io/example-name: mypolicy
name: mypolicy
spec:
forProvider:
complexity:
- maxLength: 32
minLength: 8
minLowercase: 1
minNumerics: 1
minSpecialChars: 1
minUppercase: 1
expiryPeriodInDays: 180
historyCount: 5
managingOrganizationSelector:
matchLabels:
testing.upbound.io/example-name: hsdp_iam_org
15 changes: 15 additions & 0 deletions examples-generated/iam/v1alpha1/proposition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: iam.hsdp.crossplane.io/v1alpha1
kind: Proposition
metadata:
annotations:
meta.upbound.io/example-id: iam/v1alpha1/proposition
labels:
testing.upbound.io/example-name: testprop
name: testprop
spec:
forProvider:
description: Test Proposition
name: TestProposition
organizationIdSelector:
matchLabels:
testing.upbound.io/example-name: devorg
24 changes: 24 additions & 0 deletions examples-generated/iam/v1alpha1/role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: iam.hsdp.crossplane.io/v1alpha1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: iam/v1alpha1/role
labels:
testing.upbound.io/example-name: TDRALL
name: tdrall
spec:
forProvider:
description: Role for TDR users with ALL access
managingOrganizationSelector:
matchLabels:
testing.upbound.io/example-name: testdev
name: TDRALL
permissions:
- DATAITEM.CREATEONBEHALF
- DATAITEM.READ
- DATAITEM.DELETEONBEHALF
- DATAITEM.DELETE
- CONTRACT.CREATE
- DATAITEM.READONBEHALF
- CONTRACT.READ
- DATAITEM.CREATE
39 changes: 39 additions & 0 deletions examples-generated/iam/v1alpha1/rolesharingpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: iam.hsdp.crossplane.io/v1alpha1
kind: RoleSharingPolicy
metadata:
annotations:
meta.upbound.io/example-id: iam/v1alpha1/rolesharingpolicy
labels:
testing.upbound.io/example-name: policy
name: policy
spec:
forProvider:
purpose: Share SOME role with another organization
roleIdSelector:
matchLabels:
testing.upbound.io/example-name: shared
sharingPolicy: AllowChildren
targetOrganizationIdSelector:
matchLabels:
testing.upbound.io/example-name: another_org

---

apiVersion: iam.hsdp.crossplane.io/v1alpha1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: iam/v1alpha1/rolesharingpolicy
labels:
testing.upbound.io/example-name: shared
name: shared
spec:
forProvider:
description: A role we want to share across ORGs
managingOrganizationSelector:
matchLabels:
testing.upbound.io/example-name: my_org
name: SOME Role
permissions:
- PATIENT.READ
- PRACTITIONER.READ
Loading

0 comments on commit 395fbbc

Please sign in to comment.