Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/argus/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
</div>

<div class="name">
<strong>Argus <span class="version">0.2.0-alpha.0</span></strong>
<strong>Argus <span class="version">0.2.0-alpha.1</span></strong>

<br>
logicmonitor/k8s-argus
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/configuration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
</div>

<div class="name">
<strong>Argus <span class="version">0.2.0-alpha.0</span></strong>
<strong>Argus <span class="version">0.2.0-alpha.1</span></strong>

<br>
logicmonitor/k8s-argus
Expand Down Expand Up @@ -387,7 +387,7 @@ <h1 id="configuring-argus-manually">Configuring Argus Manually</h1>

<aside class="copyright" role="note">

&copy; 2017 Released under Mozilla Public License 2.0 &ndash;
&copy; 2018 Released under Mozilla Public License 2.0 &ndash;

Documentation built with
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/device-tree-management/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
</div>

<div class="name">
<strong>Argus <span class="version">0.2.0-alpha.0</span></strong>
<strong>Argus <span class="version">0.2.0-alpha.1</span></strong>

<br>
logicmonitor/k8s-argus
Expand Down Expand Up @@ -341,7 +341,7 @@ <h2 id="device-groups">Device Groups</h2>
<li><strong>Services:</strong> Services running in the cluster.</li>
</ul>

<p>For namespaced resources (Pods, Services), a device group will be created for each namespace and placed inside the respective resource device group.
<p>Underneath the Nodes group, sub-groups will be created for each node role and an additional sub-group will be created that includes all nodes. For namespaced resources (Pods, Services), sub-groups will be created for each namespace.
For clusters that use an external etcd cluster, an <strong>Etcd</strong> device group will be created in the cluster&rsquo;s root device group.</p>

<h2 id="devices">Devices</h2>
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/how-it-works/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
</div>

<div class="name">
<strong>Argus <span class="version">0.2.0-alpha.0</span></strong>
<strong>Argus <span class="version">0.2.0-alpha.1</span></strong>

<br>
logicmonitor/k8s-argus
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
</div>

<div class="name">
<strong>Argus <span class="version">0.2.0-alpha.0</span></strong>
<strong>Argus <span class="version">0.2.0-alpha.1</span></strong>

<br>
logicmonitor/k8s-argus
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
</div>

<div class="name">
<strong>Argus <span class="version">0.2.0-alpha.0</span></strong>
<strong>Argus <span class="version">0.2.0-alpha.1</span></strong>

<br>
logicmonitor/k8s-argus
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
</div>

<div class="name">
<strong>Argus <span class="version">0.2.0-alpha.0</span></strong>
<strong>Argus <span class="version">0.2.0-alpha.1</span></strong>

<br>
logicmonitor/k8s-argus
Expand Down
2 changes: 1 addition & 1 deletion docs/roadmap/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
</div>

<div class="name">
<strong>Argus <span class="version">0.2.0-alpha.0</span></strong>
<strong>Argus <span class="version">0.2.0-alpha.1</span></strong>

<br>
logicmonitor/k8s-argus
Expand Down
5 changes: 4 additions & 1 deletion pkg/utilities/utilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ func BuildSystemCategoriesFromLabels(categories string, labels map[string]string
// GetLabelByPrefix takes a list of labels returns the first label matching the specified prefix
func GetLabelByPrefix(prefix string, labels map[string]string) (string, string) {
for k, v := range labels {
if match, _ := regexp.MatchString("^"+prefix, k); match {
if match, err := regexp.MatchString("^"+prefix, k); match {
if err != nil {
continue
}
return k, v
}
}
Expand Down