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
I propose a change to the Nats JetStream scaler, where the account ID can be specified from an external resource, such as a secret.
Use-Case
I'm running a NATS Cluster with several (dynamically created) tenants, running with a self-designed authentication server (github.com/deinstapel/nats-jwt-operator), where the Account IDs are not known in advance. My Operator dynamically creates NATS tenants and accounts with a kubernetes CRD and writes the account IDs into the .status of the CRD as well as to a secret.
I would like to be able to tell KEDA to scale based on these accounts, so I can include KEDA in my CD pipeline.
Is this a feature you are interested in implementing yourself?
Right now, NATS JetStream scaler doesn't read that value from TriggerAuthentication/ClusterTriggerAuthentication but it can be done changing this code:
ifconfig.TriggerMetadata["account"] =="" {
returnmeta, errors.New("no account name given")
}
meta.account=config.TriggerMetadata["account"]
Proposal
I propose a change to the Nats JetStream scaler, where the account ID can be specified from an external resource, such as a secret.
Use-Case
I'm running a NATS Cluster with several (dynamically created) tenants, running with a self-designed authentication server (github.com/deinstapel/nats-jwt-operator), where the Account IDs are not known in advance. My Operator dynamically creates NATS tenants and accounts with a kubernetes CRD and writes the account IDs into the .status of the CRD as well as to a secret.
I would like to be able to tell KEDA to scale based on these accounts, so I can include KEDA in my CD pipeline.
Is this a feature you are interested in implementing yourself?
Yes
Anything else?
Example:
Currently existing code:
Possible new implementation:
The text was updated successfully, but these errors were encountered: