Skip to content
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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

petar-cvit
Copy link
Collaborator

for each custom resource, shows resources created/managed by it. cyclops-ctrl fetches managed resources based on labels provided in cyclops-ctrl config so relations can be configured.

@petar-cvit petar-cvit self-assigned this Oct 14, 2024
@petar-cvit petar-cvit requested a review from a team as a code owner October 14, 2024 16:45
@@ -168,3 +171,26 @@ func getWatchNamespace(key string) string {
}
return value
}

func getCustomChildLabels() map[string]string {
Copy link
Collaborator

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);
Copy link
Collaborator

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

@@ -427,6 +427,20 @@ spec:
policyTypes:
- Ingress
- Egress
#---
Copy link
Collaborator

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:
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants