158 Commits

Author SHA1 Message Date
William Baker
f32a55f3bf
feat: add drop-non-retryable-data to replications commands (#330)
* feat: add drop-non-retryable-data to replications commands

* refactor: use drop vs nodrop flags

* chore: use the built-in PtrBool
2021-11-17 14:16:58 -07:00
yumenomatayume
6a7c4f6d44
fix: v1 auth create supports multiple buckets (#328) 2021-11-11 11:43:14 -05:00
Dane Strandboge
adc58b8441
chore: refactor influxid.ID, cleanup organization checking (#326) 2021-11-10 15:12:59 -06:00
Daniel Moran
99791bafd3
feat: add flags for remotes, replications, and functions to auth create (#325) 2021-11-10 11:33:01 -05:00
Daniel Moran
1eadcf12e1
chore: update CHANGELOG (#323) 2021-11-10 09:35:35 -05:00
Daniel Moran
566dcafae9
chore: update CHANGELOG (#319) 2021-11-09 10:30:02 -05:00
许懿赫
9c9785e359
fix: wrong position of orgID and userID in org members remove (#318) 2021-11-09 10:22:46 -05:00
Daniel Moran
d861490100
fix: return "unknown command" instead of "no help topic" error when unknown (sub)command is passed (#316)
Co-authored-by: Sam Lai <samuel.lai@gmail.com>
2021-11-02 14:17:42 -04:00
Sam Lai
a3af8ca833
revert: "feat: return error if API token required but not found (#310)" (#315)
This reverts commit 81de7e63dd2649cd043c7a66c6698a9f5609552c.
2021-11-01 12:57:30 -04:00
Sam Lai
81de7e63dd
feat: return error if API token required but not found (#310) 2021-10-22 10:06:12 -04:00
Daniel Moran
c3690d8584
chore: pin release date in CHANGELOG (#311) 2021-10-21 11:20:21 -04:00
Dane Strandboge
3e76528ed2
build: upgrade protobuf library (#308) 2021-10-18 13:22:54 -05:00
Daniel Moran
6fda4cceed
feat: handle pagination in bucket list (#307) 2021-10-15 15:14:59 -07:00
Daniel Moran
d92bede8d3
fix: embed tzdata into Windows builds (#305)
Migrate cross-test jobs to use cross-builder so Windows tests run on a system without Go, as a regression test
2021-10-14 08:49:26 -07:00
Daniel Moran
964bc4fe03
fix: set newly-created config as active in setup (#302) 2021-10-14 07:00:16 -07:00
Daniel Moran
af631b4da8
build: bump to go1.17.2 (#300) 2021-10-12 09:27:23 -07:00
mcfarlm3
c49001b412
feat: added functionality for replication update command (#299)
* feat: added functionality for replication update command

* refactor: changed replication update usage text for clarity

* fix: added closing bracket back in

* chore: ran make fmt
2021-10-08 14:08:44 -07:00
mcfarlm3
eb3ee7631f
feat: added functionality for replication delete command (#298)
* feat: added functionality for replication delete command

* refactor: changed naming of remote-id flag to be consistent with other influx commands

* refactor: reduced lines of code and improved error message based on code review
2021-10-07 14:43:03 -07:00
Daniel Moran
cafae42d3c
build: update deb/rpm metadata to ref influxdb2 v2.1.0 (#292) 2021-10-07 09:04:22 -04:00
Sam Arnold
c4a5a13c8e
fix: restore when changing tokens works (#297)
* fix: restore when changing tokens works

* fix: remove cruft

* chore: changelog update

* chore: CHANGELOG word-smithing

Co-authored-by: Dan Moran <dmoran@influxdata.com>
2021-10-07 08:23:39 -04:00
mcfarlm3
64b1b03f8f
feat: added functionality for replication list command (#296)
* feat: added functionality for replication list command

* chore: ran make fmt

* refactor: fixed comment for clarity

* refactor: chained statements together to simplify code
2021-10-06 17:42:16 -07:00
mcfarlm3
4e8671dcc5
feat: added functionality for replication create command (#289)
* feat: added functionality for replication create command

* refactor: changed replication create flag usage text and eliminated extra conditionals

* refactor: made changes to usage text and output table based on code review

* chore: fixed link to max queue size default value
2021-10-06 10:48:57 -07:00
Sam Arnold
857e2b356c
chore: expose tabwriter so InfluxDB can use it (#295) 2021-10-06 11:27:25 -04:00
Daniel Moran
25b8bddd56
chore: update CHANGELOG (#291) 2021-10-05 16:11:01 -04:00
Sam Arnold
714a73d9eb
feat: all-access and operator token from CLI (#285)
* chore: include enum values in openapi generated code

* chore: add enum template to list of template overrides

* chore: update template and generated code

* feat: generate permissions list from openapi spec

* feat: all-access and operator token from CLI

Closes #22510

* fix: cloud fixed the resources endpoint

* fix: all access and operator permissions cannot be composed

* fix: review comments from dan-moran
2021-10-05 14:33:02 -04:00
mcfarlm3
ade82cc4fe
fix: removed unused fmt import in remote cmd code (#287) 2021-10-04 11:04:19 -07:00
mcfarlm3
3c3d70cc60
feat: added functionality for remote update command (#282)
* feat: added functionality for remote update command

* refactor: removed extra get request for TLS flag and minor changes to help text

* chore: pulled newest changes to openapi and ran make fmt

* refactor: shortened conditional statement to one line
2021-10-04 10:28:07 -07:00
mcfarlm3
b7627a33c8
feat: added functionality for remote delete command (#283)
* feat: added functionality for remote delete command

* chore: pulled recent openapi changes and ran make fmt
2021-10-04 10:02:36 -07:00
Daniel Moran
d0640ad6c4
fix: regenerate using new openapi to fix health API client (#284) 2021-09-24 14:27:19 -04:00
Daniel Moran
f17f21410c
fix: allow explicit empty request bodies (#281) 2021-09-24 11:35:29 -04:00
Daniel Moran
e609d4462d
fix: update openapi and regenerate to pull in fix for replications API (#280) 2021-09-23 15:04:08 -04:00
Daniel Moran
9076a65d1e
feat: generate clients for replications APIs (#278) 2021-09-23 09:09:36 -04:00
mcfarlm3
65cca47ded
feat: added functionality for remote list subcommand (#273)
* feat: add remote list subcommand functionality

* refactor: removed repeated code and improved help text
2021-09-22 09:18:06 -07:00
Daniel Moran
9a008c6b26
fix: fix type test for common flags (#275) 2021-09-21 13:26:21 -04:00
Sam Arnold
dfc6f00982
fix: less confusing overloads of 'token' in help (#272)
* chore: refactor GetOrg calls

* fix: less confusing overloads of 'token' in help

Closes #20619

* fix: clean up iscommon function definition
2021-09-20 13:57:45 -04:00
mcfarlm3
dcf9f5bc9a
feat: added functionality for remote create subcommand (#268)
* feat: implement remote create subcommand

* chore: generate mocks for testing remote command

* refactor: separated out test code, made small changes to remote create code

* chore: ran make fmt

* chore: removed excess print statements

* refactor: made changes suggested in code review

* refactor: added name and remote id to printed table
2021-09-14 13:03:17 -07:00
Jamie Strandboge
2d1f3ee3bc
build: allow specifying -gcflags via env (#267)
Make targets may call '$(GO_BUILD)', but there is no facility for
specifying arguments to 'go build'. As a first step, introduce the
GCFLAGS Makefile variable that when unset, operates as always, but when
set, adds '-gcflags "$(GCFLAGS)"' to go build. Eg, when unspecified,
maintain the current behavior (though with an additional space):

$ make
CGO_ENABLED=0 go build  -ldflags ...

When specified, add the specified -gcflags:

$ GCFLAGS="all=-N -l" make
CGO_ENABLED=0 go build -gcflags "all=-N -l" -ldflags ...

This could be useful in various situations such as producing unoptimized
builds (like in the above).
2021-09-14 11:35:45 -04:00
Daniel Moran
3895d1ac7b
build: upgrade to go1.17.1 (#265) 2021-09-10 15:30:34 -04:00
Dane Strandboge
76e9ed68d8
feat: add shorthand for --bucket to influx delete (#259) 2021-09-08 15:26:34 -05:00
mcfarlm3
1ec4e1590b
feat: stub out remote and replication commands and subcommands (#254)
* feat: stubbed out remote and replication commands and subcommands

* refactor: renamed remote.go file to match command

* refactor: combined replication metrics and replication list subcommands into list only

* refactor: removed extra appends to pass lint check
2021-09-03 13:17:18 -07:00
Daniel Moran
65da55e3f3
fix: --host value passed to setup is written to generated config (#255) 2021-09-02 17:42:37 -04:00
Daniel Moran
38040fa8dc
fix: upgrade golang.org/x/sys to avoid panics on Macs (#252) 2021-09-01 17:38:59 -04:00
Daniel Moran
7de3681224
build: upgrade to go1.17 (#251) 2021-09-01 14:11:15 -04:00
Daniel Moran
fa12328714
fix: detect and error out on incorrect positional args (#236) 2021-08-20 17:30:30 -04:00
Daniel Moran
c0103e7b1b
build: fix make fmt, reformat test sources (#234) 2021-08-20 15:26:00 -04:00
Daniel Moran
3a6dfe7102
fix: don't set empty strings for IDs in permission resources (#232) 2021-08-20 10:58:51 -04:00
Daniel Moran
285103df13
fix: make --http-debug flag visible in help text (#228) 2021-08-20 10:27:36 -04:00
Daniel Moran
13799e7662
refactor: use updated API in restore client (#226) 2021-08-13 13:50:02 -04:00
Daniel Moran
10c17ec661
build: upgrade staticcheck to latest version (#224) 2021-08-04 14:54:53 -04:00
Daniel Moran
d615694ee9
refactor: replace uses of ioutil with io and os (#223) 2021-08-04 14:45:22 -04:00