Skip to content

Commit b02540c

Browse files
authored
chore: use latest tag for InfluxDB 2, update management API (#26)
1 parent 0ec0428 commit b02540c

File tree

8 files changed

+16
-15
lines changed

8 files changed

+16
-15
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
default: &default-swift-image "swift:5.3"
7171
influxdb-image:
7272
type: string
73-
default: &default-influxdb-image "quay.io/influxdb/influxdb:v2.0.4"
73+
default: &default-influxdb-image "influxdb:latest"
7474
docker:
7575
- image: << parameters.swift-image >>
7676
environment:

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
### API
44
1. [#25](https://github.com/influxdata/influxdb-client-swift/pull/25): Updated client API to be more Swift like
5-
1. [#23](https://github.com/influxdata/influxdb-client-swift/pull/23): Updated swagger to latest version
5+
1. [#23](https://github.com/influxdata/influxdb-client-swift/pull/23), [#26](https://github.com/influxdata/influxdb-client-swift/pull/26): Updated swagger to latest version
66

77
### CI
8-
1. [#25](https://github.com/influxdata/influxdb-client-swift/pull/25): Updated `SwiftLint` to 0.42.0
8+
1. [#25](https://github.com/influxdata/influxdb-client-swift/pull/25): Updated `SwiftLint` to 0.42.0
9+
1. [#26](https://github.com/influxdata/influxdb-client-swift/pull/26): Updated stable image to `influxdb:latest` and nightly to `quay.io/influxdb/influxdb:nightly`
910

1011
## 0.1.0 [2021-01-29]
1112

Examples/CreateNewBucket/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This is an example how to create new bucket with permission to write.
2222
--name influxdb_v2 \
2323
--detach \
2424
--publish 8086:8086 \
25-
quay.io/influxdb/influxdb:v2.0.4
25+
influxdb:latest
2626
```
2727
1. Configure your username, password, organization, bucket and token:
2828
```bash

Examples/DeleteData/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ See delete predicate syntax in InfluxDB docs - [delete-predicate](https://docs.i
2222
--name influxdb_v2 \
2323
--detach \
2424
--publish 8086:8086 \
25-
quay.io/influxdb/influxdb:v2.0.4
25+
influxdb:latest
2626
```
2727
1. Configure your username, password, organization, bucket and token:
2828
```bash

Examples/QueryCpu/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The Telegraf sends data from [CPU Input Plugin](https://github.com/influxdata/te
2222
--name influxdb_v2 \
2323
--detach \
2424
--publish 8086:8086 \
25-
quay.io/influxdb/influxdb:v2.0.4
25+
influxdb:latest
2626
```
2727
1. Configure your username, password, organization, bucket and token:
2828
```bash

Examples/WriteData/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This is an example how to write data with Data Point structure.
2121
--name influxdb_v2 \
2222
--detach \
2323
--publish 8086:8086 \
24-
quay.io/influxdb/influxdb:v2.0.4
24+
influxdb:latest
2525
```
2626
1. Configure your username, password, organization, bucket and token:
2727
```bash

Scripts/influxdb-restart.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,9 @@
2323

2424
set -e
2525

26-
DEFAULT_DOCKER_REGISTRY="quay.io/influxdb/"
27-
DOCKER_REGISTRY="${DOCKER_REGISTRY:-$DEFAULT_DOCKER_REGISTRY}"
28-
29-
DEFAULT_INFLUXDB_V2_REPOSITORY="influxdb"
30-
DEFAULT_INFLUXDB_V2_VERSION="v2.0.4"
31-
INFLUXDB_V2_REPOSITORY="${INFLUXDB_V2_REPOSITORY:-$DEFAULT_INFLUXDB_V2_REPOSITORY}"
26+
DEFAULT_INFLUXDB_V2_VERSION="latest"
3227
INFLUXDB_V2_VERSION="${INFLUXDB_V2_VERSION:-$DEFAULT_INFLUXDB_V2_VERSION}"
33-
INFLUXDB_V2_IMAGE=${DOCKER_REGISTRY}${INFLUXDB_V2_REPOSITORY}:${INFLUXDB_V2_VERSION}
28+
INFLUXDB_V2_IMAGE=influxdb:${INFLUXDB_V2_VERSION}
3429

3530
SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
3631

Sources/InfluxDBSwiftApis/Generated/Models/OnboardingRequest.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,18 @@ public struct OnboardingRequest: Codable {
1414
public var password: String?
1515
public var org: String
1616
public var bucket: String
17+
public var retentionPeriodSeconds: Int?
18+
/** Retention period *in nanoseconds* for the new bucket. This key&#39;s name has been misleading since OSS 2.0 GA, please transition to use &#x60;retentionPeriodSeconds&#x60; */
19+
20+
@available(*, deprecated, message: "This property is deprecated.")
1721
public var retentionPeriodHrs: Int?
1822

19-
public init(username: String, password: String? = nil, org: String, bucket: String, retentionPeriodHrs: Int? = nil) {
23+
public init(username: String, password: String? = nil, org: String, bucket: String, retentionPeriodSeconds: Int? = nil, retentionPeriodHrs: Int? = nil) {
2024
self.username = username
2125
self.password = password
2226
self.org = org
2327
self.bucket = bucket
28+
self.retentionPeriodSeconds = retentionPeriodSeconds
2429
self.retentionPeriodHrs = retentionPeriodHrs
2530
}
2631

0 commit comments

Comments
 (0)