Commit Graph

742 Commits (0d07f8e579fe7287ddf3aee7af61509da38d1c1c)

Author SHA1 Message Date
Johnny Steenbergen 3fd731511a chore(pkger): make integration stack tests indpendent 2020-05-05 11:01:13 -07:00
Johnny Steenbergen 1d027cf4e0 feat(pkger): enforce metadata.name dns name compliance
this PR includes a lot of small changes to names in existing test pkgs.
the tests are updated to follow suit.

closes: #17940
2020-05-05 01:35:02 -05:00
Johnny Steenbergen 89e34365bb feat(pkger): add the ability to remove a stack and all its associated resources
closes: #17554
2020-05-05 01:35:02 -05:00
Johnny Steenbergen 784b222d4d feat(pkger): enforce metadata.name dns name compliance
this PR includes a lot of small changes to names in existing test pkgs.
the tests are updated to follow suit.

closes: #17940
2020-05-04 12:40:22 -07:00
Johnny Steenbergen 95ad3c6582 feat(pkger): add the ability to remove a stack and all its associated resources
closes: #17554
2020-05-01 16:18:13 -07:00
jlapacik 83b90c3575 Merge branch 'master' into chore/merge-master 2020-04-30 14:05:51 -07:00
Johnny Steenbergen c7e97f1625 feat(pkger): add service and http server integreations for stack lists
references: #17554
2020-04-30 13:24:15 -07:00
jlapacik 2ef9999907 Merge branch 'master' into chore/merge-master 2020-04-30 09:53:04 -07:00
Gavin Cabbage 95913534a0
feat(kit/feature): add feature flag package (#17851)
* feat(kit/feature): add feature flag package

* refactor(kit/feature/_codegen): simplify with fmt.Errorf

* chore(kit/feature): tidy comments
2020-04-30 11:29:43 -04:00
Johnny Steenbergen ff27edbea9 feat(pkger): add support for using URLs associated with stack to apply/dry run 2020-04-29 16:48:00 -07:00
Lyon Hill d720661e77
feat(tenant): change the tenant services default behavior to enabled (#17872)
We have reached the stage wehre the new tenant service is being used and
is stable but we want to get it in more hands and used as the default service.
2020-04-29 14:04:26 -06:00
jlapacik 457637ed22 Merge branch 'master' into chore/merge-master 2020-04-28 13:13:36 -07:00
Johnny Steenbergen 72906a4484 feat(pkger): add support for stateful label mappings
references: #17434
2020-04-24 17:05:55 -07:00
jlapacik 3079d2a8aa Merge branch 'master' into chore/merge-master-into-algo-w 2020-04-24 14:21:26 -07:00
Johnny Steenbergen 1ac383de66 fix(launcher): removed timed contexts for launcher pkger tests 2020-04-24 10:52:50 -07:00
Johnny Steenbergen 1615a2c461 fix(influx): add arg description into config usage 2020-04-24 10:52:50 -07:00
Johnny Steenbergen 3acd860563 feat(pkger): add stateful management for notification rules
references: #17434
2020-04-23 11:47:32 -07:00
jlapacik 63fd3655be Merge branch 'master' into chore/merge-master-into-algo-w 2020-04-22 14:52:59 -07:00
George e150377f48
revert(tenant): integrate the tenant service as the default backend (#17805) (#17832)
This reverts commit 79e9de93cb.
2020-04-22 17:23:17 +01:00
Johnny Steenbergen 653a53fa9b chore(influx): tidy up print summary statements to include pkg names 2020-04-21 16:50:08 -07:00
Johnny Steenbergen 47e5facc81 feat(pkger): add stateful management for telegraf configs 2020-04-21 15:47:49 -07:00
Lyon Hill 79e9de93cb
feat(tenant): integrate the tenant service as the default backend (#17805) 2020-04-21 13:43:56 -06:00
Johnny Steenbergen 43b7d65d02 feat(influx): extend CLI org type to support config orgs in global config 2020-04-21 10:25:05 -07:00
Johnny Steenbergen 5cd57d4f1e fix(influx): make CLI respect root token and host env vars in additionn to config
one thing to note here is we are deleting the default value on the host
flag when it is registered. The config is the fallback and has the default
value set. If the host flag has a default, the determination if the user
set it or not is ambiguous. We can't have that.

closes: #17812
2020-04-21 10:25:05 -07:00
Johnny Steenbergen 596d8fde45 feat(pkger): add stateful management for tasks
notes on this commit. This commit was grueling ;-(. The task API is not a friendly
API to consume. There are a lot of non obvious things going on and almost every
one of them tripped me up. Things of note:

* the http.TaskService does not satisfy the influxdb.TaskService,
  making it impossible to use as a dependency if tasks service gets
  split out
* the APIs for create and update do not share common types. For example:
  creating a task takes every field as a string, but in the update it is
  taken as a options.Duration type. A step further and you'll notice that
  create does not need an option to be provided, but the update does. Its
  jarring trying to understand the indirection here. I struggled mightily
  trying to make sense of it all with the indirection and differing types.
  Made for a very difficult task (no pun intended) when it should have been
  trivial. Opportunity here to fix these up and make this API more uniform
  and remove unneccesary complexity like the options type.
* Nested IDs that get marshaled, are no bueno when you want to marshal a task
  that does not have an ID in it, for either user/org/or self IDs. Its a challenge
  just to do that.
* Lots of logs in the kv.Task portion where we hit errors and log and others where
  we return. It isn't clear what is happening. The kv implementation is also very
  procedural, and I found myself bouncing around like a ping pong ball trying to
  make heads or tails of it.
* There is auth buried deep inside the kv.Task implementation that kept throwing me
  off b/c it kept throwing errors, instead of warns. I assume, not sure if I'm
  correct on this, but that the stuff being logged is determined inconsequential
  to the task working. I had lots of errors from the auth buried in there, and hadn't
  a clue what to make of it....

leaving these notes here as a look back at why working with tasks is so
difficult. This API can improve dramatically. I spent 5x the time trying
to figure out how to use the task API, in procedural calls, than I did
writing the business logic to consume it.... that's a scary realization ;-(

references: #17434
2020-04-21 09:14:20 -07:00
Johnny Steenbergen d1af15c399 chore: remove extranenous fields on http.Task type
also drops a skipped test that has been skipped for over a year. Tried
unskipping it, but now it fails for all sorts of reasons, without the
race flag enabled.
2020-04-20 15:34:58 -07:00
Johnny Steenbergen c483aec2d2 feat(pkger): add stateful management for dashboards 2020-04-20 14:04:45 -07:00
jlapacik 335968a552 Merge branch 'master' into chore/merge-master 2020-04-20 13:59:21 -07:00
Johnny Steenbergen 8251c362ee chore(pkger): refactor parser notification rule state out into stateful type
this PR also drops a bunc of dead code that was necessary for times of integration.

references: #17434
2020-04-17 14:02:29 -07:00
jlapacik 7541af8414 chore: merge master into algow 2020-04-15 14:42:03 -07:00
Johnny Steenbergen 94ae519cc6 chore(pkger): refactor parser notification endpoint state out into stateful type
references: #17434
2020-04-15 14:26:25 -07:00
Johnny Steenbergen c8a79f5653 chore(pkger): refactor parser variable state out into stateful type
references: #17434
2020-04-14 16:48:56 -07:00
Johnny Steenbergen 68183bb156 chore(pkger): refactor embedded types out of stateful types 2020-04-14 14:12:23 -07:00
Johnny Steenbergen c718b676ef chore(pkger): refactor pkger data model to separate parsed and stateful datum 2020-04-14 09:28:09 -07:00
Lorenzo Affetti 6967cc2d58
fix(launcher): se default memory limit for query to unlimited 2020-04-10 21:33:45 +02:00
Johnny Steenbergen 67ccbd4490 fix(influx): add nil check for printing diff of endpoints and checks 2020-04-09 13:15:32 -07:00
Johnny Steenbergen 77bb23fd38 chore(pkger): refactor label mapping diff CLI table output 2020-04-08 15:13:47 -07:00
Johnny Steenbergen cee77081b2 feat(pkger): extend tasks with unique constraints 2020-04-08 14:38:32 -07:00
Johnny Steenbergen 85e31e8194 feat(pkger): update tasks with unique constraints 2020-04-08 13:30:43 -07:00
Pavel Závora 179adb0e9b
Merge pull request #17595 from influxdata/17356/influx-cli-file
feat(cmd/influx): add --file option to query and task commands
2020-04-08 20:45:44 +02:00
Johnny Steenbergen 845718c0d6 feat(pkger): update dashboards with unique constraints 2020-04-08 11:21:28 -07:00
Pavel Závora 3270d3328a
Merge branch 'master' into 17356/influx-cli-file 2020-04-08 19:54:43 +02:00
Johnny Steenbergen dd432360cc feat(pkger): update notification rule with unique constraints 2020-04-08 10:36:21 -07:00
Lyon Hill 33c39796bd
feat(tenant): update the client to use the new onboarding package (#17659) 2020-04-07 13:51:06 -06:00
Alirie Gray 8975fd2365
refactor(tenant): move bucket and urm auth layers to tenant service (#17474)
Co-authored-by: Lyon Hill <lyondhill@gmail.com>
2020-04-07 11:13:27 -07:00
Lyon Hill 4421a39639
feat(tenant): Build out the onboarding system in tenant and integrate it into launcher (#17558)
We are adding in a setup/user route this is not in swagger at the moment but will be
added once we feel it is stable.
2020-04-06 15:58:15 -06:00
Johnny Steenbergen c245f3233b chore(pkger): add stack state management for notification endpoints 2020-04-06 14:56:56 -07:00
Pavel Závora 9cca99d0a4
Merge branch 'master' into 17356/influx-cli-file 2020-04-06 21:04:44 +02:00
Johnny Steenbergen 1e19f38502 chore(pkger): add stack state management for variables 2020-04-06 10:22:55 -07:00
Jonathan A. Sternberg d3fa60991f
Merge branch 'master' into chore/merge-master 2020-04-06 12:17:47 -05:00
Pavel Zavora 37b3673733 chore(cmd/influx): apply proofreading comments #17356 2020-04-04 13:00:41 +02:00
Jonathan A. Sternberg 0ae8bebd75
refactor: rewrite imports to include the /v2 suffix for version 2 2020-04-03 12:39:20 -05:00
Jonathan A. Sternberg 469c5849c4
Merge branch 'master' into feat/use-algo-w 2020-04-03 09:30:04 -05:00
Pavel Zavora 4f1953cea5 feat(cmd/influx/task): add --file option #17356 2020-04-03 08:00:56 +02:00
Pavel Zavora 3449f23733 feat(cmd/influx/query): add --file option #17356 2020-04-03 07:31:10 +02:00
Johnny Steenbergen 21d2bf5dc6 chore(pkger): add stack state management for checks 2020-04-02 16:32:20 -07:00
Johnny Steenbergen e6317a04ee chore(pkger): refactor summary/diff types for Endpints|Checks|Variables 2020-04-02 12:35:51 -07:00
Johnny Steenbergen 762e9a422e feat(pkger): add stack state management for labels 2020-04-02 09:03:59 -07:00
Lorenzo Affetti 13fc4f335d
test(launcher): e2e test memory limits 2020-04-02 11:20:42 +02:00
Johnny Steenbergen f5b9a30b1f feat(pkger): extend labels diff and summary types to include PkgName and Remove
the pkgName refers to the unqiue label resource within the pkg and the
Remove field indicates the label will be removed when applying the pkg
2020-04-01 14:13:45 -07:00
Johnny Steenbergen 34c3b35ca3 feat(pkger): add stack state management for buckets 2020-04-01 13:09:14 -07:00
Kelvin Wang abe3a96674 feat(cmd/influx): add config switch back 2020-04-01 12:44:21 -04:00
Johnny Steenbergen 098fd27ab4 feat(pkger): extend DiffBucket with name for existing and new bucket values
provides mapping between pkgName and resource the diff represents. Now that
stacks are in place, the existing bucket may change names.
2020-03-31 13:34:40 -07:00
Pavel Zavora 153bc0bd40 Merge branch 'master' into 17003/writeFromCsv 2020-03-29 21:20:10 +02:00
Pavel Zavora 9e55ac3481 chore(cmd/influx/write): remove unused DryRun flag 2020-03-29 20:30:06 +02:00
Johnny Steenbergen 9f2fcea365 fix: add missing flag register to task run list cmd for json out and hide header flags 2020-03-27 14:20:37 -07:00
Johnny Steenbergen 77900b39cc fix: add missing flag register to task run list cmd for json out and hide header flags 2020-03-27 13:47:31 -07:00
Johnny Steenbergen e767b1e410 fix: add missing flag register to org cmd for json out and hide header flags 2020-03-27 13:31:46 -07:00
Kelvin Wang 5db57c9081 feat(cmd/influx): easy switch config 2020-03-27 15:45:36 -04:00
Johnny Steenbergen 3cb44a0301 feat(influx): add jsonout and hide headers support to task cmd 2020-03-27 12:33:24 -07:00
Johnny Steenbergen 361777acfd feat(influx): add jsonout and hide headers support to auth cmd 2020-03-27 11:49:09 -07:00
Johnny Steenbergen 62a64e9abd feat(influx): add jsonout and hide headers support to user cmd 2020-03-27 11:49:09 -07:00
Brett Buddin 2200143a22
Merge pull request #17462 from influxdata/bb/no-tasks
feat(influxd): flag to disable scheduling of tasks
2020-03-27 14:26:34 -04:00
Russ Savage b0876d4144
Merge branch 'master' into 17003/writeFromCsv 2020-03-27 11:14:52 -07:00
Johnny Steenbergen 7a518380ad feat(influx): add jsonout and hide headers support to config cmd 2020-03-27 10:59:50 -07:00
Johnny Steenbergen 241e3513e6 feat(influx): add jsonout and hide headers support to setup cmd 2020-03-27 10:59:50 -07:00
Johnny Steenbergen 08fbdbff1a feat(influx): add jsonout and hide headers support to secret cmd 2020-03-27 10:59:50 -07:00
Johnny Steenbergen ba57fa5a66 feat(influx): add jsonout and hide headers support to org cmd 2020-03-27 10:59:50 -07:00
Johnny Steenbergen 34e0754572 feat(influx): add jsonout and hide headers functionality to bucket cmds 2020-03-27 10:29:56 -07:00
Brett Buddin 3d826d96cf
feat(influxd): flag to disable scheduling of tasks 2020-03-27 12:52:07 -04:00
Johnny Steenbergen f0c0b82a7a feat(influx): add json output flag for pkg commands that print tables 2020-03-27 08:32:58 -07:00
Johnny Steenbergen 37646464b3 feat(pkger): add stack init cmd to influx cli
closes: #17235
2020-03-27 08:32:58 -07:00
sranka 9baf17f25b
Merge branch 'master' into 17003/writeFromCsv 2020-03-27 13:36:35 +01:00
Pavel Zavora ede26fce65 chore(cmd/influx/write): q comments 2020-03-26 21:19:33 +01:00
Johnny Steenbergen 8c70dc9b23 feat(pkger): add create stack endpoint for http server 2020-03-26 12:37:43 -07:00
Johnny Steenbergen 7a24e450c1 feat(pkger): add auth for pkger stack CRUDing
adds new AuthAgent type that can be reused across service middleware.
2020-03-26 10:11:59 -07:00
Lorenzo Affetti b9fc4e5668
Merge pull request #17385 from influxdata/la/dup-read
feat(tenant): add duplicate read service
2020-03-25 23:41:29 +01:00
Pavel Zavora 1911854218 chore(cmd/influx): create write's dryrun subcommand with runE middleware 2020-03-25 21:26:18 +01:00
Pavel Zavora 978604cc52 fix(cmd/influx): reuse organization struct for org and org-id flags of write command 2020-03-25 21:22:01 +01:00
Pavel Zavora f871de2076 feat(cmd/influx): introduce dryrun sub-command of write command 2020-03-25 21:22:01 +01:00
Pavel Zavora 60765219ae fix(cmd/influx): revert the way of how config is read when token flag is empty 2020-03-25 21:22:01 +01:00
Pavel Zavora ff3a27aac5 feat(cmd/write): add dry-run flag 2020-03-25 21:22:01 +01:00
Pavel Zavora 3fddd8dea5 chore(cmd/write): use stdin when no file or argument is supplied 2020-03-25 21:22:01 +01:00
Pavel Zavora 82f0365ff6 feat(cmd/write): don't override config unless token migration really happened 2020-03-25 21:21:21 +01:00
Pavel Zavora fd1e4b903f feat(cmd/write): add file option 2020-03-25 21:21:21 +01:00
Pavel Zavora 7ca93e0bfe feat(cmd/write): don't check setup for dry-run executions 2020-03-25 21:17:23 +01:00
Pavel Zavora 8a3feb1bbc feat(cmd/write): add csv format support 2020-03-25 21:17:23 +01:00
Johnny Steenbergen 36d99bfbf8 chore(influx): make runE middleware application explicit from caller 2020-03-25 12:41:11 -07:00
Johnny Steenbergen 7d8bd1e055 chore(pkger): refactor influx pkg cmd to not validate in CLI and have server validate
the pkger.ValidSkipParseError option allows our server to be the one to validate the
the pkg is accurate. If a user has an older version of the UI and our cloud gets updated
with new validation rules,they'll get immediate access to that change without having to
rol their CLI build.

also fixes issue where we swallow initial errors when check setup middleware
fails.
2020-03-25 11:50:14 -07:00
Johnny Steenbergen 2f7aee2f2e chore(influx): small cleanup of pkg command removing duplicate validation 2020-03-25 09:09:48 -07:00