Skip to content

Commit

Permalink
Merge pull request #2753 from replicatedhq/114155
Browse files Browse the repository at this point in the history
Clarify that local registry template functions can also return Embedded Cluster/kURL registries
  • Loading branch information
paigecalvert authored Nov 13, 2024
2 parents 7000f7b + d9a9189 commit e615188
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 49 deletions.
2 changes: 1 addition & 1 deletion docs/reference/cron-expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,4 @@ The following examples show valid cron expressions to schedule checking for upda

```
@every 1h45m
```
```
9 changes: 5 additions & 4 deletions docs/reference/template-functions-config-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,17 @@ This will always return everything before the image name and tag.
func LocalRegistryHost() string
```

Returns the local registry host that's configured.
This will include port if one is specified.
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.

Includes the port if one is specified.

## LocalRegistryNamespace

```go
func LocalRegistryNamespace() string
```

Returns the local registry namespace that's configured.
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.

## LocalImageName

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

0 comments on commit e615188

Please sign in to comment.