Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Is it possible to avoid specification of protocol twice? #24

Closed
@BlaineEXE

Description

@BlaineEXE

https://github.com/kubernetes-sigs/container-object-storage-interface-api/blob/7c26b4fc1ed9e719cd3342f2666c855260930cc9/apis/objectstorage.k8s.io/v1alpha1/protocol_types.go#L28-L37

Do we need to include Name as well as the different protocol options? This makes it so that whenever options are included, users must specify their choice twice: once in Name and once implicitly in the protocol spec. E.g.,

protocol:
  name: s3
  s3:
     blah: stuff

K8s volume claims use a syntax where the option itself implicitly specifies the option desired. E.g.,

volumes:
  - name: myDir
    emptyDir: {}

Does it make sense to follow that pattern for the protocol also? Like below would be an S3 config with no options set.

protocol:
  s3: {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions