Skip to content

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

}

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?


//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

@sonarqubecloud
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.

3 participants