INNER CODE UNIT · Python

is_valid_kubernetes_tool

collabnix/kubetools · scripts/discover_tools.py:96

    def is_valid_kubernetes_tool(self, tool):
        """Validate if this is a legitimate Kubernetes tool"""
        desc = tool['description'].lower()
        topics = [t.lower() for t in tool['topics']]
        name = tool['name'].lower()
        
        # Must be Kubernetes-related
        k8s_indicators = ['kubernetes', 'k8s', 'kubectl', 'kube', 'helm', 'operator']
        has_k8s_relation = any(indicator in desc or indicator in name or indicator in topics 
                              for indicator in k8s_indicators)
        
        return tool['stars'] >= 3 and len(tool['description']) > 10 and has_k8s_relation

    def deduplicate_tools(self, tools):
        """Remove duplicate tools"""
        seen = set()
        unique_tools = []
        

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…