Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from databrickslabs/develop
Develop
- Loading branch information
Showing
458 changed files
with
37,837 additions
and
86,348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.terraform | ||
docs | ||
examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM golang:1.13-alpine | ||
WORKDIR /go/src/github.com/databrickslabs/databricks-terraform/ | ||
COPY . . | ||
RUN apk add --update make | ||
RUN make build | ||
|
||
FROM hashicorp/terraform:latest | ||
COPY --from=0 /go/src/github.com/databrickslabs/databricks-terraform/terraform-provider-db /root/.terraform.d/plugins/ | ||
RUN ls ~/.terraform.d/plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package model | ||
|
||
type FileInfo struct { | ||
Path string `json:"path,omitempty"` | ||
IsDir bool `json:"is_dir,omitempty"` | ||
FileSize int64 `json:"file_size,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package model | ||
|
||
type InstanceProfileInfo struct { | ||
InstanceProfileArn string `json:"instance_profile_arn,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package model | ||
|
||
//go:generate easytags $GOFILE | ||
|
||
type NotebookTask struct { | ||
NotebookPath string `json:"notebook_path,omitempty"` | ||
BaseParameters map[string]string `json:"base_parameters,omitempty"` | ||
} | ||
|
||
type SparkPythonTask struct { | ||
PythonFile string `json:"python_file,omitempty"` | ||
Parameters []string `json:"parameters,omitempty"` | ||
} | ||
|
||
type SparkJarTask struct { | ||
JarUri string `json:"jar_uri,omitempty"` | ||
MainClassName string `json:"main_class_name,omitempty"` | ||
Parameters []string `json:"parameters,omitempty"` | ||
} | ||
|
||
type SparkSubmitTask struct { | ||
Parameters []string `json:"parameters,omitempty"` | ||
} | ||
|
||
type JobEmailNotifications struct { | ||
OnStart []string `json:"on_start,omitempty"` | ||
OnSuccess []string `json:"on_success,omitempty"` | ||
OnFailure []string `json:"on_failure,omitempty"` | ||
NoAlertForSkippedRuns bool `json:"no_alert_for_skipped_runs,omitempty"` | ||
} | ||
|
||
type CronSchedule struct { | ||
QuartzCronExpression string `json:"quartz_cron_expression,omitempty"` | ||
TimezoneId string `json:"timezone_id,omitempty"` | ||
} | ||
|
||
type JobSettings struct { | ||
ExistingClusterId string `json:"existing_cluster_id,omitempty"` | ||
NewCluster *Cluster `json:"new_cluster,omitempty"` | ||
NotebookTask *NotebookTask `json:"notebook_task,omitempty"` | ||
SparkJarTask *SparkJarTask `json:"spark_jar_task,omitempty"` | ||
SparkPythonTask *SparkPythonTask `json:"spark_python_task,omitempty"` | ||
SparkSubmitTask *SparkSubmitTask `json:"spark_submit_task,omitempty"` | ||
Name string `json:"name,omitempty"` | ||
Libraries []Library `json:"libraries,omitempty"` | ||
EmailNotifications *JobEmailNotifications `json:"email_notifications,omitempty"` | ||
TimeoutSeconds int32 `json:"timeout_seconds,omitempty"` | ||
MaxRetries int32 `json:"max_retries,omitempty"` | ||
MinRetryIntervalMillis int32 `json:"max_retry_interval_millis,omitempty"` | ||
RetryOnTimeout bool `json:"retry_on_timeout,omitempty"` | ||
Schedule *CronSchedule `json:"schedule,omitempty"` | ||
MaxConcurrentRuns int32 `json:"max_concurrent_runs,omitempty"` | ||
} | ||
|
||
type Job struct { | ||
JobId int64 `json:"job_id,omitempty"` | ||
CreatorUserName string `json:"creator_user_name,omitempty"` | ||
Settings *JobSettings `json:"settings,omitempty"` | ||
CreatedTime int64 `json:"created_time,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package model | ||
|
||
type PyPi struct { | ||
Package string `json:"package,omitempty"` | ||
Repo string `json:"repo,omitempty"` | ||
} | ||
|
||
type Maven struct { | ||
Coordinates string `json:"coordinates,omitempty"` | ||
Repo string `json:"repo,omitempty"` | ||
Exclusions []string `json:"exclusions,omitempty"` | ||
} | ||
|
||
type Cran struct { | ||
Package string `json:"package,omitempty"` | ||
Repo string `json:"repo,omitempty"` | ||
} | ||
|
||
type Library struct { | ||
Jar string `json:"jar,omitempty"` | ||
Egg string `json:"egg,omitempty"` | ||
Whl string `json:"whl,omitempty"` | ||
Pypi *PyPi `json:"pypi,omitempty"` | ||
Maven *Maven `json:"maven,omitempty"` | ||
Cran *Cran `json:"cran,omitempty"` | ||
} | ||
|
||
type LibraryStatus struct { | ||
Library *Library `json:"library,omitempty"` | ||
Status string `json:"status,omitempty"` | ||
IsLibraryInstalledOnAllClusters bool `json:"is_library_for_all_clusters,omitempty"` | ||
Messages []string `json:"messages,omitempty"` | ||
} |
Oops, something went wrong.