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

add README for helm container image #1276

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

Priyankasaggu11929
Copy link
Member

PR adds documentation for using the helm container image available at https://registry.suse.com/repositories/suse-helm

Part of #993

@Priyankasaggu11929 Priyankasaggu11929 force-pushed the add-helm-container-readme branch 4 times, most recently from 18cb802 to 2d842e0 Compare June 13, 2024 12:20
@@ -0,0 +1,107 @@
# {{ image.pretty_name }} Container Image
Copy link
Member

Choose a reason for hiding this comment

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

#1272 is replacing "Container Image" with "container image" for consistency.


{% include 'badges.j2' %}

This image packages the [Helm](https://helm.sh/) binary, a [Kubernetes](https://kubernetes.io/) package manager that helps manage Kubernetes applications.
Copy link
Member

Choose a reason for hiding this comment

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

This line is not needed, the description mentions the same thing.


## Usage

To pull Helm container image from the SUSE registry and start an interactive shell:
Copy link
Member

@alexandrevicenzi alexandrevicenzi Jun 13, 2024

Choose a reason for hiding this comment

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

To start an interactive shell, use the following command:

Since we can run helm directly without an interactive shell it could be:

To run Helm, use the following command:

To pull Helm container image from the SUSE registry and start an interactive shell:

```ShellSession
podman run --rm -it --entrypoint /bin/sh {{ image.pretty_reference }}
Copy link
Member

Choose a reason for hiding this comment

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

I feel that this is not the ideal command.

I would like to use this way:

podman run <helm-image> helm <subcommand>

Is this possible? If yes, it is a better example.

Copy link
Member

Choose a reason for hiding this comment

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

Indeed we can use the following way:

docker run -it --rm registry.suse.com/suse/helm status

podman run --rm -it --net=host -v /path/to/kubeconfig:/root/.kube/config --entrypoint /bin/sh {{ image.pretty_reference }}
```

### Using Helm in the Container
Copy link
Member

Choose a reason for hiding this comment

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

This entire section feels weird if we can run as follows:

podman run <helm-image> helm <subcommand>

We don't need to teach all Helm commands here as it is available in official docs.

helm repo remove examples
```

### Some Important Environment Variables
Copy link
Member

Choose a reason for hiding this comment

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

Just use "Environment Variables".

This section should include all meaning variables, not just some.

The current way we style this section is:

## Environment Variables

Some info

### VARIABLE_NAME

Some more info

Honestily, the container does not define any Environment Variables, it is all from Helm binary, it might be better to skip explaining variables here and just send users directly into Helm docs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Honestily, the container does not define any Environment Variables, it is all from Helm binary, it might be better to skip explaining variables here and just send users directly into Helm docs.

@alexandrevicenzi, I had the same feeling.
Just that, I don't know what else to add in the README other than, just describing that this container ship helm binary, and that's pretty much all.
The section about making helm container work with a local kubernetes cluster could be another thing to keep.

But for rest everything, I'm fine dropping the text & directly point to the official Helm documentation.

WDYT?

Copy link
Member

Choose a reason for hiding this comment

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

Some containers are indeed basic, we have similar ones with just a short summary, and I believe that it is ok.


## Official Helm Tutorial

For a comprehensive guide on getting started with Helm, refer to the [official Helm tutorial](https://helm.sh/docs/chart_template_guide/getting_started/).
Copy link
Member

Choose a reason for hiding this comment

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

this sentence should probably be in the usage section.

@Priyankasaggu11929
Copy link
Member Author

@alexandrevicenzi, thanks for the review. Addressed comments in the latest refresh.

@dirkmueller dirkmueller merged commit d443271 into SUSE:main Jun 13, 2024
4 of 8 checks passed
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