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

Fixing port when default configuration is selected. #21

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

2niknatan
Copy link
Contributor

Fixing the print with 'http error' in 'PrintPrettyHttpResponse' function.

Desired Outcome

Fixing port when default configuration is selected.
Fixing the print with 'http error' in 'PrintPrettyHttpResponse' function.

Implemented Changes

Fixing the port issue when default kube config file is selected.

Fixing port when default configuration is selected.
Fixing the print with 'http error' in 'PrintPrettyHttpResponse' function.

Connected Issue/Story

Resolves #[relevant GitHub issue(s), e.g. 76]

CyberArk internal issue link: insert issue ID

Definition of Done

At least 1 todo must be completed in the sections below for the PR to be
merged.

Changelog

  • The CHANGELOG has been updated, or
  • This PR does not include user-facing changes and doesn't require a
    CHANGELOG update

Test coverage

  • This PR includes new unit and integration tests to go with the code
    changes, or
  • The changes in this PR do not require tests

Documentation

  • Docs (e.g. READMEs) were updated in this PR
  • A follow-up issue to update official docs has been filed here: insert issue ID
  • This PR does not require updating any documentation

Behavior

  • This PR changes product behavior and has been reviewed by a PO, or
  • These changes are part of a larger initiative that will be reviewed later, or
  • No behavior was changed with this PR

Security

  • Security architect has reviewed the changes in this PR,
  • These changes are part of a larger initiative with a separate security review, or
  • There are no security aspects to these changes

Fixing the print with 'http error' in 'PrintPrettyHttpResponse' function.
@@ -164,7 +164,8 @@ func initConfig() {
&clientcmd.ConfigOverrides{},
)
config, err = kubeConfig.ClientConfig()
if err != nil && len(os.Getenv(clientcmd.RecommendedConfigPathEnvVar)) > 0 {
// TODO: should fail when YAML is wrong, like with ":"
if err != nil { //&& len(os.Getenv(clientcmd.RecommendedConfigPathEnvVar)) > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

You added a comment as part of your checks, I will fix it

@g3rzi g3rzi merged commit dd72632 into cyberark:master Sep 12, 2022
g3rzi added a commit that referenced this pull request Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants