Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

This queue is for tickets about the Net-Kubernetes CPAN distribution.

Report information
The Basics
Id: 124334
Status: new
Priority: 0/
Queue: Net-Kubernetes

People
Owner: Nobody in particular
Requestors: guillelbz [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
In-Reply-To: <CABMv7rgi7KcxuuQhQmE7GzjoEbo_RwhQXFS+HQyOLsS+LJJxgQ [...] mail.gmail.com>
X-Spam-Status: No, score=-1.333 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_SOFTFAIL=0.665] autolearn=no
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
References: <CABMv7rgi7KcxuuQhQmE7GzjoEbo_RwhQXFS+HQyOLsS+LJJxgQ [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary="001a1148483083fe3b056487e01b"
Message-ID: <CABMv7rggvmFeJwHm0BZgKJEd0G3zidTjAzEKy=udPLTqYtRAmg [...] mail.gmail.com>
X-Received: by 10.107.179.195 with SMTP id c186mr2051030iof.41.1517909633661; Tue, 06 Feb 2018 01:33:53 -0800 (PST)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -1.333
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 03C0E2402C7 for <cpan-bug+Net-Kubernetes [...] hipster.bestpractical.com>; Tue, 6 Feb 2018 04:34:03 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h4AxedgJUCLp for <cpan-bug+Net-Kubernetes [...] hipster.bestpractical.com>; Tue, 6 Feb 2018 04:34:01 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 6869D2400DB for <bug-Net-Kubernetes [...] rt.cpan.org>; Tue, 6 Feb 2018 04:34:01 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 2B1B5121105 for <bug-Net-Kubernetes [...] rt.cpan.org>; Tue, 6 Feb 2018 01:34:00 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 37FC711EB5B for <bug-Net-Kubernetes [...] rt.cpan.org>; Tue, 6 Feb 2018 01:33:56 -0800 (PST)
Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id A16DF121122 for <bug-Net-Kubernetes [...] rt.cpan.org>; Tue, 6 Feb 2018 01:33:54 -0800 (PST)
Received: by mail-io0-f177.google.com with SMTP id f34so1789230ioi.13 for <bug-Net-Kubernetes [...] rt.cpan.org>; Tue, 06 Feb 2018 01:33:54 -0800 (PST)
Received: by 10.79.10.196 with HTTP; Tue, 6 Feb 2018 01:33:33 -0800 (PST)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
X-Google-SMTP-Source: AH8x227lVgi9+pgroQlsRxFcGfAgLPSm7EBYBtyIuNH0AeK9kchhTyBc7etRxbklUpIKhlVmrmQbaL6hBiGVMOTQ5DU=
Delivered-To: cpan-bug+Net-Kubernetes [...] hipster.bestpractical.com
Subject: Re: Using Net::Kubernetes
Return-Path: <guillelbz [...] gmail.com>
X-RT-Mail-Extension: net-kubernetes
X-Original-To: cpan-bug+Net-Kubernetes [...] hipster.bestpractical.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Z9OE2VI4K1easex7CRlCt2AUqCR0PpyHzcqTMvpNlDs=; b=lGMiSqYlfEykGP1hTcbLnYfyi/l8QJtVrofSe5tjlN0CbCFzQPLztCupFWb+2sNNEY +q0iSycHuVvhSgtrmYP1VzgMd7ouYV1ynzYpRwgh0cAGrJIH8++UuDCplFm98dhLGb1E bpz4Ugx07axTB7o7DTuTF7zNxRvyrQKzfPuN0tij5tdCKhXfqnUcW0eKvjy9cPDEeaB0 sz0ia65d+4WEf8O8P6GZy7cH7sfsJxDTg4igTr/Ml4a2WTUUxhfmQ5HFWNAs4++yAIGv 0XUE6Kj2ihVI1ZUlVd8UL8FVrFmoiV0cZA2VID3YPyCWAdztEH7hagyajXqm10EIm+qu tKrA==
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Z9OE2VI4K1easex7CRlCt2AUqCR0PpyHzcqTMvpNlDs=; b=LApyY1/o5vxOWTsUUwmdr+NpwMFW9L867yUXmGCwziD3wFR4lBERsvSIW5kfalgptu 5y3NivKTUbsH3TfDF6JbSNhvrGDKwoiLF//TXGk04uvUy/ZKOwmoQ9EiDhxpMwHig9Us zK41y1Z5W7VIWhKgJpv5ZPBU43/rfdfIT3ni4wxv+hjILwZgtZa6EWmu4W/yMEdA1Woj K2OFKs8b9r9CpjXYOqsK9lP0ZHc4wP08nIzlmLweABITymLC6Es1Yx4IRBX1GhpMX9dx WjkeXWPbrhM/4qF8X7okZuZpAu0flVZpaHjyEMilnRP+epVQYVQUu5Fh5xIbB6kPtSsr cavw==
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_70_90 0.1, FROM_NAME_ONE_WORD 0.05, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTH_SIZE_3000_MORE 0, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_10000_PLUS 0, DKIM_SIGNATURE 0, IN_REP_TO 0, LEGITIMATE_SIGNS 0, MSG_THREAD 0, NO_URI_HTTPS 0, REFERENCES 0, SPF_PASS 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FORWARDED_MSG 0, __FRAUD_BODY_WEBMAIL 0, __FRAUD_CONTACT_NAME 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HELO_GMAIL 0, __HEX28_LC_BOUNDARY 0, __HIGHBITS 0, __HTML_AHREF_TAG 0, __HTML_TAG_DIV 0, __IN_REP_TO 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MULTIPLE_URI_TEXT 0, __PHISH_SPEAR_HTTP_RECEIVED 0, __PHISH_SPEAR_STRUCTURE_1 0, __RDNS_GMAIL 0, __REFERENCES 0, __SANE_MSGID 0, __STOCK_PHRASE_24 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS , __URI_WITHOUT_PATH 0, __YOUTUBE_RCVD 0, __zen.spamhaus.org_ERROR '
Date: Tue, 6 Feb 2018 10:33:33 +0100
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2018.2.6.92716
To: bug-Net-Kubernetes [...] rt.cpan.org
From: Guillermo <guillelbz [...] gmail.com>
X-GM-Message-State: APf1xPDnn5Y4XfwWhdb2zIwGNlK1d457s7vY6G2+df3JSo83gOxe52E7 FetNNkvfi7vy35qbIwJj43xa12NkG4rMNQUbVGEdbQ==
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 2293
Download (untitled) / with headers
text/plain 2.2k
This is the Endpoint YAML file definition, which works perfectly in kubernetes: -------------------------------------------------------------------- kind: Endpoints apiVersion: v1 metadata: namespace: default name: glusterfs-machines subsets: - addresses: - ip: 192.168.215.6 ports: - port: 24007 --------------------------------------------------------------------- This is the Perl error stack: #################################################### Attribute (subsets) does not pass the type constraint because: Validation failed for 'ArrayRef[HashRef]' with value undef at /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Moose/Object.pm line 24 Moose::Object::new('Net::Kubernetes::Resource::Endpoint', 'kind', 'Endpoint', 'url', 'http://127.0.0.1:8080', 'metadata', 'HASH(0x41ba7b8)', 'apiVersion', 'v1', 'subsets', undef, 'base_path', '/api/v1/namespaces/default/endpoints/etcd-client', 'api_version', 'v1') called at /usr/local/share/perl/5.22.1/Net/Kubernetes/Role/ResourceFactory.pm line 29 Net::Kubernetes::Role::ResourceFactory::create_resource_object('Net::Kubernetes=HASH(0x337c360)', 'HASH(0x41ba8f0)', 'Endpoint') called at /usr/local/share/perl/5.22.1/Net/Kubernetes/Role/ResourceLister.pm line 190 Net::Kubernetes::Role::ResourceLister::list_endpoints('Net::Kubernetes=HASH(0x337c360)') called at testKube.pl line 84 #################################################### Un saludo, Guillermo López. 2018-02-05 19:44 GMT+01:00 Guillermo <guillelbz@gmail.com>: Show quoted text
> Hello, > > Are there any example about the usage of list_endpoints() ? > > The following code works perefectly, except the call to list_endpoints(): > > > > ########################################################## > my $kube = Net::Kubernetes->new(url=>'http://127.0.0.1:8080'); > > my $pod_list = $kube->list_pods(); > print Dumper $pod_list; > > my $svc_list = $kube->list_services(); > print Dumper $svc_list; > > my $ep_list = $kube->list_endpoints(); > print Dumper $ep_list; > ########################################################## > > Do I need to do something explicit with the class "Net::Kubernetes::Role::ResourceLister" > ? > > I am using: > OS: Ubuntu 16.04 > Net::Kubernetes v1.03 > Perl 5.22 > > > Best regards, > > Guillermo López. >
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 8444


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.