Bug 1216820 - [doc] Issue in "The values.yaml file"
Summary: [doc] Issue in "The values.yaml file"
Status: RESOLVED DUPLICATE of bug 1216821
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP4
Classification: openSUSE
Component: Documentation (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Tomáš Bažant
QA Contact: Frank Sundermeyer
URL:
Whiteboard: https://jira.suse.com/browse/DOCTEAM-...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-02 13:28 UTC by Kristofer Lundgren
Modified: 2024-02-06 15:08 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kristofer Lundgren 2023-11-02 13:28:16 UTC
The values.yaml file:

https://documentation.suse.com/sles/15-SP4/html/SLES-all/cha-rmt-installation.html#sec-rmt-deploy-kubernetes-values

---

# 1. The example yaml-file syntax is incorrect when it comes to the ingress part.

Your example:
8<---
ingress:
  enabled: true
hosts:
   - host: chart-example.local
     paths:
     - path: "/"
       pathType: Prefix
tls:
  secretName: rmt-cert
  hosts:
    - chart-example.local
8<---

"hosts" and "tls" are part of the "ingress" definition and must be indented.
Also "tls" supports multiple instances if "secretName", i.e., it should be preceded with "- ".

This is an example it the "ingress" part of the yaml file that works as expected:

8<--
ingress:
  enabled: true
  hosts:
    - host: chart-example.local
      paths:
        - path: "/"
          pathType: Prefix
  tls:
    - secretName: rmt-cert
      hosts:
        - chart-example.local
8<---

---

# 2. Faulty documentation regarding the SUSE RMT server:

The RMT server, as deployed using the Helm chart does not support navigating through the directory structure using a web-browser as described here:

https://documentation.suse.com/sles/15-SP4/html/SLES-all/cha-rmt-client.html#rmt-client-custom-repo

"Navigate the browser through the directory structure to your custom repository's repodata/ subdirectory."

---

Please update the erroneous docs, and please implement directory browsing in the RMT server.

Best regards,
/Kristofer Lundgren
Comment 1 Tomáš Bažant 2023-11-30 13:29:29 UTC
Thank you for reporting this bug!
It is being tracked and processed as part of our queue.
Comment 2 Tomáš Bažant 2024-01-24 10:17:53 UTC
(In reply to Kristofer Lundgren from comment #0)
> The values.yaml file:
> 
> https://documentation.suse.com/sles/15-SP4/html/SLES-all/cha-rmt-
> installation.html#sec-rmt-deploy-kubernetes-values
> 
> ---
> 
> # 1. The example yaml-file syntax is incorrect when it comes to the ingress
> part.
> 
> Your example:
> 8<---
> ingress:
>   enabled: true
> hosts:
>    - host: chart-example.local
>      paths:
>      - path: "/"
>        pathType: Prefix
> tls:
>   secretName: rmt-cert
>   hosts:
>     - chart-example.local
> 8<---
> 
> "hosts" and "tls" are part of the "ingress" definition and must be indented.
> Also "tls" supports multiple instances if "secretName", i.e., it should be
> preceded with "- ".
> 
> This is an example it the "ingress" part of the yaml file that works as
> expected:
> 
> 8<--
> ingress:
>   enabled: true
>   hosts:
>     - host: chart-example.local
>       paths:
>         - path: "/"
>           pathType: Prefix
>   tls:
>     - secretName: rmt-cert
>       hosts:
>         - chart-example.local
> 8<---


I've checked it and the online version is the meantime in sync with what you've suggested here
Comment 3 Natnael Getahun 2024-01-24 15:41:29 UTC
Hi Kristofer,
I used the sample snippet given on the docs and everything seems to work out of the box. I don't know where you get the indentation issue but the docs seems perfectly self contained. As for walking the mirrored directory via a web ui, it's dependent on the ingress networking you've set up. Please check if the FQDN is right and ensure your load balancers can route to the ingress controller.

Best,
Natnael Getahun
Comment 4 Kristofer Lundgren 2024-01-24 16:01:38 UTC
Hi Natnael,

The documentation regarding the values.yaml file was fixed here:

- https://bugzilla.suse.com/show_bug.cgi?id=1216193

I created a separate ticket regarding the SUSE RMT Helm chart web browser issue here:

- https://bugzilla.suse.com/show_bug.cgi?id=1216821

You may close this ticket and focus on 1216821.
(The ingress is properly configured (I can download individual files) but the RMT server does not support directory browsing.)
Comment 5 Tomáš Bažant 2024-01-30 09:52:48 UTC
*** Bug 1216821 has been marked as a duplicate of this bug. ***
Comment 6 Tomáš Bažant 2024-02-06 15:08:00 UTC
marking as duplicate

*** This bug has been marked as a duplicate of bug 1216821 ***