def complete_pods_for_deployment(self, text, line, begidx, endidx):
        """
            Auto-complete for k8s pods for deployment
        """
        cmd = Command(line)
        namespace = cmd.get(1)
        if len(cmd) == 1 or (len(cmd) == 2 and not cmd.finished):
            return filter_text_insensitive(self.k8s_inventory.find_namespaces(), namespace)
        else:
            op = cmd.get(2)
            return filter_text_insensitive(self.k8s_inventory.find_deployments(namespace), op)

            Auto-complete for k8s pods for deployment
        
powerfulseal/cli/pscmd.py