---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.8.0
  creationTimestamp: null
  name: iams.observability.pingcap.com
spec:
  group: observability.pingcap.com
  names:
    kind: IAM
    listKind: IAMList
    plural: iams
    singular: iam
  scope: Namespaced
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        description: IAM is the Schema for the iams API
        properties:
          apiVersion:
            description: 'APIVersion defines the versioned schema of this representation
              of an object. Servers should convert recognized schemas to the latest
              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
            type: string
          kind:
            description: 'Kind is a string value representing the REST resource this
              object represents. Servers may infer this from the endpoint the client
              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
            type: string
          metadata:
            type: object
          spec:
            description: IAMSpec defines the desired state of IAM
            properties:
              aws:
                properties:
                  assumeRolePolicyDocument:
                    description: AssumeRolePolicyDocument is IAM AssumeRolePolicyDocument's
                      base64 encoding
                    type: string
                  policies:
                    items:
                      properties:
                        policyDocument:
                          description: PolicyDocument is IAM PolicyDocument's base64
                            encoding
                          type: string
                        policyName:
                          type: string
                      type: object
                    type: array
                type: object
              gcp:
                properties:
                  assumeRoleAccounts:
                    description: AssumeRoleAccounts is account email address who can
                      access this service account
                    items:
                      type: string
                    type: array
                  policies:
                    additionalProperties:
                      items:
                        properties:
                          policyCondition:
                            type: string
                          policyName:
                            description: PolicyName used to build condition title(prefix
                              + accountName + PolicyName)
                            type: string
                          policyRole:
                            type: string
                        type: object
                      type: array
                    type: object
                type: object
            type: object
          status:
            description: IAMStatus defines the observed state of IAM
            properties:
              arn:
                type: string
              phase:
                description: Phase is the now status for IAM resource
                type: string
            type: object
        required:
        - spec
        type: object
    served: true
    storage: true
    subresources:
      status: {}
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
