|
| 1 | +apiVersion: apiextensions.k8s.io/v1 |
| 2 | +kind: CustomResourceDefinition |
| 3 | +metadata: |
| 4 | + annotations: |
| 5 | + api-approved.openshift.io: https://github.com/openshift/api/pull/470 |
| 6 | + include.release.openshift.io/ibm-cloud-managed: "true" |
| 7 | + include.release.openshift.io/self-managed-high-availability: "true" |
| 8 | + include.release.openshift.io/single-node-developer: "true" |
| 9 | + release.openshift.io/feature-set: TechPreviewNoUpgrade |
| 10 | + name: dnses.config.openshift.io |
| 11 | +spec: |
| 12 | + group: config.openshift.io |
| 13 | + names: |
| 14 | + kind: DNS |
| 15 | + listKind: DNSList |
| 16 | + plural: dnses |
| 17 | + singular: dns |
| 18 | + scope: Cluster |
| 19 | + versions: |
| 20 | + - name: v1 |
| 21 | + schema: |
| 22 | + openAPIV3Schema: |
| 23 | + description: "DNS holds cluster-wide information about DNS. The canonical name is `cluster` \n Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer)." |
| 24 | + type: object |
| 25 | + required: |
| 26 | + - spec |
| 27 | + properties: |
| 28 | + apiVersion: |
| 29 | + 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' |
| 30 | + type: string |
| 31 | + kind: |
| 32 | + 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' |
| 33 | + type: string |
| 34 | + metadata: |
| 35 | + type: object |
| 36 | + spec: |
| 37 | + description: spec holds user settable values for configuration |
| 38 | + type: object |
| 39 | + properties: |
| 40 | + baseDomain: |
| 41 | + description: "baseDomain is the base domain of the cluster. All managed DNS records will be sub-domains of this base. \n For example, given the base domain `openshift.example.com`, an API server DNS record may be created for `cluster-api.openshift.example.com`. \n Once set, this field cannot be changed." |
| 42 | + type: string |
| 43 | + platform: |
| 44 | + description: platform holds configuration specific to the underlying infrastructure provider for DNS. When omitted, this means the user has no opinion and the platform is left to choose reasonable defaults. These defaults are subject to change over time. |
| 45 | + type: object |
| 46 | + required: |
| 47 | + - type |
| 48 | + properties: |
| 49 | + aws: |
| 50 | + description: aws contains DNS configuration specific to the Amazon Web Services cloud provider. |
| 51 | + type: object |
| 52 | + properties: |
| 53 | + privateZoneIAMRole: |
| 54 | + description: privateZoneIAMRole contains the ARN of an IAM role that should be assumed when performing operations on the cluster's private hosted zone specified in the cluster DNS config. When left empty, no role should be assumed. |
| 55 | + type: string |
| 56 | + pattern: ^arn:(aws|aws-cn|aws-us-gov):iam:[0-9]{12}:role\/.*$ |
| 57 | + type: |
| 58 | + description: "type is the underlying infrastructure provider for the cluster. Allowed values: \"\", \"AWS\". DNSPlatformType is a subset of Infrastructure PlatformType. \n Individual components may not support all platforms, and must handle unrecognized platforms with best-effort defaults." |
| 59 | + type: string |
| 60 | + enum: |
| 61 | + - "" |
| 62 | + - AWS |
| 63 | + - Azure |
| 64 | + - BareMetal |
| 65 | + - GCP |
| 66 | + - Libvirt |
| 67 | + - OpenStack |
| 68 | + - None |
| 69 | + - VSphere |
| 70 | + - oVirt |
| 71 | + - IBMCloud |
| 72 | + - KubeVirt |
| 73 | + - EquinixMetal |
| 74 | + - PowerVS |
| 75 | + - AlibabaCloud |
| 76 | + - Nutanix |
| 77 | + - External |
| 78 | + x-kubernetes-validations: |
| 79 | + - rule: self in ['','AWS'] |
| 80 | + message: allowed values are '' and 'AWS' |
| 81 | + x-kubernetes-validations: |
| 82 | + - rule: 'has(self.type) && self.type == ''AWS'' ? has(self.aws) : !has(self.aws)' |
| 83 | + message: aws configuration is required when platform is AWS, and forbidden otherwise |
| 84 | + privateZone: |
| 85 | + description: "privateZone is the location where all the DNS records that are only available internally to the cluster exist. \n If this field is nil, no private records should be created. \n Once set, this field cannot be changed." |
| 86 | + type: object |
| 87 | + properties: |
| 88 | + id: |
| 89 | + description: "id is the identifier that can be used to find the DNS hosted zone. \n on AWS zone can be fetched using `ID` as id in [1] on Azure zone can be fetched using `ID` as a pre-determined name in [2], on GCP zone can be fetched using `ID` as a pre-determined name in [3]. \n [1]: https://docs.aws.amazon.com/cli/latest/reference/route53/get-hosted-zone.html#options [2]: https://docs.microsoft.com/en-us/cli/azure/network/dns/zone?view=azure-cli-latest#az-network-dns-zone-show [3]: https://cloud.google.com/dns/docs/reference/v1/managedZones/get" |
| 90 | + type: string |
| 91 | + tags: |
| 92 | + description: "tags can be used to query the DNS hosted zone. \n on AWS, resourcegroupstaggingapi [1] can be used to fetch a zone using `Tags` as tag-filters, \n [1]: https://docs.aws.amazon.com/cli/latest/reference/resourcegroupstaggingapi/get-resources.html#options" |
| 93 | + type: object |
| 94 | + additionalProperties: |
| 95 | + type: string |
| 96 | + publicZone: |
| 97 | + description: "publicZone is the location where all the DNS records that are publicly accessible to the internet exist. \n If this field is nil, no public records should be created. \n Once set, this field cannot be changed." |
| 98 | + type: object |
| 99 | + properties: |
| 100 | + id: |
| 101 | + description: "id is the identifier that can be used to find the DNS hosted zone. \n on AWS zone can be fetched using `ID` as id in [1] on Azure zone can be fetched using `ID` as a pre-determined name in [2], on GCP zone can be fetched using `ID` as a pre-determined name in [3]. \n [1]: https://docs.aws.amazon.com/cli/latest/reference/route53/get-hosted-zone.html#options [2]: https://docs.microsoft.com/en-us/cli/azure/network/dns/zone?view=azure-cli-latest#az-network-dns-zone-show [3]: https://cloud.google.com/dns/docs/reference/v1/managedZones/get" |
| 102 | + type: string |
| 103 | + tags: |
| 104 | + description: "tags can be used to query the DNS hosted zone. \n on AWS, resourcegroupstaggingapi [1] can be used to fetch a zone using `Tags` as tag-filters, \n [1]: https://docs.aws.amazon.com/cli/latest/reference/resourcegroupstaggingapi/get-resources.html#options" |
| 105 | + type: object |
| 106 | + additionalProperties: |
| 107 | + type: string |
| 108 | + status: |
| 109 | + description: status holds observed values from the cluster. They may not be overridden. |
| 110 | + type: object |
| 111 | + served: true |
| 112 | + storage: true |
| 113 | + subresources: |
| 114 | + status: {} |
0 commit comments