Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add NetApp/trident/tridentctl #7089

Merged
merged 4 commits into from Oct 15, 2022

Conversation

ponkio-o
Copy link
Sponsor Contributor

@ponkio-o ponkio-o commented Oct 15, 2022

#7089 NetApp/trident/tridentctl: Storage orchestrator for containers

$ aqua g -i NetApp/trident/tridentctl

How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.

Command and output

$ tridentctl --help
A CLI tool for managing the NetApp Trident external storage provisioner for Kubernetes

Usage:
  tridentctl [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  create      Add a resource to Trident
  delete      Remove one or more resources from Trident
  get         Get one or more resources from Trident
  help        Help about any command
  images      Print a table of the container images Trident needs
  import      Import an existing resource to Trident
  install     Install Trident
  logs        Print the logs from Trident
  send        Send a resource from Trident
  uninstall   Uninstall Trident
  update      Modify a resource in Trident
  upgrade     Upgrade a resource in Trident
  version     Print the version of Trident

Flags:
  -d, --debug              Debug output
  -h, --help               help for tridentctl
  -n, --namespace string   Namespace of Trident deployment
  -o, --output string      Output format. One of json|yaml|name|wide|ps (default)
  -s, --server string      Address/port of Trident REST interface (127.0.0.1 or [::1] only)

Use "tridentctl [command] --help" for more information about a command.

If files such as configuration file are needed, please share them.

Note that some prerequires must bet met. (See What you'll need section)

$ tridentctl install -n trident
INFO Created Kubernetes clients.                   namespace=default version=v1.23.3
INFO Starting Trident installation.                namespace=trident
INFO Created service account.
INFO Created cluster role.
INFO Created cluster role binding.
W1015 17:36:28.903750   86676 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
W1015 17:36:28.930637   86676 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
INFO Created Trident pod security policy.
INFO Added finalizers to custom resource definitions.
WARN Unable to get VolumeSnapshot CRD: customresourcedefinitions.apiextensions.k8s.io "volumesnapshots.snapshot.storage.k8s.io" not found  CRD=volumesnapshots.snapshot.storage.k8s.io
INFO Created Trident service.
INFO Created Trident protocol secret.
INFO Created Trident resource quota.
INFO Created Trident deployment.
INFO Created Trident DaemonSet.
INFO Waiting for Trident pod to start.
$ kubectl get pod -n trident
NAME                           READY   STATUS    RESTARTS   AGE
trident-csi-6c69dfb7d6-r5957   0/6     Pending   0          11s

Reference


issue: #1200

[NetApp/trident](https://github.com/NetApp/trident): Storage orchestrator for containers

```console
$ aqua g -i NetApp/trident
```

## How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.

Command and output

```console
$
```

If files such as configuration file are needed, please share them.

```
```

Reference

-
- type: github_release
repo_owner: NetApp
repo_name: trident
name: NetApp/trident/tridentctl
Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the trident/trident-installer/extras/bin contains an executable binary named trident.
ref. #7008 (comment)

$ ./trident --help
Usage of ./trident:
  -address string
        Storage orchestrator HTTP API address (default "127.0.0.1")
  -aes_key string
        AES encryption key (default "/certs/aesKey")
  -config string
        Path to configuration file(s)
  -crd_persistence
        Uses CRDs for persisting orchestrator state.
  -csi_endpoint string
        Register as a CSI storage provider with this endpoint
  -csi_node_name string
        CSI node name
  -csi_role string
        CSI role to play: 'controller' or 'node'
  -csi_unsafe_detach
        Prefer to detach successfully rather than safely
  -debug
        Enable debugging output
  -docker_plugin_mode
        Enable docker plugin mode
  -driver_port string
        Listen on this port instead of using a Unix domain socket
  -http_request_timeout duration
        Override the HTTP request timeout for Trident controller’s REST API (default 1m30s)
  -https_address string
        Storage orchestrator HTTPS API address
  -https_ca_cert string
        HTTPS CA certificate (default "/certs/caCert")
  -https_client_cert string
        HTTPS client certificate (default "/certs/clientCert")
  -https_client_key string
        HTTPS client private key (default "/certs/clientKey")
  -https_port string
        Storage orchestrator HTTPS API port (default "8443")
  -https_rest
        Enable HTTPS REST interface
  -https_server_cert string
        HTTPS server certificate (default "/certs/serverCert")
  -https_server_key string
        HTTPS server private key (default "/certs/serverKey")
  -k8s_api_server string
        Kubernetes API server address to enable dynamic storage provisioning for Kubernetes.
  -k8s_config_path string
        Path to KubeConfig file.
  -k8s_pod
        Enables dynamic storage provisioning for Kubernetes if running in a pod.
  -kubeconfig string
        Paths to a kubeconfig. Only required if out-of-cluster.
  -log_format string
        Logging format (text, json) (default "text")
  -log_level string
        Logging level (debug, info, warn, error, fatal) (default "info")
  -metrics
        Enable metrics interface
  -metrics_address string
        Storage orchestrator metrics address
  -metrics_port string
        Storage orchestrator metrics port (default "8001")
  -no_persistence
        Does not persist any metadata.  WILL LOSE TRACK OF VOLUMES ON REBOOT/CRASH.
  -node_prep
        Attempt to install required packages on nodes. (default true)
  -passthrough
        Uses the storage backends as the source of truth.  No data is stored anywhere else.
  -port string
        Storage orchestrator HTTP API port (default "8000")
  -rest
        Enable HTTP REST interface (default true)
  -volume_driver string
        Register as a Docker volume plugin with this driver name (default "netapp")

- goos: darwin
files:
- name: tridentctl
src: trident-installer/extras/macos/bin/tridentctl
Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Oct 15, 2022
@suzuki-shunsuke suzuki-shunsuke added this to the v3.75.0 milestone Oct 15, 2022
@suzuki-shunsuke
Copy link
Member

Thanks!

@suzuki-shunsuke suzuki-shunsuke changed the title feat: add NetApp/trident feat: add NetApp/trident/tridentctl Oct 15, 2022
@ponkio-o
Copy link
Sponsor Contributor Author

ponkio-o commented Oct 15, 2022

Oh, I forgot t change the directory name. Thanks.
e48c9dc

@suzuki-shunsuke suzuki-shunsuke merged commit 8e2b286 into aquaproj:main Oct 15, 2022
@suzuki-shunsuke
Copy link
Member

@ponkio-o ponkio-o mentioned this pull request Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants