Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cva dev #593

Closed
wants to merge 12 commits into from
Closed

cva dev #593

wants to merge 12 commits into from

Conversation

cgalibern
Copy link
Contributor

No description provided.

drivers/resvol/main.go:364:7: github.com/opensvc/om3/util/key.T struct literal uses unkeyed fields
One less breaking change, freeing the "dns" object name again,
same as b2.1

Also coherent with "om daemon relay status" commande location
in the command tree.
coloring functions and icons where renderer before color.noColor is set,
so ended up always colored.
Also drop the --config flag.
And move daemon/ccfg.getClusterConfig() to core/cluster.GetConfig(), so
it can be called from the CRM too.
So ox can use this func without requiring the object mod.
viper was used to load:

* /etc/{default,sysconfig}/opensvc
  for OSVC_ROOT_PATH, OSVC_CLUSTERNAME
  => replace by direct use of gotenv.ParseStrict(), the mod that vipers
     imports.

* /etc/cluster.conf
  for caching of NodeSection and ClusterSection
  => the daemon already switched to cluster.ConfigData for this caching.
     just teach the CRM to use directly object.Ccfg.Config

* ~/.opensvc/config.yaml
  for output colors.
  => Use OSVC_COLORS=primary=blue:secondary=yellow env var instead, like
     the ls command does.

Related changes:

* rawconfig.LoadSection() is dropped.

* clusternode.Get() is no longer used.

* client.New() does no longer know how to get the cluster secret, so the
  caller must set it with the WithPassword() funcopt.

* New resource manifest context keys: ContextObjectFQDN and
  ContextObjectDomain.

* nodeselector now only look at the nodes_info.json to find cluster
  nodes.

* replace omcrypto.Message type with omcrypto.Factory that implement the
  encryptDecrypter interface required by the sec and usr object kinds.
Newer symcli don't accept MB captype anymore.
@cgalibern cgalibern closed this Sep 26, 2024
@cgalibern cgalibern deleted the cva-rb1 branch September 27, 2024 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants