You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`config install` and `config uninstall` operate on the currently connected Kubernetes cluster.
187
-
`config install` expects an Upbound-format XRD project when building from source via `--path` or `--repo`.
153
+
154
+
There are two different `config install` modes:
155
+
156
+
- Source-build mode via `--path` or `--repo` builds an Upbound-format XRD project locally, pushes the package through the local registry flow, and is intended for a local control plane started with `hops local start`.
157
+
- Remote-package mode via `--repo ... --version ...` skips the build and applies a pinned package reference directly, so it can work against non-local connected clusters too.
188
158
189
159
Common install flows:
190
160
@@ -196,23 +166,26 @@ hops config install
196
166
hops config install --path /path/to/project
197
167
198
168
# Build from a cached GitHub repo checkout containing an Upbound-format XRD project
-`--reload` only applies to source installs: `--path` or `--repo` without `--version`.
197
+
-`--skip-dependency-resolution` sets `spec.skipDependencyResolution=true` on the generated `Configuration`.
224
198
-`config install --repo ... --version ...` skips clone/build and applies the remote package directly.
225
199
-`config uninstall --repo ...` derives the configuration name as `<org>-<repo>`.
226
200
@@ -244,21 +218,26 @@ Notes:
244
218
- Prompts for confirmation, then runs `brew uninstall colima`.
245
219
-`config install [--path <PATH>] [--reload]`
246
220
- Targets the currently connected Kubernetes cluster
221
+
- Source-build mode intended for a local control plane because it depends on the local registry flow
247
222
- Runs `up project build` in `PATH` (defaults to current directory)
248
223
- Loads generated `.uppkg` artifacts from `<PATH>/_output`
249
224
- Pushes package images to the registry exposed at `localhost:30500`
250
225
- Applies Crossplane `Configuration` resources pointing at `registry.crossplane-system.svc.cluster.local:5000/...`
226
+
- Supports `--skip-dependency-resolution`
251
227
-`config install --repo <org/repo> [--reload]`
228
+
- Source-build mode intended for a local control plane because it depends on the local registry flow
252
229
- Uses local repo cache at `~/.hops/local/repo-cache/<org>/<repo>`
253
230
- Clones on first use, then fetches/pulls on subsequent runs
254
231
- Runs the same build/load/push/apply flow as `--path`
255
232
-`--reload`
256
233
- Forces source-based config install (`--path` or `--repo` without `--version`) to delete existing `ConfigurationRevision` resources and matching `Function`/`FunctionRevision` package resources from the same sources, then re-apply the `Configuration`
257
234
- Useful when re-running a config and you want Crossplane to re-create the current revision from source
0 commit comments