-
Notifications
You must be signed in to change notification settings - Fork 550
chore: when a cluster event occurs, create config map instead of secret #6607
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
Changes from 13 commits
b275a2c
962054e
59c8ff8
1ea23e3
5977a88
2ba594e
3d992e9
6ce9b77
1283179
489871b
7fa7e39
8237884
fc54e9a
976f93b
2d09f1f
bb12ab9
60012ce
f159e78
9a085b5
12778bd
5d22708
3bf4b72
a61bf2f
69a5263
6e196cb
85c29e5
a667752
c0a4705
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package helper | ||
|
||
import ( | ||
"fmt" | ||
informerBean "github.com/devtron-labs/common-lib/informer" | ||
clusterBean "github.com/devtron-labs/devtron/pkg/cluster/bean" | ||
"time" | ||
) | ||
|
||
func CreateClusterModifyEventData(clusterId int, action string) (map[string]string, map[string]string) { | ||
data := make(map[string]string) | ||
data[informerBean.CmFieldClusterId] = fmt.Sprintf("%v", clusterId) | ||
data[informerBean.CmFieldAction] = action | ||
data[clusterBean.CmFieldUpdatedOn] = time.Now().String() | ||
prakash100198 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
labels := make(map[string]string) | ||
labels[informerBean.ClusterModifyEventSecretTypeKey] = informerBean.ClusterModifyEventCmLabelValue | ||
|
||
return data, labels | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.