-
Notifications
You must be signed in to change notification settings - Fork 763
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
Deprecate grafana field and add log info warning #1192
Conversation
0aee209
to
7d826a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- See proposed tweak to the deprecation warning, in all the places where it is used.
- Actually, come to think of it, it couldn't hurt to put this message in a
string
constant.
- Actually, come to think of it, it couldn't hurt to put this message in a
grafana.go
incontrollers/argocd
can also be deleted, AFAICT.- You can also search the code for 'grafana', as I think there are some unused constants that can be removed here, too.
@Rizwana777: to fix the failing PR checks:
|
5b39bde
to
468c553
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably remove the remaining Grafana references/artifacts. I was able to find these, for example, by searching for 'grafana':
- Dockerfile entries in multiple Dockerfiles
.md
files under/docs
grafana/
directoryGRAFANA_CONFIG_PATH
@jgwest removed most of the files and contents related to grafana, PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more minor items I found going over the changes, then good to go
5d9a104
to
2a9bcb4
Compare
Signed-off-by: Rizwana777 <rizwananaaz177@gmail.com>
Signed-off-by: Rizwana777 <rizwananaaz177@gmail.com>
Signed-off-by: Rizwana777 <rizwananaaz177@gmail.com>
Signed-off-by: Rizwana777 <rizwananaaz177@gmail.com>
2a9bcb4
to
aa7641d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @Rizwana777!
aa7641d
to
fdc27ec
Compare
// newConfigMapWithName creates a new ConfigMap with the given suffix appended to the name. | ||
// The name for the CongifMap is based on the name of the given ArgCD. | ||
func newConfigMapWithSuffix(suffix string, cr *argoproj.ArgoCD) *corev1.ConfigMap { | ||
return newConfigMapWithName(fmt.Sprintf("%s-%s", cr.ObjectMeta.Name, suffix), cr) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rizwana777 did you mean to get rid of this function? it is used for other configmaps as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaideepr97 newConfigMapWithSuffix
is used only used by grafana right now and I didn't see any place in the code where it is used, so I have removed it , I can add it back if we are using it in future somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, you're right
my bad
controllers/argocd/util.go
Outdated
@@ -669,7 +641,7 @@ func (r *ReconcileArgoCD) redisShouldUseTLS(cr *argoproj.ArgoCD) bool { | |||
tlsSecretName := types.NamespacedName{Namespace: cr.Namespace, Name: common.ArgoCDRedisServerTLSSecretName} | |||
err := r.Client.Get(context.TODO(), tlsSecretName, &tlsSecretObj) | |||
if err != nil { | |||
if !apierrors.IsNotFound(err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer we keep this as apierrors
as it is more descriptive and allows us to separately import the go errors pkg as well, if needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Thanks for raising this @Rizwana777 , I am personally happy to see grafana getting deprecated from the operator :) |
Signed-off-by: Rizwana777 <rizwananaaz177@gmail.com>
fdc27ec
to
4d8cabe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @Rizwana777
What type of PR is this?
What does this PR do / why we need it:
JIRA Link - https://issues.redhat.com/browse/GITOPS-2049