Skip to content

Commit e615188

Browse files
authored
Merge pull request #2753 from replicatedhq/114155
Clarify that local registry template functions can also return Embedded Cluster/kURL registries
2 parents 7000f7b + d9a9189 commit e615188

File tree

3 files changed

+96
-49
lines changed

3 files changed

+96
-49
lines changed

docs/reference/cron-expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,4 @@ The following examples show valid cron expressions to schedule checking for upda
149149
150150
```
151151
@every 1h45m
152-
```
152+
```

docs/reference/template-functions-config-context.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,17 @@ This will always return everything before the image name and tag.
164164
func LocalRegistryHost() string
165165
```
166166

167-
Returns the local registry host that's configured.
168-
This will include port if one is specified.
167+
Returns the host of the local registry that the user configured. Alternatively, for air gap installations with Replicated Embedded Cluster or Replicated kURL, LocalRegistryHost returns the host of the built-in registry.
168+
169+
Includes the port if one is specified.
169170

170171
## LocalRegistryNamespace
171172

172173
```go
173174
func LocalRegistryNamespace() string
174175
```
175176

176-
Returns the local registry namespace that's configured.
177+
Returns the namespace of the local registry that the user configured. Alternatively, for air gap installations with Embedded Cluster or kURL, LocalRegistryNamespace returns the namespace of the built-in registry.
177178

178179
## LocalImageName
179180

@@ -257,4 +258,4 @@ func HasLocalRegistry() bool
257258
```
258259
259260
Returns true if the environment is configured to rewrite images to a local registry.
260-
This is true for air gapped installations, and optionally true for online installations.
261+
HasLocalRegistry is always true for air gap installations. HasLocalRegistry is true in online installations if the user pushed images to a local registry.

0 commit comments

Comments
 (0)