diff --git a/api/v1/connection_types.go b/api/v1/connection_types.go index 183073791..8f8e4bedd 100644 --- a/api/v1/connection_types.go +++ b/api/v1/connection_types.go @@ -181,7 +181,7 @@ type ConnectionAzureKeyVault struct { } type ConnectionAzureDevops struct { - URL string `json:"string,omitempty"` + URL string `json:"url,omitempty"` Organization string `json:"organization"` PersonalAccessToken types.EnvVar `json:"personalAccessToken"` } @@ -221,12 +221,12 @@ type ConnectionGitHub struct { } type ConnectionGitLab struct { - URL string `json:"string,omitempty"` + URL string `json:"url,omitempty"` PersonalAccessToken types.EnvVar `json:"personalAccessToken"` } type ConnectionGit struct { - URL string `json:"string"` + URL string `json:"url"` Ref string `json:"ref"` Certificate *types.EnvVar `json:"certificate,omitempty"` Username *types.EnvVar `json:"username,omitempty"` diff --git a/config/crds/mission-control.flanksource.com_connections.yaml b/config/crds/mission-control.flanksource.com_connections.yaml index 37fe5eb64..1ffe09e6e 100644 --- a/config/crds/mission-control.flanksource.com_connections.yaml +++ b/config/crds/mission-control.flanksource.com_connections.yaml @@ -598,7 +598,7 @@ spec: type: string type: object type: object - string: + url: type: string required: - organization @@ -1079,7 +1079,7 @@ spec: type: object ref: type: string - string: + url: type: string username: properties: @@ -1126,7 +1126,7 @@ spec: type: object required: - ref - - string + - url type: object github: properties: @@ -1223,7 +1223,7 @@ spec: type: string type: object type: object - string: + url: type: string required: - personalAccessToken diff --git a/config/schemas/connection.schema.json b/config/schemas/connection.schema.json index 037714586..eecf08024 100644 --- a/config/schemas/connection.schema.json +++ b/config/schemas/connection.schema.json @@ -165,7 +165,7 @@ }, "ConnectionAzureDevops": { "properties": { - "string": { + "url": { "type": "string" }, "organization": { @@ -265,7 +265,7 @@ }, "ConnectionGit": { "properties": { - "string": { + "url": { "type": "string" }, "ref": { @@ -284,7 +284,7 @@ "additionalProperties": false, "type": "object", "required": [ - "string", + "url", "ref" ] }, @@ -305,7 +305,7 @@ }, "ConnectionGitLab": { "properties": { - "string": { + "url": { "type": "string" }, "personalAccessToken": {