Skip to content

Commit f29e655

Browse files
authored
Release v0.6.2 (#1382)
1 parent 7b9c73d commit f29e655

File tree

6 files changed

+609
-3
lines changed

6 files changed

+609
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Version changelog
22

3+
## 0.6.2
4+
5+
* Add a warning in `databricks_permissions` token usage docs ([#1380](https://github.com/databrickslabs/terraform-provider-databricks/pull/1380)).
6+
7+
Updated dependency versions:
8+
9+
* Bump google.golang.org/api from 0.83.0 to 0.84.0
10+
* Bump github.com/stretchr/testify from 1.7.2 to 1.7.3
11+
312
## 0.6.1
413

514
* Added `databricks_service_principal` and `databricks_service_principals` data resources ([#1370](https://github.com/databrickslabs/terraform-provider-databricks/pull/1370)).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ terraform {
9494
required_providers {
9595
databricks = {
9696
source = "databrickslabs/databricks"
97-
version = "0.6.1"
97+
version = "0.6.2"
9898
}
9999
}
100100
}

common/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package common
33
import "context"
44

55
var (
6-
version = "0.6.1"
6+
version = "0.6.2"
77
// ResourceName is resource name without databricks_ prefix
88
ResourceName contextKey = 1
99
// Provider is the current instance of provider

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ terraform {
342342
required_providers {
343343
databricks = {
344344
source = "databrickslabs/databricks"
345-
version = "0.6.1"
345+
version = "0.6.2"
346346
}
347347
}
348348
}

scripts/upgrade-namespace.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import glob, re, sys
2+
3+
old_provider = "databrickslabs/databricks"
4+
new_provider = "databricks/databricks"
5+
6+
files_to_fix = []
7+
regex = re.compile(r"source\s+=\s+\"{}\"".format(old_provider))
8+
9+
for terraform_configuration_file in glob.glob('**/**.tf', recursive=True):
10+
contents = open(terraform_configuration_file, 'r').read()
11+
if not regex.findall(contents):
12+
continue
13+
print(f'[+] File {terraform_configuration_file} matches.')
14+
files_to_fix.append((terraform_configuration_file, contents))
15+
16+
if not len(files_to_fix):
17+
print("NOTHING: Didn't find any mentions of the databricks provider.")
18+
sys.exit(1)
19+
20+
if 'yes' == input(f'Type yes to confirm fix of {len(files_to_fix)} files: ').lower():
21+
for terraform_configuration_file, contents in files_to_fix:
22+
with open(terraform_configuration_file, 'w') as f:
23+
new_contents = regex.sub(f'source = "{new_provider}"', contents)
24+
f.write(new_contents)
25+
print(f'SUCCESS: Fixed {len(files_to_fix)} files!')
26+
else: print("ABORT: Didn't receive 'yes'.")

0 commit comments

Comments
 (0)