Skip to content

Commit e23eb23

Browse files
committed
feat: add insecure and caRef to generator Gitlab
1 parent 5bd3123 commit e23eb23

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

argocd/schema_application_set.go

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,18 @@ func applicationSetPullRequestGeneratorSchemaV0() *schema.Schema {
994994
MaxItems: 1,
995995
Elem: secretRefResource(),
996996
},
997+
"insecure": {
998+
Type: schema.TypeBool,
999+
Description: "A flag for checking the validity of the SCM's certificates.",
1000+
Required: true,
1001+
Default: false,
1002+
},
1003+
"ca_ref": {
1004+
Type: schema.TypeList,
1005+
Description: "Authentication token reference.",
1006+
Optional: true,
1007+
Elem: configMapRefResource(),
1008+
},
9971009
},
9981010
},
9991011
},
@@ -1078,3 +1090,20 @@ func secretRefResource() *schema.Resource {
10781090
},
10791091
}
10801092
}
1093+
1094+
func configMapRefResource() *schema.Resource {
1095+
return &schema.Resource{
1096+
Schema: map[string]*schema.Schema{
1097+
"key": {
1098+
Type: schema.TypeString,
1099+
Description: "Key containing information in trusted CA certs.",
1100+
Required: true,
1101+
},
1102+
"config_map_name": {
1103+
Type: schema.TypeString,
1104+
Description: "Name of the ConfigMap.",
1105+
Required: true,
1106+
},
1107+
},
1108+
}
1109+
}

0 commit comments

Comments
 (0)