-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature-addregCodeWays
- Loading branch information
Showing
14 changed files
with
251 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
------------------------------------------------------------------- | ||
Fri Sep 13 15:56:05 UTC 2024 - Miquel Sabate Sola <[email protected]> | ||
Thu Nov 14 11:01:05 UTC 2024 - Miquel Sabaté Solà <[email protected]> | ||
|
||
- IN PROGRESS: 1.13 | ||
- Update version to 1.13: | ||
- Integrating uptime-tracker | ||
- Honor auto-import-gpg-keys flag on migration (bsc#1231328) | ||
- Only send labels if targetting SCC | ||
- Skip the docker auth generation on RMT (bsc#1231185) | ||
- Add --set-labels to register command to set labels at registration time on SCC | ||
- Add a new function to display suse-uptime-tracker version | ||
- Integrate with uptime-tracker ( https://github.com/SUSE/uptime-tracker/ ) | ||
- Add a command to show the info being gathered | ||
|
||
------------------------------------------------------------------- | ||
Fri Sep 13 14:11:22 UTC 2024 - Miquel Sabate Sola <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package connect | ||
|
||
import ( | ||
"github.com/SUSE/connect-ng/internal/util" | ||
"strings" | ||
) | ||
|
||
var ( | ||
localSetLabels = setLabels | ||
) | ||
|
||
type Label struct { | ||
Name string `json:"name"` | ||
Description string `json:"description,omitempty"` | ||
} | ||
|
||
func AssignAndCreateLabels(labels []string) error { | ||
collection := []Label{} | ||
|
||
for _, name := range labels { | ||
name = strings.TrimSpace(name) | ||
collection = append(collection, Label{Name: name}) | ||
} | ||
|
||
util.Debug.Printf(util.Bold("Setting Labels %s"), strings.Join(labels, ",")) | ||
return localSetLabels(collection) | ||
} |
Oops, something went wrong.