@staticmethod
def kind_to_resource_name(kind):
    """
        Converts kind to resource name. It is same logics
        as in k8s.io/k8s/pkg/api/meta/restmapper.go (func KindToResource)
        Example:
            Pod -> pods
            Policy - > policies
            BuildConfig - > buildconfigs

        Args:
            kind (str): Kind of the object

        Returns:
            Resource name (str) (kind in plural form)
        """
    singular = kind.lower()
    if singular.endswith(('s', 'x', 'z', 'ch', 'sh')):
        plural = singular + 'es'
    elif singular[-1] == 'y':
        plural = singular.rstrip('y') + 'ies'
    else:
        plural = singular + 's'
    return plural
