Skip to content
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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

ashishdevtron
Copy link
Contributor

No description provided.

go.mod Outdated
Comment on lines 25 to 29
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
Copy link
Member

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

K8sVersion string `sql:"k8s_version"`
ErrorInConnecting string `sql:"error_in_connecting"`
InsecureSkipTlsVerify bool `sql:"insecure_skip_tls_verify"`
ClusterConnectionConfig *repository.ServerConnectionConfig
Copy link
Member

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

Comment on lines 42 to 48
func (repo *ServerConnectionRepositoryImpl) Save(model *ServerConnectionConfig) error {
return repo.dbConnection.Insert(model)
}

func (repo *ServerConnectionRepositoryImpl) Update(model *ServerConnectionConfig) error {
return repo.dbConnection.Update(model)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

Comment on lines +160 to +165
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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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

Copy link

sonarqubecloud bot commented Apr 2, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants