You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "The OAuth2 Token, Project, Group, Personal Access Token or CI Job Token used to connect to GitLab. The OAuth method is used in this provider for authentication (using Bearer authorization token). See https://docs.gitlab.com/ee/api/#authentication for details. It may be sourced from the `GITLAB_TOKEN` environment variable.",
Description: "This is the target GitLab base API endpoint. Providing a value is a requirement when working with GitLab CE or GitLab Enterprise e.g. `https://my.gitlab.server/api/v4/`. It is optional to provide this value and it can also be sourced from the `GITLAB_BASE_URL` environment variable. The value must end with a slash.",
26
-
ValidateFunc: validateApiURLVersion,
27
-
},
28
-
"cacert_file": {
29
-
Type: schema.TypeString,
30
-
Optional: true,
31
-
Default: "",
32
-
Description: "This is a file containing the ca cert to verify the gitlab instance. This is available for use when working with GitLab CE or Gitlab Enterprise with a locally-issued or self-signed certificate chain.",
33
-
},
34
-
"insecure": {
35
-
Type: schema.TypeBool,
36
-
Optional: true,
37
-
Default: false,
38
-
Description: "When set to true this disables SSL verification of the connection to the GitLab instance.",
39
-
},
40
-
"client_cert": {
41
-
Type: schema.TypeString,
42
-
Optional: true,
43
-
Default: "",
44
-
Description: "File path to client certificate when GitLab instance is behind company proxy. File must contain PEM encoded data.",
45
-
},
46
-
"client_key": {
47
-
Type: schema.TypeString,
48
-
Optional: true,
49
-
Default: "",
50
-
Description: "File path to client key when GitLab instance is behind company proxy. File must contain PEM encoded data. Required when `client_cert` is set.",
51
-
},
52
-
"early_auth_check": {
53
-
Type: schema.TypeBool,
54
-
Optional: true,
55
-
Default: true,
56
-
Description: "(Experimental) By default the provider does a dummy request to get the current user in order to verify that the provider configuration is correct and the GitLab API is reachable. Turn it off, to skip this check. This may be useful if the GitLab instance does not yet exist and is created within the same terraform module. This is an experimental feature and may change in the future. Please make sure to always keep backups of your state.",
12
+
funcinit() {
13
+
// Set descriptions to support markdown syntax, this will be used in document generation
Description: "The OAuth2 Token, Project, Group, Personal Access Token or CI Job Token used to connect to GitLab. The OAuth method is used in this provider for authentication (using Bearer authorization token). See https://docs.gitlab.com/ee/api/#authentication for details. It may be sourced from the `GITLAB_TOKEN` environment variable.",
Description: "This is the target GitLab base API endpoint. Providing a value is a requirement when working with GitLab CE or GitLab Enterprise e.g. `https://my.gitlab.server/api/v4/`. It is optional to provide this value and it can also be sourced from the `GITLAB_BASE_URL` environment variable. The value must end with a slash.",
33
+
ValidateFunc: func(valueinterface{}, keystring) (ws []string, es []error) {
es=append(es, fmt.Errorf("terraform-provider-gitlab does not support v3 api; please upgrade to /api/v4 in %s", v))
37
+
}
38
+
return
39
+
},
40
+
},
41
+
"cacert_file": {
42
+
Type: schema.TypeString,
43
+
Optional: true,
44
+
Default: "",
45
+
Description: "This is a file containing the ca cert to verify the gitlab instance. This is available for use when working with GitLab CE or Gitlab Enterprise with a locally-issued or self-signed certificate chain.",
46
+
},
47
+
"insecure": {
48
+
Type: schema.TypeBool,
49
+
Optional: true,
50
+
Default: false,
51
+
Description: "When set to true this disables SSL verification of the connection to the GitLab instance.",
52
+
},
53
+
"client_cert": {
54
+
Type: schema.TypeString,
55
+
Optional: true,
56
+
Default: "",
57
+
Description: "File path to client certificate when GitLab instance is behind company proxy. File must contain PEM encoded data.",
58
+
},
59
+
"client_key": {
60
+
Type: schema.TypeString,
61
+
Optional: true,
62
+
Default: "",
63
+
Description: "File path to client key when GitLab instance is behind company proxy. File must contain PEM encoded data. Required when `client_cert` is set.",
64
+
},
65
+
"early_auth_check": {
66
+
Type: schema.TypeBool,
67
+
Optional: true,
68
+
Default: true,
69
+
Description: "(Experimental) By default the provider does a dummy request to get the current user in order to verify that the provider configuration is correct and the GitLab API is reachable. Turn it off, to skip this check. This may be useful if the GitLab instance does not yet exist and is created within the same terraform module. This is an experimental feature and may change in the future. Please make sure to always keep backups of your state.",
0 commit comments