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

Use sed as alternative to jq #303

Merged
merged 1 commit into from
Aug 4, 2022
Merged

Conversation

donatwork
Copy link
Contributor

Description

Add alternative method to extract the token and convert to YAML format. Added note in both Helm and RPM deployment sections. There are more than one way to do this but felt that sed is in all major distributions and not everyone may use Python's json module which is another option I thought about.

Testing

  • Compared output of original command and new alternative. The output is the same except for a newline at the top and bottom with the new approach. Not an issue as YAML is tolerant of blank lines. Did not want to add complexity to the sed command.
  • Imported secret into Kubernetes without error.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
dell/csm#390

Checklist:

  • Have you run a grammar and spell checks against your submission?
  • Have you tested the changes locally?
  • Have you tested whether the hyperlinks are working properly?
  • Did you add the examples wherever applicable?
  • [n/a] Have you added high-resolution images?

@@ -13,7 +13,7 @@ The following CSM Authorization components are installed in the specified namesp
- role-service, which configures roles for tenants to be bound to
- storage-service, which configures backend storage arrays for the proxy-server to foward requests to

The folloiwng third-party components are installed in the specified namespace:
The following third-party components are installed in the specified namespace:

Choose a reason for hiding this comment

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

Change ""The following" to "These"

@@ -215,10 +215,10 @@ karavictl generate token --tenant Finance --insecure --addr tenant.csm-authoriza
}
```

With [jq](https://stedolan.github.io/jq/), you process the above response to filter the secret manifest. For example:
Process the above response to filter the secret manifest. For example using sed you can run the following:

Choose a reason for hiding this comment

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

Delete "above". Change "the following" to "this"

Copy link

@rsedlock1958 rsedlock1958 left a comment

Choose a reason for hiding this comment

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

I have reviewed this. Just a few minor edits.

@donatwork donatwork requested a review from atye August 3, 2022 12:01
@donatwork donatwork merged commit 9376fef into release-1.4-updated Aug 4, 2022
@donatwork donatwork deleted the bugfix-390-jq-removal branch August 4, 2022 19:43
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.

5 participants