-
Notifications
You must be signed in to change notification settings - Fork 26
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
NETOBSERV-1214 & NETOBSERV-1399 Cluster name & zone features #546
Conversation
5f17fd5
to
6d7166b
Compare
New images:
They will expire after two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:9a7812f make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-9a7812f Or as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-9a7812f
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
pkg/loki/labels.go
Outdated
@@ -20,6 +20,10 @@ func GetLokiLabels(desired *flowslatest.FlowCollectorSpec) []string { | |||
indexFields = append(indexFields, constants.ClusterNameLabelName) | |||
} | |||
|
|||
if desired.Processor.AddZone != nil && *desired.Processor.AddZone { |
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.
after rebasing you could use that:
if desired.Processor.AddZone != nil && *desired.Processor.AddZone { | |
if helper.IsZoneEnabled(&desired.Processor) { |
if b.desired.Processor.MultiClusterDeployment != nil && *b.desired.Processor.MultiClusterDeployment { | ||
fconf.Features = append(fconf.Features, "multiCluster") | ||
} else { | ||
skipColumns = append(skipColumns, "cluster") | ||
} | ||
if b.desired.Processor.AddZone != nil && *b.desired.Processor.AddZone { | ||
fconf.Features = append(fconf.Features, "zones") | ||
} else { | ||
skipColumns = append(skipColumns, "zone") | ||
} |
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 could also add to columns config something like a feature
field, that could be managed either here or on the frontend, to avoid having specific code for each feature here to skip columns.
E.g:
- id: ClusterName
name: Cluster
tooltip: The cluster ID or Name.
field: K8S_ClusterName
filter: cluster_name
default: false
width: 15
feature: multiCluster
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.
Yes I'm fine with that
6d7166b
to
97de7e3
Compare
@jotak I rebased and addressed your comments. I'm updating the console plugin accordingly |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #546 +/- ##
==========================================
- Coverage 57.87% 57.75% -0.12%
==========================================
Files 73 73
Lines 9543 9552 +9
==========================================
- Hits 5523 5517 -6
- Misses 3684 3696 +12
- Partials 336 339 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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
/lgtm |
New images:
They will expire after two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:4494cc9 make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-4494cc9 Or as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-4494cc9
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
@jpinsonneau I guess we can merge it? |
I'm waiting for QE review before merging, just in case I need to update backports and so on. |
New changes are detected. LGTM label has been removed. |
Resolved conflict b1b8da0 |
New images:
They will expire after two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:3e6fb20 make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-3e6fb20 Or as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-3e6fb20
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
MultiClusterDeployment
andAddZone
states to frontendfeatures
arrayDependencies
netobserv/network-observability-console-plugin#462
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.