|
| 1 | +apiVersion: apiextensions.k8s.io/v1 |
| 2 | +kind: CustomResourceDefinition |
| 3 | +metadata: |
| 4 | + annotations: |
| 5 | + controller-gen.kubebuilder.io/version: v0.16.1 |
| 6 | + creationTimestamp: null |
| 7 | + labels: |
| 8 | + app.kubernetes.io/component: controller |
| 9 | + app.kubernetes.io/instance: mongodb-atlas-kubernetes-operator |
| 10 | + app.kubernetes.io/name: mongodb-atlas-kubernetes-operator |
| 11 | + name: atlasipaccesslists.atlas.mongodb.com |
| 12 | +spec: |
| 13 | + group: atlas.mongodb.com |
| 14 | + names: |
| 15 | + categories: |
| 16 | + - atlas |
| 17 | + kind: AtlasIPAccessList |
| 18 | + listKind: AtlasIPAccessListList |
| 19 | + plural: atlasipaccesslists |
| 20 | + shortNames: |
| 21 | + - aip |
| 22 | + singular: atlasipaccesslist |
| 23 | + scope: Namespaced |
| 24 | + versions: |
| 25 | + - additionalPrinterColumns: |
| 26 | + - jsonPath: .status.conditions[?(@.type=="Ready")].status |
| 27 | + name: Ready |
| 28 | + type: string |
| 29 | + name: v1 |
| 30 | + schema: |
| 31 | + openAPIV3Schema: |
| 32 | + description: AtlasIPAccessList is the Schema for the atlasipaccesslists API. |
| 33 | + properties: |
| 34 | + apiVersion: |
| 35 | + description: |- |
| 36 | + APIVersion defines the versioned schema of this representation of an object. |
| 37 | + Servers should convert recognized schemas to the latest internal value, and |
| 38 | + may reject unrecognized values. |
| 39 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 40 | + type: string |
| 41 | + kind: |
| 42 | + description: |- |
| 43 | + Kind is a string value representing the REST resource this object represents. |
| 44 | + Servers may infer this from the endpoint the client submits requests to. |
| 45 | + Cannot be updated. |
| 46 | + In CamelCase. |
| 47 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 48 | + type: string |
| 49 | + metadata: |
| 50 | + type: object |
| 51 | + spec: |
| 52 | + description: AtlasIPAccessListSpec defines the desired state of AtlasIPAccessList. |
| 53 | + properties: |
| 54 | + connectionSecret: |
| 55 | + description: Name of the secret containing Atlas API private and public |
| 56 | + keys |
| 57 | + properties: |
| 58 | + name: |
| 59 | + description: |- |
| 60 | + Name of the resource being referred to |
| 61 | + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 62 | + type: string |
| 63 | + required: |
| 64 | + - name |
| 65 | + type: object |
| 66 | + entries: |
| 67 | + description: Entries is the list of IP Access to be managed |
| 68 | + items: |
| 69 | + properties: |
| 70 | + awsSecurityGroup: |
| 71 | + description: Unique identifier of AWS security group in this |
| 72 | + access list entry. |
| 73 | + type: string |
| 74 | + cidrBlock: |
| 75 | + description: Range of IP addresses in CIDR notation in this |
| 76 | + access list entry. |
| 77 | + type: string |
| 78 | + comment: |
| 79 | + description: Comment associated with this access list entry. |
| 80 | + type: string |
| 81 | + deleteAfterDate: |
| 82 | + description: Date and time after which Atlas deletes the temporary |
| 83 | + access list entry. |
| 84 | + format: date-time |
| 85 | + type: string |
| 86 | + ipAddress: |
| 87 | + description: Entry using an IP address in this access list entry. |
| 88 | + type: string |
| 89 | + type: object |
| 90 | + x-kubernetes-validations: |
| 91 | + - message: Only one of ipAddress, cidrBlock, or awsSecurityGroup |
| 92 | + may be set. |
| 93 | + rule: '!(has(self.ipAddress) && (has(self.cidrBlock) || has(self.awsSecurityGroup))) |
| 94 | + && !(has(self.cidrBlock) && has(self.awsSecurityGroup))' |
| 95 | + minItems: 1 |
| 96 | + type: array |
| 97 | + externalProjectRef: |
| 98 | + description: |- |
| 99 | + "externalProjectRef" holds the parent Atlas project ID. |
| 100 | + Mutually exclusive with the "projectRef" field |
| 101 | + properties: |
| 102 | + id: |
| 103 | + description: ID is the Atlas project ID |
| 104 | + type: string |
| 105 | + required: |
| 106 | + - id |
| 107 | + type: object |
| 108 | + projectRef: |
| 109 | + description: |- |
| 110 | + "projectRef" is a reference to the parent AtlasProject resource. |
| 111 | + Mutually exclusive with the "externalProjectRef" field |
| 112 | + properties: |
| 113 | + name: |
| 114 | + description: Name is the name of the Kubernetes Resource |
| 115 | + type: string |
| 116 | + namespace: |
| 117 | + description: Namespace is the namespace of the Kubernetes Resource |
| 118 | + type: string |
| 119 | + required: |
| 120 | + - name |
| 121 | + type: object |
| 122 | + required: |
| 123 | + - entries |
| 124 | + type: object |
| 125 | + x-kubernetes-validations: |
| 126 | + - message: must define only one project reference through externalProjectRef |
| 127 | + or projectRef |
| 128 | + rule: (has(self.externalProjectRef) && !has(self.projectRef)) || (!has(self.externalProjectRef) |
| 129 | + && has(self.projectRef)) |
| 130 | + - message: must define a local connection secret when referencing an external |
| 131 | + project |
| 132 | + rule: (has(self.externalProjectRef) && has(self.connectionSecret)) || |
| 133 | + !has(self.externalProjectRef) |
| 134 | + status: |
| 135 | + description: AtlasIPAccessListStatus is the most recent observed status |
| 136 | + of the AtlasIPAccessList cluster. Read-only. |
| 137 | + properties: |
| 138 | + conditions: |
| 139 | + description: Conditions is the list of statuses showing the current |
| 140 | + state of the Atlas Custom Resource |
| 141 | + items: |
| 142 | + description: Condition describes the state of an Atlas Custom Resource |
| 143 | + at a certain point. |
| 144 | + properties: |
| 145 | + lastTransitionTime: |
| 146 | + description: Last time the condition transitioned from one status |
| 147 | + to another. |
| 148 | + format: date-time |
| 149 | + type: string |
| 150 | + message: |
| 151 | + description: A human readable message indicating details about |
| 152 | + the transition. |
| 153 | + type: string |
| 154 | + reason: |
| 155 | + description: The reason for the condition's last transition. |
| 156 | + type: string |
| 157 | + status: |
| 158 | + description: Status of the condition, one of True, False, Unknown. |
| 159 | + type: string |
| 160 | + type: |
| 161 | + description: Type of Atlas Custom Resource condition. |
| 162 | + type: string |
| 163 | + required: |
| 164 | + - status |
| 165 | + - type |
| 166 | + type: object |
| 167 | + type: array |
| 168 | + entries: |
| 169 | + description: Status is the state of the ip access list |
| 170 | + items: |
| 171 | + properties: |
| 172 | + entry: |
| 173 | + description: Entry is the ip access Atlas is managing |
| 174 | + type: string |
| 175 | + status: |
| 176 | + description: Status is the correspondent state of the entry |
| 177 | + type: string |
| 178 | + required: |
| 179 | + - entry |
| 180 | + - status |
| 181 | + type: object |
| 182 | + type: array |
| 183 | + observedGeneration: |
| 184 | + description: |- |
| 185 | + ObservedGeneration indicates the generation of the resource specification that the Atlas Operator is aware of. |
| 186 | + The Atlas Operator updates this field to the 'metadata.generation' as soon as it starts reconciliation of the resource. |
| 187 | + format: int64 |
| 188 | + type: integer |
| 189 | + required: |
| 190 | + - conditions |
| 191 | + type: object |
| 192 | + type: object |
| 193 | + served: true |
| 194 | + storage: true |
| 195 | + subresources: |
| 196 | + status: {} |
| 197 | +status: |
| 198 | + acceptedNames: |
| 199 | + kind: "" |
| 200 | + plural: "" |
| 201 | + conditions: null |
| 202 | + storedVersions: null |
0 commit comments