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
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/index.adoc
+5-19Lines changed: 5 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,31 +178,17 @@ $ mkdir -p commodore
178
178
$ cd commodore
179
179
----
180
180
181
-
=== Compiling the Commodore Catalog
181
+
==== Preparing the working directory
182
182
183
-
The first step to create a Commodore Component is what is usually referred to as "compiling the catalog." This catalog provides a unique reference point of information about all the configuration and workloads affecting a single cluster.
183
+
The easiest way to prepare a working directory for Commodore is to compile a cluster catalog. This operation will create all the directories which Commodore expects to be present when creating a new component. The following command will compile the catalog for one of the clusters which we've created previously.
184
184
185
185
[source,bash]
186
186
----
187
-
$ kubectl --context minikube -n lieutenant get cluster
$ CLUSTER_ID=$(kubectl --context minikube -n lieutenant get cluster --no-headers -o custom-columns="NAME:.metadata.name" | head -n1)
188
+
$ commodore catalog compile ${CLUSTER_ID}
201
189
----
202
190
203
-
We must repeat this operation for each cluster, and of course, you should use the cluster IDs you got from the last `kubectl` command above.
204
-
205
-
TIP: You can use the `commodore_compile_all` command instead!
191
+
We don't have to repeat this operation for each cluster. But if you wanted, you can use the `commodore_compile_all` command instead. This command was created when you `source commodore_command.sh` previously.
0 commit comments