diff --git a/controllers/templates/atlas_schema.tmpl b/controllers/templates/atlas_schema.tmpl index 8ed8500f..290092b0 100644 --- a/controllers/templates/atlas_schema.tmpl +++ b/controllers/templates/atlas_schema.tmpl @@ -8,7 +8,18 @@ variable "lint_destructive" { } {{- with .Policy }} {{- with .Diff }} + {{- if or .ConcurrentIndex .Skip }} diff { + {{- with .ConcurrentIndex }} + concurrent_index { + {{- if .Create }} + create = true + {{- end }} + {{- if .Drop }} + drop = true + {{- end }} + } + {{- end }} {{- with .Skip }} skip { {{- if .AddSchema }} @@ -59,6 +70,7 @@ diff { } {{- end }} } + {{- end }} {{- end }} {{- with .Lint }} lint {