Skip to content

Author and user configuration #95

@coryodaniel

Description

@coryodaniel

This will probably be more of an epic. This is a stream of conciousness

  • All operator-user configuration should be accessible via environment variables
    • BONNY_POD_NAMESPACE
    • BONNY_POD_SERVICE_ACCOUNT
    • Bonny.Config.labels
    • Bonny.Config.cluster_name
  • Devise a consistent naming pattern for configuration to separate operator author from operator user. eg group name is an author config, pod namespace is a user config
  • A few env vars are set that are metadata for the cluster, delineate those. (BONNY_POD_NAME, BONNY_POD_IP)
  • BONNY_POD_NAMESPACE is confusing, its controls the namespace bonny watches
  • "BONNY" shouldn't be something an end-user of an operator should be concerned with, support an env var prefix for each operator
  • Split Bonny.Config into ~Bonny.Config.EndUser and ~Bonny.Config.Author (names are hard)

Splitting may be as simple as all author config is compile time config, so do it via config/prod.exs and all user config is runtime, so use env vars.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions