-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added support for connecting to registries behind proxy or ssh servers #121
base: main
Are you sure you want to change the base?
Conversation
version up for helm package
go.mod
Outdated
helm.sh/helm/v3 v3.14.2 | ||
k8s.io/api v0.29.0 | ||
k8s.io/apimachinery v0.29.0 | ||
k8s.io/cli-runtime v0.29.0 | ||
k8s.io/client-go v0.29.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we updating this? not recommended . Need to revert these
pkg/cluster/ClusterRepository.go
Outdated
K8sVersion string `sql:"k8s_version"` | ||
ErrorInConnecting string `sql:"error_in_connecting"` | ||
InsecureSkipTlsVerify bool `sql:"insecure_skip_tls_verify"` | ||
ClusterConnectionConfig *repository.ServerConnectionConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backward compatibility will be needed here
func (repo *ServerConnectionRepositoryImpl) Save(model *ServerConnectionConfig) error { | ||
return repo.dbConnection.Insert(model) | ||
} | ||
|
||
func (repo *ServerConnectionRepositoryImpl) Update(model *ServerConnectionConfig) error { | ||
return repo.dbConnection.Update(model) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
func (impl HelmAppServiceImpl) GetNewRegistryClient(registryCredential *client.RegistryCredential) (*registry.Client, *client.RegistryCredential, error) { | ||
registryClient, err := registry.NewClient() | ||
if err != nil { | ||
return nil, nil, err | ||
} | ||
return registryClient, registryCredential, err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like no significance of registryCredential in this method
@@ -103,16 +104,16 @@ type HelmAppService interface { | |||
} | |||
|
|||
type HelmAppServiceImpl struct { | |||
logger *zap.SugaredLogger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason for converting these to uppercase?
@@ -826,9 +835,11 @@ func (impl HelmAppServiceImpl) installRelease(ctx context.Context, request *clie | |||
} | |||
|
|||
//oci registry client | |||
registryClient, err := registry.NewClient() | |||
var registryClient *registry.Client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove this since this is to be get by method
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
No description provided.