Skip to main content

DNSRecord [ingress.operator.openshift.io/v1]

Description
DNSRecord is a DNS record managed in the zones defined by dns.config.openshift.io/cluster .spec.publicZone and .spec.privateZone. Cluster admin manipulation of this resource is not supported. This resource is only for internal communication of OpenShift operators. If DNSManagementPolicy is "Unmanaged", the operator will not be responsible for managing the DNS records on the cloud provider. Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
Type
`object`

Specification​

PropertyTypeDescription
apiVersionstringAPIVersion 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
kindstringKind 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
metadataObjectMetaStandard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
specobjectspec is the specification of the desired behavior of the dnsRecord.
statusobjectstatus is the most recently observed status of the dnsRecord.

.spec​

Description
spec is the specification of the desired behavior of the dnsRecord.
Type
`object`
Required
  • dnsManagementPolicy
  • dnsName
  • recordTTL
  • recordType
  • targets
PropertyTypeDescription
dnsManagementPolicystringdnsManagementPolicy denotes the current policy applied on the DNS record. Records that have policy set as "Unmanaged" are ignored by the ingress operator. This means that the DNS record on the cloud provider is not managed by the operator, and the "Published" status condition will be updated to "Unknown" status, since it is externally managed. Any existing record on the cloud provider can be deleted at the discretion of the cluster admin.
This field defaults to Managed. Valid values are "Managed" and "Unmanaged".
dnsNamestringdnsName is the hostname of the DNS record
recordTTLintegerrecordTTL is the record TTL in seconds. If zero, the default is 30. RecordTTL will not be used in AWS regions Alias targets, but will be used in CNAME targets, per AWS API contract.
recordTypestringrecordType is the DNS record type. For example, "A", "AAAA", or "CNAME".
targetsarray (string)targets are record targets.

.status​

Description
status is the most recently observed status of the dnsRecord.
Type
`object`
PropertyTypeDescription
observedGenerationintegerobservedGeneration is the most recently observed generation of the DNSRecord. When the DNSRecord is updated, the controller updates the corresponding record in each managed zone. If an update for a particular zone fails, that failure is recorded in the status condition for the zone so that the controller can determine that it needs to retry the update for that specific zone.
zonesarrayzones are the status of the record in each zone.
zones[]objectDNSZoneStatus is the status of a record within a specific zone.

.status.zones​

Description
zones are the status of the record in each zone.
Type
`array`

.status.zones[]​

Description
DNSZoneStatus is the status of a record within a specific zone.
Type
`object`
PropertyTypeDescription
conditionsarrayconditions are any conditions associated with the record in the zone.
If publishing the record succeeds, the "Published" condition will be set with status "True" and upon failure it will be set to "False" along with the reason and message describing the cause of the failure.
conditions[]objectDNSZoneCondition is just the standard condition fields.
dnsZoneobjectdnsZone is the zone where the record is published.

.status.zones[].conditions​

Description
conditions are any conditions associated with the record in the zone. If publishing the record succeeds, the "Published" condition will be set with status "True" and upon failure it will be set to "False" along with the reason and message describing the cause of the failure.
Type
`array`

.status.zones[].conditions[]​

Description
DNSZoneCondition is just the standard condition fields.
Type
`object`
Required
  • status
  • type
PropertyTypeDescription
lastTransitionTimestring
messagestring
reasonstring
statusstring
typestring

.status.zones[].dnsZone​

Description
dnsZone is the zone where the record is published.
Type
`object`
PropertyTypeDescription
idstringid is the identifier that can be used to find the DNS hosted zone.
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].
[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
tagsobject (string)tags can be used to query the DNS hosted zone.
on AWS, resourcegroupstaggingapi [1] can be used to fetch a zone using Tags as tag-filters,
[1]: https://docs.aws.amazon.com/cli/latest/reference/resourcegroupstaggingapi/get-resources.html#options

API endpoints​

The following API endpoints are available:

  • /apis/ingress.operator.openshift.io/v1/dnsrecords
    • GET: list objects of kind DNSRecord
  • /apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords
    • DELETE: delete collection of DNSRecord
    • GET: list objects of kind DNSRecord
    • POST: create a DNSRecord
  • /apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords/{name}
    • DELETE: delete a DNSRecord
    • GET: read the specified DNSRecord
    • PATCH: partially update the specified DNSRecord
    • PUT: replace the specified DNSRecord
  • /apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords/{name}/status
    • GET: read status of the specified DNSRecord
    • PATCH: partially update status of the specified DNSRecord
    • PUT: replace status of the specified DNSRecord

/apis/ingress.operator.openshift.io/v1/dnsrecords​

HTTP method
`GET`
Description
list objects of kind DNSRecord

HTTP responses

HTTP codeReponse body
200 - OKDNSRecordList schema
401 - UnauthorizedEmpty

/apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords​

HTTP method
`DELETE`
Description
delete collection of DNSRecord

HTTP responses

HTTP codeReponse body
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP method
`GET`
Description
list objects of kind DNSRecord

HTTP responses

HTTP codeReponse body
200 - OKDNSRecordList schema
401 - UnauthorizedEmpty
HTTP method
`POST`
Description
create a DNSRecord

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Body parameters

ParameterTypeDescription
bodyDNSRecord schema

HTTP responses

HTTP codeReponse body
200 - OKDNSRecord schema
201 - CreatedDNSRecord schema
202 - AcceptedDNSRecord schema
401 - UnauthorizedEmpty

/apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords/{name}​

Global path parameters

ParameterTypeDescription
namestringname of the DNSRecord
HTTP method
`DELETE`
Description
delete a DNSRecord

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

HTTP responses

HTTP codeReponse body
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP method
`GET`
Description
read the specified DNSRecord

HTTP responses

HTTP codeReponse body
200 - OKDNSRecord schema
401 - UnauthorizedEmpty
HTTP method
`PATCH`
Description
partially update the specified DNSRecord

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

HTTP responses

HTTP codeReponse body
200 - OKDNSRecord schema
401 - UnauthorizedEmpty
HTTP method
`PUT`
Description
replace the specified DNSRecord

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Body parameters

ParameterTypeDescription
bodyDNSRecord schema

HTTP responses

HTTP codeReponse body
200 - OKDNSRecord schema
201 - CreatedDNSRecord schema
401 - UnauthorizedEmpty

/apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords/{name}/status​

Global path parameters

ParameterTypeDescription
namestringname of the DNSRecord
HTTP method
`GET`
Description
read status of the specified DNSRecord

HTTP responses

HTTP codeReponse body
200 - OKDNSRecord schema
401 - UnauthorizedEmpty
HTTP method
`PATCH`
Description
partially update status of the specified DNSRecord

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

HTTP responses

HTTP codeReponse body
200 - OKDNSRecord schema
401 - UnauthorizedEmpty
HTTP method
`PUT`
Description
replace status of the specified DNSRecord

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Body parameters

ParameterTypeDescription
bodyDNSRecord schema

HTTP responses

HTTP codeReponse body
200 - OKDNSRecord schema
201 - CreatedDNSRecord schema
401 - UnauthorizedEmpty