Skip to content

Using Druid Golang Client

Etcd Druid provides a generated typed Golang client which can be used to invoke CRUD operations on Etcd and EtcdCopyBackupsTask custom resources.

A simple example is provided to demonstrate how an Etcd resource can be created using client package.

To run the example ensure that you have the following setup:

  • Follow the Getting Started Guide to set up a KIND cluster and deploy etcd-druid operator.

  • Run the example:

    bash
    go run examples/client/main.go

You should see the following output:

term
INFO Successfully created Etcd cluster Etcd=default/etcd-test

You can further list the resources that are created for an Etcd cluster. See this document for information on all resources created for an Etcd cluster.

EU and German government funding logos

Funded by the European Union – NextGenerationEU.

The views and opinions expressed are solely those of the author(s) and do not necessarily reflect the views of the European Union or the European Commission. Neither the European Union nor the European Commission can be held responsible for them.