diff --git a/README.md b/README.md index 4a7771c..0038314 100644 --- a/README.md +++ b/README.md @@ -490,7 +490,7 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds requirements: requiredResources: @@ -535,7 +535,7 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds ``` diff --git a/example/definition.yaml b/example/definition.yaml index f46ef00..250b803 100644 --- a/example/definition.yaml +++ b/example/definition.yaml @@ -57,26 +57,48 @@ spec: description: XRStatus defines the observed state of XR. type: object properties: + group: + description: Single group for groupRef status references + type: object + properties: + name: + description: Group name for status.group.name references + type: string + groups: + description: List of group names for groupsRef status references + type: array + items: + type: string + users: + description: List of user emails for usersRef status references + type: array + items: + type: string + servicePrincipalNames: + description: List of service principal names for servicePrincipalsRef status references + type: array + items: + type: string groupMembers: - description: Freeform field containing query results from function-msgraph + description: GroupMembership msgraph query results type: array items: type: object x-kubernetes-preserve-unknown-fields: true validatedUsers: - description: Freeform field containing query results from function-msgraph + description: UserValidation msgraph query results type: array items: type: object x-kubernetes-preserve-unknown-fields: true groupObjectIDs: - description: Freeform field containing query results from function-msgraph + description: GroupObjectIDs msgraph query results type: array items: type: object x-kubernetes-preserve-unknown-fields: true servicePrincipals: - description: Freeform field containing query results from function-msgraph + description: ServicePrincipalDetails msgraph query results type: array items: type: object diff --git a/example/group-membership-example-context-ref.yaml b/example/group-membership-example-context-ref.yaml index 75ea5f5..6441bb9 100644 --- a/example/group-membership-example-context-ref.yaml +++ b/example/group-membership-example-context-ref.yaml @@ -35,5 +35,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds diff --git a/example/group-membership-example-spec-ref.yaml b/example/group-membership-example-spec-ref.yaml index b2a4020..894daf9 100644 --- a/example/group-membership-example-spec-ref.yaml +++ b/example/group-membership-example-spec-ref.yaml @@ -31,5 +31,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds \ No newline at end of file diff --git a/example/group-membership-example-status-ref.yaml b/example/group-membership-example-status-ref.yaml index b5d7660..a04ab2c 100644 --- a/example/group-membership-example-status-ref.yaml +++ b/example/group-membership-example-status-ref.yaml @@ -24,5 +24,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds diff --git a/example/group-membership-example.yaml b/example/group-membership-example.yaml index 2e89476..01753b6 100644 --- a/example/group-membership-example.yaml +++ b/example/group-membership-example.yaml @@ -30,5 +30,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds diff --git a/example/group-objectids-example-context-ref.yaml b/example/group-objectids-example-context-ref.yaml index 9cb3dee..f7843be 100644 --- a/example/group-objectids-example-context-ref.yaml +++ b/example/group-objectids-example-context-ref.yaml @@ -33,5 +33,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds diff --git a/example/group-objectids-example-spec-ref.yaml b/example/group-objectids-example-spec-ref.yaml index abd9d4c..e0c7923 100644 --- a/example/group-objectids-example-spec-ref.yaml +++ b/example/group-objectids-example-spec-ref.yaml @@ -27,5 +27,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds \ No newline at end of file diff --git a/example/group-objectids-example-status-ref.yaml b/example/group-objectids-example-status-ref.yaml index 771feae..636d11d 100644 --- a/example/group-objectids-example-status-ref.yaml +++ b/example/group-objectids-example-status-ref.yaml @@ -26,5 +26,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds diff --git a/example/group-objectids-example.yaml b/example/group-objectids-example.yaml index 5f5c302..e5378a1 100644 --- a/example/group-objectids-example.yaml +++ b/example/group-objectids-example.yaml @@ -30,5 +30,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds diff --git a/example/identity-type-workload-identity.yaml b/example/identity-type-workload-identity.yaml index 4553adf..cb1e699 100644 --- a/example/identity-type-workload-identity.yaml +++ b/example/identity-type-workload-identity.yaml @@ -31,5 +31,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-workload-identity-creds diff --git a/example/operations/cronoperation.yaml b/example/operations/cronoperation.yaml index f26d714..93da8df 100644 --- a/example/operations/cronoperation.yaml +++ b/example/operations/cronoperation.yaml @@ -28,7 +28,7 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds requirements: requiredResources: diff --git a/example/operations/operation.yaml b/example/operations/operation.yaml index a51cad9..d51333d 100644 --- a/example/operations/operation.yaml +++ b/example/operations/operation.yaml @@ -23,7 +23,7 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds requirements: requiredResources: diff --git a/example/operations/watchoperation.yaml b/example/operations/watchoperation.yaml index fa711b5..3b7e560 100644 --- a/example/operations/watchoperation.yaml +++ b/example/operations/watchoperation.yaml @@ -30,5 +30,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds diff --git a/example/secrets/azure-creds.yaml b/example/secrets/azure-creds.yaml index 5695c1d..62432c7 100644 --- a/example/secrets/azure-creds.yaml +++ b/example/secrets/azure-creds.yaml @@ -4,5 +4,5 @@ data: kind: Secret metadata: name: azure-account-creds - namespace: upbound-system + namespace: crossplane-system type: Opaque diff --git a/example/secrets/azure-workload-identity-creds.yaml b/example/secrets/azure-workload-identity-creds.yaml index 84129d1..7a5ef11 100644 --- a/example/secrets/azure-workload-identity-creds.yaml +++ b/example/secrets/azure-workload-identity-creds.yaml @@ -7,5 +7,5 @@ stringData: kind: Secret metadata: name: azure-workload-identity-creds - namespace: upbound-system + namespace: crossplane-system type: Opaque diff --git a/example/service-principal-example-context-ref.yaml b/example/service-principal-example-context-ref.yaml index de2514f..217cd8c 100644 --- a/example/service-principal-example-context-ref.yaml +++ b/example/service-principal-example-context-ref.yaml @@ -33,5 +33,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds diff --git a/example/service-principal-example-spec-ref.yaml b/example/service-principal-example-spec-ref.yaml index 140db31..a437135 100644 --- a/example/service-principal-example-spec-ref.yaml +++ b/example/service-principal-example-spec-ref.yaml @@ -17,11 +17,11 @@ spec: queryType: ServicePrincipalDetails # Using spec reference to get service principal names servicePrincipalsRef: "spec.servicePrincipalConfig.names" - target: "status.servicePrincipalDetails" + target: "status.servicePrincipals" skipQueryWhenTargetHasData: true credentials: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds \ No newline at end of file diff --git a/example/service-principal-example-status-ref.yaml b/example/service-principal-example-status-ref.yaml index 1167f32..8af18b9 100644 --- a/example/service-principal-example-status-ref.yaml +++ b/example/service-principal-example-status-ref.yaml @@ -26,5 +26,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds \ No newline at end of file diff --git a/example/service-principal-example.yaml b/example/service-principal-example.yaml index 7ab9a76..f92510b 100644 --- a/example/service-principal-example.yaml +++ b/example/service-principal-example.yaml @@ -19,11 +19,11 @@ spec: - "MyServiceApp" - "ApiConnector" - "yury-upbound-oidc-provider" - target: "status.servicePrincipalDetails" + target: "status.servicePrincipals" skipQueryWhenTargetHasData: true credentials: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds diff --git a/example/user-validation-example-context-ref.yaml b/example/user-validation-example-context-ref.yaml index b192872..eeb2b05 100644 --- a/example/user-validation-example-context-ref.yaml +++ b/example/user-validation-example-context-ref.yaml @@ -33,5 +33,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds diff --git a/example/user-validation-example-spec-ref.yaml b/example/user-validation-example-spec-ref.yaml index dfcfa87..de2529d 100644 --- a/example/user-validation-example-spec-ref.yaml +++ b/example/user-validation-example-spec-ref.yaml @@ -26,5 +26,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds \ No newline at end of file diff --git a/example/user-validation-example-status-ref.yaml b/example/user-validation-example-status-ref.yaml index 5b7bd21..a7b19c4 100644 --- a/example/user-validation-example-status-ref.yaml +++ b/example/user-validation-example-status-ref.yaml @@ -26,5 +26,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds \ No newline at end of file diff --git a/example/user-validation-example.yaml b/example/user-validation-example.yaml index b5ae910..e266d2e 100644 --- a/example/user-validation-example.yaml +++ b/example/user-validation-example.yaml @@ -29,5 +29,5 @@ spec: - name: azure-creds source: Secret secretRef: - namespace: upbound-system + namespace: crossplane-system name: azure-account-creds