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
Property | Type | 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 |
|
| 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 |
| Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | |
|
| spec is the specification of the desired behavior of the dnsRecord. |
|
| status 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
Property | Type | Description |
---|---|---|
|
| dnsManagementPolicy 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”. |
|
| dnsName is the hostname of the DNS record |
|
| recordTTL 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. |
|
| recordType is the DNS record type. For example, “A” or “CNAME”. |
|
| targets are record targets. |
.status
Description
status is the most recently observed status of the dnsRecord.
Type
object
Property | Type | Description |
---|---|---|
|
| observedGeneration 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. |
|
| zones are the status of the record in each zone. |
|
| DNSZoneStatus 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
Property | Type | 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. |
|
| DNSZoneCondition is just the standard condition fields. |
|
| dnsZone 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
Property | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
|
.status.zones[].dnsZone
Description
dnsZone is the zone where the record is published.
Type
object
Property | Type | Description |
---|---|---|
|
| id is the identifier that can be used to find the DNS hosted zone. on AWS zone can be fetched using |
|
| tags can be used to query the DNS hosted zone. on AWS, resourcegroupstaggingapi [1] can be used to fetch a zone using |
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 DNSRecordGET
: list objects of kind DNSRecordPOST
: create a DNSRecord
/apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords/{name}
DELETE
: delete a DNSRecordGET
: read the specified DNSRecordPATCH
: partially update the specified DNSRecordPUT
: replace the specified DNSRecord
/apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords/{name}/status
GET
: read status of the specified DNSRecordPATCH
: partially update status of the specified DNSRecordPUT
: replace status of the specified DNSRecord
/apis/ingress.operator.openshift.io/v1/dnsrecords
HTTP method
GET
Description
list objects of kind DNSRecord
HTTP code | Reponse body |
---|---|
200 - OK | DNSRecordList schema |
401 - Unauthorized | Empty |
/apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords
HTTP method
DELETE
Description
delete collection of DNSRecord
HTTP code | Reponse body |
---|---|
200 - OK | Status schema |
401 - Unauthorized | Empty |
HTTP method
GET
Description
list objects of kind DNSRecord
HTTP code | Reponse body |
---|---|
200 - OK | DNSRecordList schema |
401 - Unauthorized | Empty |
HTTP method
POST
Description
create a DNSRecord
Parameter | Type | Description |
---|---|---|
|
| When 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 |
|
| fieldValidation 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. |
Parameter | Type | Description |
---|---|---|
| DNSRecord schema |
HTTP code | Reponse body |
---|---|
200 - OK | DNSRecord schema |
201 - Created | DNSRecord schema |
202 - Accepted | DNSRecord schema |
401 - Unauthorized | Empty |
/apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords/{name}
Parameter | Type | Description |
---|---|---|
|
| name of the DNSRecord |
HTTP method
DELETE
Description
delete a DNSRecord
Parameter | Type | Description |
---|---|---|
|
| When 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 code | Reponse body |
---|---|
200 - OK | Status schema |
202 - Accepted | Status schema |
401 - Unauthorized | Empty |
HTTP method
GET
Description
read the specified DNSRecord
HTTP code | Reponse body |
---|---|
200 - OK | DNSRecord schema |
401 - Unauthorized | Empty |
HTTP method
PATCH
Description
partially update the specified DNSRecord
Parameter | Type | Description |
---|---|---|
|
| When 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 |
|
| fieldValidation 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 code | Reponse body |
---|---|
200 - OK | DNSRecord schema |
401 - Unauthorized | Empty |
HTTP method
PUT
Description
replace the specified DNSRecord
Parameter | Type | Description |
---|---|---|
|
| When 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 |
|
| fieldValidation 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. |
Parameter | Type | Description |
---|---|---|
| DNSRecord schema |
HTTP code | Reponse body |
---|---|
200 - OK | DNSRecord schema |
201 - Created | DNSRecord schema |
401 - Unauthorized | Empty |
/apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords/{name}/status
Parameter | Type | Description |
---|---|---|
|
| name of the DNSRecord |
HTTP method
GET
Description
read status of the specified DNSRecord
HTTP code | Reponse body |
---|---|
200 - OK | DNSRecord schema |
401 - Unauthorized | Empty |
HTTP method
PATCH
Description
partially update status of the specified DNSRecord
Parameter | Type | Description |
---|---|---|
|
| When 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 |
|
| fieldValidation 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 code | Reponse body |
---|---|
200 - OK | DNSRecord schema |
401 - Unauthorized | Empty |
HTTP method
PUT
Description
replace status of the specified DNSRecord
Parameter | Type | Description |
---|---|---|
|
| When 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 |
|
| fieldValidation 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. |
Parameter | Type | Description |
---|---|---|
| DNSRecord schema |
HTTP code | Reponse body |
---|---|
200 - OK | DNSRecord schema |
201 - Created | DNSRecord schema |
401 - Unauthorized | Empty |