Replies: 5 comments 15 replies
-
|
datalust/seq-tickets#2499 (reply in thread)
It's going to do both. But it will do conf first |
Beta Was this translation helpful? Give feedback.
-
|
So, my plan is to start with an Instance type (seqinstance), which starts out by requiring connection information to an existing instance. A URI and a reference to a secret. Then every other document type, such as, probably ApiKey, will have an instanceRef pointing to that primary Instance document. And those will drive out configuration. Later, the Instance type can evolve that an existing hostname is optional, and instead, you can put the definition of a new instance in the Spec. |
Beta Was this translation helpful? Give feedback.
-
where the secret has username/password; or: where the secret has apikey |
Beta Was this translation helpful? Give feedback.
-
|
So, here's the design I've got. All of the entities in Seq that are configurable have a string 'Id' property. So, there's a big inheritence hierarchy to keep it all clear. Each entity type (such as ApiKeys) will implement V1Alpha1InstanceEntity. There is a common V1Alpha1InstanceEntitySpec and V1Alpha1InstanceEntityStatus type. These are generic. Spec has standard properties of 'instanceRef' of type V1Alpha1InstanceReference, which is a pointer to a V1Alpha1Instance item, potentially cross namespace. So, InstanceEntities known so far: ApiKey Each inherits from V1Alpha1InstanceEntity. This always required V1Alpha1InstanceEntitySpec always provides two typed properties: V1Alpha1InstanceEntityStatus is similar, and has a 'info' property. This represents the information to be pulled from Seq and exposed in K8s. So, as example, for ApiKey:
So that's what the entities that are within a Seq instance look like. All will obey the same patterns. The V1Alpha1Instance item specifies two things: how to connect to a Seq instance, or how to deploy a Seq instance. The above is an example of an Instance that specifies a remote Seq to connect to. The above is an Instance that specifies to deploy a new Seq instance in the cluster. Within |
Beta Was this translation helpful? Give feedback.
-
This configuration works now. First login happens as firstRunPassword. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Discussion for start of design.
Beta Was this translation helpful? Give feedback.
All reactions