k8s/http-symfony 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

k8s/http-symfony

最新稳定版本:1.1.0

Composer 安装命令:

composer require k8s/http-symfony

包简介

Symfony based HttpClient factory for k8s/client

README 文档

README

This library provides a Symfony based HttpClient factory for the k8s/client library.

General Use with the K8s library / Configuration Options

  1. Install the library:

composer require k8s/http-symfony

  1. Construct the main client for k8s/client through the K8sFactory:
use K8s\Client\K8sFactory;

# Load the client from the default KubeConfig
$k8s = (new K8sFactory())->loadFromKubeConfig();

Your new client will have all the HttpClient options needed pre-populated when used.

Default HTTP Options Configuration

To specify extra defaults for the Symfony HTTP client, you can construct it like this:

use K8s\HttpSymfony\ClientFactory;
use K8s\Client\K8sFactory;

# Pass any Symfony HTTP client options here.
# The below would allow for self-signed certificates.
$httpFactory = new ClientFactory([
    'verify_peer' => false,
    'verify_host' => false,
]);

$k8s = (new K8sFactory())->loadFromKubeConfig(null, $httpFactory);

统计信息

  • 总下载量: 941
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-14