Skip to content

Commit

Permalink
fix: connection CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe authored and moshloop committed Feb 3, 2025
1 parent 9e08794 commit e94c0b7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions api/v1/connection_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down Expand Up @@ -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"`
Expand Down
8 changes: 4 additions & 4 deletions config/crds/mission-control.flanksource.com_connections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ spec:
type: string
type: object
type: object
string:
url:
type: string
required:
- organization
Expand Down Expand Up @@ -1079,7 +1079,7 @@ spec:
type: object
ref:
type: string
string:
url:
type: string
username:
properties:
Expand Down Expand Up @@ -1126,7 +1126,7 @@ spec:
type: object
required:
- ref
- string
- url
type: object
github:
properties:
Expand Down Expand Up @@ -1223,7 +1223,7 @@ spec:
type: string
type: object
type: object
string:
url:
type: string
required:
- personalAccessToken
Expand Down
8 changes: 4 additions & 4 deletions config/schemas/connection.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
},
"ConnectionAzureDevops": {
"properties": {
"string": {
"url": {
"type": "string"
},
"organization": {
Expand Down Expand Up @@ -265,7 +265,7 @@
},
"ConnectionGit": {
"properties": {
"string": {
"url": {
"type": "string"
},
"ref": {
Expand All @@ -284,7 +284,7 @@
"additionalProperties": false,
"type": "object",
"required": [
"string",
"url",
"ref"
]
},
Expand All @@ -305,7 +305,7 @@
},
"ConnectionGitLab": {
"properties": {
"string": {
"url": {
"type": "string"
},
"personalAccessToken": {
Expand Down

0 comments on commit e94c0b7

Please sign in to comment.