Giter VIP home page Giter VIP logo

mcg-osd-deployer's People

Contributors

achouhan09 avatar aspandey avatar avanthakkar avatar jmolmo avatar naveenpaul1 avatar openshift-ci[bot] avatar openshift-merge-robot avatar rexagod avatar v-harihar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mcg-osd-deployer's Issues

Test out `external_labels` functionality for Prometheus CR

I think that using the external_labels setting in prometheus configuration would fit very well with our requirements, (and less code is always better.) In any case your proposal is ok for me.

https://prometheus.io/docs/prometheus/latest/configuration/configuration/

# The labels to add to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
    [ [<labelname>]: [<labelvalue>]

Originally posted by @jmolmo in #69 (comment)

Add tests for RHOBS support.

Can we test this as well like so: https://github.com/red-hat-storage/ocs-osd-deployer/pull/240/files#diff-1d409d0b85193d4fa78899757bfc7c41ce41a06da0fb1f48d01d4cf7187ce654?

I have tried without success. Something weird in our test, the instance r of "ManagedMCGReconciler" is not the same that the one used "inside" r.reconcile. However i have verified that the modifications to "WriteRelabelConfigs" are applied successfully.
I have though to refactor completelly the test, but that will take some time, and this seems to be urgent.
I will ping you tomorrow to review the problem with you ( maybe i miss something :-)

Originally posted by @jmolmo in #75 (comment)

Missing init of "ManagedMCGReconciler.odfOperatorManagerconfigMap.Data" ?

After reading through the code and result of make run, I see Internals members of ManagedMCGReconciler.odfOperatorManagerconfigMap are not initialized. I below function, r.odfOperatorManagerconfigMap.Data["ODF_SUBSCRIPTION_NAME"] is accessed but did not find the place where it is initialized.

func (r *ManagedMCGReconciler) reconcileODFOperatorMgrConfig() error {
	r.Log.Info("Reconciling odf-operator-manager-config ConfigMap")
	_, err := ctrl.CreateOrUpdate(r.ctx, r.Client, r.odfOperatorManagerconfigMap, func() error {
		r.odfOperatorManagerconfigMap.Data["ODF_SUBSCRIPTION_NAME"] = "odf-operator-stable-4.9-redhat-operators-openshift-marketplace"
		r.odfOperatorManagerconfigMap.Data["NOOBAA_SUBSCRIPTION_STARTINGCSV"] = "mcg-operator.v4.9.2"

		return nil
	})
	if err != nil {
		return err
	}
	return nil
}

Do we require to init it ? like below ?

func (r *ManagedMCGReconciler) initReconciler(req ctrl.Request) {
        r.managedMCG.Namespace = r.namespace
 
        r.odfOperatorManagerconfigMap = &corev1.ConfigMap{}
+       r.odfOperatorManagerconfigMap.Data = make(map[string]string)
        r.odfOperatorManagerconfigMap.Name = odfOperatorManagerconfigMapName
        r.odfOperatorManagerconfigMap.Namespace = r.namespace

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.