-
Notifications
You must be signed in to change notification settings - Fork 772
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
list custom resource managed resources #634
base: main
Are you sure you want to change the base?
Conversation
@@ -168,3 +171,26 @@ func getWatchNamespace(key string) string { | |||
} | |||
return value | |||
} | |||
|
|||
func getCustomChildLabels() map[string]string { |
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.
This function is not in use
useEffect(() => { | ||
fetchResource(); | ||
|
||
const interval = setInterval(() => fetchResource(), 15000); |
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.
The interval for the CRD to fetch resources is set to 15s, but for the Module to fetch its resources is set to 10s
install/cyclops-install.yaml
Outdated
@@ -427,6 +427,20 @@ spec: | |||
policyTypes: | |||
- Ingress | |||
- Egress | |||
#--- |
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.
Add comments so that people know it's an example
@@ -0,0 +1,6 @@ | |||
childLabels: |
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.
Add comment so that people know it's an example for testing
for each custom resource, shows resources created/managed by it.
cyclops-ctrl
fetches managed resources based on labels provided incyclops-ctrl
config so relations can be configured.