API Reference

Packages

objectstorage.k8s.io/v1alpha1

AuthenticationType

Underlying type: string

Appears in:

FieldDescription
Key
IAM

Bucket

Appears in:

FieldDescriptionDefaultValidation
kind stringKind 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
apiVersion stringAPIVersion 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
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec BucketSpec
status BucketStatus

BucketAccess

Appears in:

FieldDescriptionDefaultValidation
kind stringKind 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
apiVersion stringAPIVersion 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
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec BucketAccessSpec
status BucketAccessStatus

BucketAccessClass

Appears in:

FieldDescriptionDefaultValidation
kind stringKind 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
apiVersion stringAPIVersion 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
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
driverName stringDriverName is the name of driver associated with
this BucketAccess
authenticationType AuthenticationTypeAuthenticationType denotes the style of authentication
It can be one of
Key - access, secret tokens based authentication
IAM - implicit authentication of pods to the OSP based on service account mappings
parameters object (keys:string, values:string)Parameters is an opaque map for passing in configuration to a driver
for granting access to a bucket

BucketAccessSpec

Appears in:

FieldDescriptionDefaultValidation
bucketClaimName stringBucketClaimName is the name of the BucketClaim.
protocol ProtocolProtocol is the name of the Protocol
that this access credential is supposed to support
If left empty, it will choose the protocol supported
by the bucket. If the bucket supports multiple protocols,
the end protocol is determined by the driver.
bucketAccessClassName stringBucketAccessClassName is the name of the BucketAccessClass
credentialsSecretName stringCredentialsSecretName is the name of the secret that COSI should populate
with the credentials. If a secret by this name already exists, then it is
assumed that credentials have already been generated. It is not overridden.
This secret is deleted when the BucketAccess is delted.
serviceAccountName stringServiceAccountName is the name of the serviceAccount that COSI will map
to the OSP service account when IAM styled authentication is specified

BucketAccessStatus

Appears in:

FieldDescriptionDefaultValidation
accountID stringAccountID is the unique ID for the account in the OSP. It will be populated
by the COSI sidecar once access has been successfully granted.
accessGranted booleanAccessGranted indicates the successful grant of privileges to access the bucket

BucketClaim

Appears in:

FieldDescriptionDefaultValidation
kind stringKind 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
apiVersion stringAPIVersion 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
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec BucketClaimSpec
status BucketClaimStatus

BucketClaimSpec

Appears in:

FieldDescriptionDefaultValidation
bucketClassName stringName of the BucketClass
protocols Protocol arrayProtocols are the set of data API this bucket is required to support.
The possible values for protocol are:
- S3: Indicates Amazon S3 protocol
- Azure: Indicates Microsoft Azure BlobStore protocol
- GCS: Indicates Google Cloud Storage protocol
existingBucketName stringName of a bucket object that was manually
created to import a bucket created outside of COSI
If unspecified, then a new Bucket will be dynamically provisioned

BucketClaimStatus

Appears in:

FieldDescriptionDefaultValidation
bucketReady booleanBucketReady indicates that the bucket is ready for consumpotion
by workloads
bucketName stringBucketName is the name of the provisioned Bucket in response
to this BucketClaim. It is generated and set by the COSI controller
before making the creation request to the OSP backend.

BucketClass

Appears in:

FieldDescriptionDefaultValidation
kind stringKind 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
apiVersion stringAPIVersion 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
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
driverName stringDriverName is the name of driver associated with this bucket
deletionPolicy DeletionPolicyDeletionPolicy is used to specify how COSI should handle deletion of this
bucket. There are 2 possible values:
- Retain: Indicates that the bucket should not be deleted from the OSP
- Delete: Indicates that the bucket should be deleted from the OSP
once all the workloads accessing this bucket are done
Retain
parameters object (keys:string, values:string)Parameters is an opaque map for passing in configuration to a driver
for creating the bucket

BucketSpec

Appears in:

FieldDescriptionDefaultValidation
driverName stringDriverName is the name of driver associated with this bucket
bucketClassName stringName of the BucketClass specified in the BucketRequest
bucketClaim ObjectReferenceName of the BucketClaim that resulted in the creation of this Bucket
In case the Bucket object was created manually, then this should refer
to the BucketClaim with which this Bucket should be bound
protocols Protocol arrayProtocols are the set of data APIs this bucket is expected to support.
The possible values for protocol are:
- S3: Indicates Amazon S3 protocol
- Azure: Indicates Microsoft Azure BlobStore protocol
- GCS: Indicates Google Cloud Storage protocol
parameters object (keys:string, values:string)
deletionPolicy DeletionPolicyDeletionPolicy is used to specify how COSI should handle deletion of this
bucket. There are 2 possible values:
- Retain: Indicates that the bucket should not be deleted from the OSP (default)
- Delete: Indicates that the bucket should be deleted from the OSP
once all the workloads accessing this bucket are done
Retain
existingBucketID stringExistingBucketID is the unique id of the bucket in the OSP. This field should be
used to specify a bucket that has been created outside of COSI.
This field will be empty when the Bucket is dynamically provisioned by COSI.

BucketStatus

Appears in:

FieldDescriptionDefaultValidation
bucketReady booleanBucketReady is a boolean condition to reflect the successful creation
of a bucket.
bucketID stringBucketID is the unique id of the bucket in the OSP. This field will be
populated by COSI.

DeletionPolicy

Underlying type: string

Appears in:

FieldDescription
Retain
Delete

Protocol

Underlying type: string

Appears in:

FieldDescription
S3
Azure
GCP