CredentialsRequest [cloudcredential.openshift.io/v1]
Esc
Start typing to search...
On this page

CredentialsRequest [cloudcredential.openshift.io/v1]

Description

CredentialsRequest is the Schema for the credentialsrequests API

Type
`object`
Required
  • spec

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
specobjectCredentialsRequestSpec defines the desired state of CredentialsRequest
statusobjectCredentialsRequestStatus defines the observed state of CredentialsRequest

.spec

Description

CredentialsRequestSpec defines the desired state of CredentialsRequest

Type
`object`
Required
  • secretRef
PropertyTypeDescription
cloudTokenPathstringcloudTokenPath is the path where the Kubernetes ServiceAccount token (JSON Web Token) is mounted on the deployment for the workload requesting a credentials secret. The presence of this field in combination with fields such as spec.providerSpec.stsIAMRoleARN indicate that CCO should broker creation of a credentials secret containing fields necessary for token based authentication methods such as with the AWS Secure Token Service (STS).
cloudTokenPath may also be used to specify the azure_federated_token_file path used in Azure configuration secrets generated by ccoctl. Defaults to "/var/run/secrets/openshift/serviceaccount/token".
providerSpec``ProviderSpec contains the cloud provider specific credentials specification.
secretRefobjectSecretRef points to the secret where the credentials should be stored once generated.
serviceAccountNamesarray (string)ServiceAccountNames contains a list of ServiceAccounts that will use permissions associated with this CredentialsRequest. This is not used by CCO, but the information is needed for being able to properly set up access control in the cloud provider when the ServiceAccounts are used as part of the cloud credentials flow.

.spec.secretRef

Description

SecretRef points to the secret where the credentials should be stored once generated.

Type
`object`
PropertyTypeDescription
apiVersionstringAPI version of the referent.
fieldPathstringIf referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.
kindstringKind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
namestringName of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
namespacestringNamespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
resourceVersionstringSpecific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
uidstringUID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids

.status

Description

CredentialsRequestStatus defines the observed state of CredentialsRequest

Type
`object`
Required
  • lastSyncGeneration
  • provisioned
PropertyTypeDescription
conditionsarrayConditions includes detailed status for the CredentialsRequest
conditions[]objectCredentialsRequestCondition contains details for any of the conditions on a CredentialsRequest object
lastSyncCloudCredsSecretResourceVersionstringLastSyncCloudCredsSecretResourceVersion is the resource version of the cloud credentials secret resource when the credentials request resource was last synced. Used to determine if the cloud credentials have been updated since the last sync.
lastSyncGenerationintegerLastSyncGeneration is the generation of the credentials request resource that was last synced. Used to determine if the object has changed and requires a sync.
lastSyncInfrastructureResourceVersionstringLastSyncInfrastructureResourceVersion is the resource version of the Infrastructure resource. It is used to determine if the user provided tags have been updated since the last sync.
lastSyncTimestampstringLastSyncTimestamp is the time that the credentials were last synced.
providerStatus``ProviderStatus contains cloud provider specific status.
provisionedbooleanProvisioned is true once the credentials have been initially provisioned.

.status.conditions

Description

Conditions includes detailed status for the CredentialsRequest

Type
`array`

.status.conditions[]

Description

CredentialsRequestCondition contains details for any of the conditions on a CredentialsRequest object

Type
`object`
Required
  • status
  • type
PropertyTypeDescription
lastProbeTimestringLastProbeTime is the last time we probed the condition
lastTransitionTimestringLastTransitionTime is the last time the condition transitioned from one status to another.
messagestringMessage is a human-readable message indicating details about the last transition
reasonstringReason is a unique, one-word, CamelCase reason for the condition’s last transition
statusstringStatus is the status of the condition
typestringType is the specific type of the condition

API endpoints

The following API endpoints are available:

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

/apis/cloudcredential.openshift.io/v1/credentialsrequests

HTTP method
`GET`
Description
list objects of kind CredentialsRequest

HTTP responses

HTTP codeReponse body
200 - OKCredentialsRequestList schema
401 - UnauthorizedEmpty

/apis/cloudcredential.openshift.io/v1/namespaces/{namespace}/credentialsrequests

HTTP method
`DELETE`
Description
delete collection of CredentialsRequest

HTTP responses

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

HTTP responses

HTTP codeReponse body
200 - OKCredentialsRequestList schema
401 - UnauthorizedEmpty
HTTP method
`POST`
Description
create a CredentialsRequest

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
bodyCredentialsRequest schema

HTTP responses

HTTP codeReponse body
200 - OKCredentialsRequest schema
201 - CreatedCredentialsRequest schema
202 - AcceptedCredentialsRequest schema
401 - UnauthorizedEmpty

/apis/cloudcredential.openshift.io/v1/namespaces/{namespace}/credentialsrequests/{name}

Global path parameters

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

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 CredentialsRequest

HTTP responses

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

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 - OKCredentialsRequest schema
401 - UnauthorizedEmpty
HTTP method
`PUT`
Description
replace the specified CredentialsRequest

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
bodyCredentialsRequest schema

HTTP responses

HTTP codeReponse body
200 - OKCredentialsRequest schema
201 - CreatedCredentialsRequest schema
401 - UnauthorizedEmpty

/apis/cloudcredential.openshift.io/v1/namespaces/{namespace}/credentialsrequests/{name}/status

Global path parameters

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

HTTP responses

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

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 - OKCredentialsRequest schema
401 - UnauthorizedEmpty
HTTP method
`PUT`
Description
replace status of the specified CredentialsRequest

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
bodyCredentialsRequest schema

HTTP responses

HTTP codeReponse body
200 - OKCredentialsRequest schema
201 - CreatedCredentialsRequest schema
401 - UnauthorizedEmpty