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

Add support to read resources from kubernetes manifests. Closes #128 #129

Merged
merged 42 commits into from
May 23, 2023

Conversation

Subhajit97
Copy link
Contributor

Example query results

Results
Add example SQL query results here (please include the input queries as well)

@Subhajit97 Subhajit97 self-assigned this Apr 11, 2023
@Subhajit97 Subhajit97 linked an issue Apr 11, 2023 that may be closed by this pull request
@@ -1,4 +1,4 @@
# Table: kubernetes_{custom_resource_singular_name}
# Table: kubernetes\_{custom_resource_singular_name}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Table: kubernetes\_{custom_resource_singular_name}
# Table: kubernetes_{custom_resource_singular_name}

Comment on lines +126 to +131
kubernetesConfig := GetConfig(c)
filterCrds := kubernetesConfig.CustomResourceTables
if len(filterCrds) == 0 {
return nil, nil
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, @misraved, we need this code block to validate if a list of custom resource tables is set in the config before creating the client.

Comment on lines 106 to 108
//
// Check for deployed resources
//
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//
// Check for deployed resources
//
// Check for deployed resources

Copy link
Contributor

@misraved misraved left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Subhajit97 please take a look at the minor review comments.

Also please make sure that we have tested the manifest changes against the filewatcher property.

@misraved misraved merged commit 305aad2 into main May 23, 2023
1 check passed
@misraved misraved deleted the parse-kube-manifest branch May 23, 2023 15:45
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.

Add support to read resources from kubernetes manifests
2 participants