-
Notifications
You must be signed in to change notification settings - Fork 31
edit optionalvalues steps in helmchart v2 doc #3579
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
base: main
Are you sure you want to change the base?
Conversation
# The default location for the SDK image is | ||
# proxy.replicated.com/library/replicated-sdk-image | ||
repository: '{{repl LocalRegistryNamespace }}/library/replicated-sdk-image' | ||
repository: '{{repl LocalRegistryNamespace }}/replicated-sdk-image' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated based on what I see here https://github.com/slackernews/slackernews/blob/main/kots/slackernews-chart.yaml#L55
The following describes how to configure the image registry and repository fields: | ||
* For the `when` statement, use the [HasLocalRegistry](/reference/template-functions-config-context#haslocalregistry) template function to evaluate if a local registry is configured. | ||
* For the image registry, use the [LocalRegistryHost](/reference/template-functions-config-context#localregistryhost) template function to inject the local registry's hostname. | ||
* For the image repository, use the [LocalRegistryNamespace](/reference/template-functions-config-context#localregistrynamespace) template function to inject the local registry's namespace, followed by the image name and any tags. For example, for an image located at `registryhostname.com/namespace/more-path/name:tag`, set the repository in `optionalValues` to `'{{repl LocalRegistryNamespace }}'/name:tag`. You do not need to include the full path because KOTS automatically strips everything from the image name except `name:tag` when pushing an image to a local registry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^ adds explanation of how to configure each field to rewrite the image name for local registries
✅ Deploy Preview for replicated-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for replicated-docs-upgrade ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
<summary>What is the registry namespace?</summary> | ||
The registry namespace is the path between the registry and the image name. For example, `images.registry.com/namespace/image:tag`. | ||
</details> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^ I think probably can remove this in favor of the new explanation of how to construct the repository path
https://deploy-preview-3579--replicated-docs.netlify.app/vendor/helm-native-v2-using#configure-a-release-to-support-helmchart-v2-installations