-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Argocd repository secret creation service refactoring (#6229)
* extracting out chart repository methods * moving repository creation to argocd client package and secret delete code for oci
- Loading branch information
Showing
13 changed files
with
796 additions
and
649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package bean | ||
|
||
const ( | ||
REPOSITORY_SECRET_NAME_KEY = "name" | ||
REPOSITORY_SECRET_URL_KEY = "url" | ||
REPOSITORY_SECRET_USERNAME_KEY = "username" | ||
REPOSITORY_SECRET_PASSWORD_KEY = "password" | ||
REPOSITORY_SECRET_ENABLE_OCI_KEY = "enableOCI" | ||
REPOSITORY_SECRET_TYPE_KEY = "type" | ||
REPOSITORY_TYPE_HELM = "helm" | ||
ARGOCD_REPOSITORY_SECRET_KEY = "argocd.argoproj.io/secret-type" | ||
ARGOCD_REPOSITORY_SECRET_VALUE = "repository" | ||
REPOSITORY_SECRET_INSECURE_KEY = "insecure" | ||
) | ||
|
||
type ChartRepositoryAddRequest struct { | ||
Name string | ||
Username string | ||
Password string | ||
URL string | ||
AllowInsecureConnection bool | ||
IsPrivateChart bool | ||
} | ||
|
||
type ChartRepositoryUpdateRequest struct { | ||
PreviousName string | ||
PreviousURL string | ||
Name string | ||
AuthMode string | ||
Username string | ||
Password string | ||
SSHKey string | ||
URL string | ||
AllowInsecureConnection bool | ||
IsPrivateChart bool | ||
} | ||
|
||
type KeyDto struct { | ||
Name string `json:"name,omitempty"` | ||
Key string `json:"key,omitempty"` | ||
Url string `json:"url,omitempty"` | ||
} | ||
|
||
type AcdConfigMapRepositoriesDto struct { | ||
Type string `json:"type,omitempty"` | ||
Name string `json:"name,omitempty"` | ||
Url string `json:"url,omitempty"` | ||
UsernameSecret *KeyDto `json:"usernameSecret,omitempty"` | ||
PasswordSecret *KeyDto `json:"passwordSecret,omitempty"` | ||
CaSecret *KeyDto `json:"caSecret,omitempty"` | ||
CertSecret *KeyDto `json:"certSecret,omitempty"` | ||
KeySecret *KeyDto `json:"keySecret,omitempty"` | ||
} |
Oops, something went wrong.