pulumi-kubernetes-cert-manager 0.0.5__tar.gz → 0.0.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/PKG-INFO +6 -7
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager/_inputs.py +1 -0
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager/_utilities.py +57 -2
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager/cert_manager.py +2 -4
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager/outputs.py +1 -0
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager/provider.py +2 -4
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager.egg-info/PKG-INFO +6 -7
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager.egg-info/requires.txt +1 -1
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/setup.py +9 -25
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/README.md +0 -0
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager/__init__.py +0 -0
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager/pulumi-plugin.json +0 -0
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager/py.typed +0 -0
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager.egg-info/SOURCES.txt +0 -0
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager.egg-info/dependency_links.txt +0 -0
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager.egg-info/not-zip-safe +0 -0
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/pulumi_kubernetes_cert_manager.egg-info/top_level.txt +0 -0
- {pulumi_kubernetes_cert_manager-0.0.5 → pulumi_kubernetes_cert_manager-0.0.6}/setup.cfg +0 -0
@@ -1,11 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pulumi_kubernetes_cert_manager
|
3
|
-
Version: 0.0.
|
4
|
-
Summary:
|
5
|
-
Home-page:
|
6
|
-
License:
|
3
|
+
Version: 0.0.6
|
4
|
+
Summary: Strongly-typed Cert Manager installation
|
5
|
+
Home-page: https://pulumi.io
|
6
|
+
License: Apache-2.0
|
7
|
+
Project-URL: Repository, https://github.com/pulumi/pulumi-kubernetes-cert-manager
|
7
8
|
Keywords: pulumi kubernetes cert-manager kind/component category/infrastructure
|
8
|
-
|
9
|
+
Requires-Python: >=3.8
|
9
10
|
Description-Content-Type: text/markdown
|
10
11
|
|
11
12
|
# Pulumi Cert Manager Component
|
@@ -39,5 +40,3 @@ if you need to override them, you may do so using the `helmOptions` parameter. R
|
|
39
40
|
https://www.pulumi.com/docs/reference/pkg/kubernetes/helm/v3/release/#inputs) for a full set of choices.
|
40
41
|
|
41
42
|
For complete details, refer to the Pulumi Package details within the Pulumi Registry.
|
42
|
-
|
43
|
-
|
@@ -3,16 +3,18 @@
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
5
|
|
6
|
+
import asyncio
|
7
|
+
import importlib.metadata
|
6
8
|
import importlib.util
|
7
9
|
import inspect
|
8
10
|
import json
|
9
11
|
import os
|
10
|
-
import pkg_resources
|
11
12
|
import sys
|
12
13
|
import typing
|
13
14
|
|
14
15
|
import pulumi
|
15
16
|
import pulumi.runtime
|
17
|
+
from pulumi.runtime.sync_await import _sync_await
|
16
18
|
|
17
19
|
from semver import VersionInfo as SemverVersion
|
18
20
|
from parver import Version as PEP440Version
|
@@ -70,7 +72,7 @@ def _get_semver_version():
|
|
70
72
|
# to receive a valid semver string when receiving requests from the language host, so it's our
|
71
73
|
# responsibility as the library to convert our own PEP440 version into a valid semver string.
|
72
74
|
|
73
|
-
pep440_version_string =
|
75
|
+
pep440_version_string = importlib.metadata.version(root_package)
|
74
76
|
pep440_version = PEP440Version.parse(pep440_version_string)
|
75
77
|
(major, minor, patch) = pep440_version.release
|
76
78
|
prerelease = None
|
@@ -98,6 +100,17 @@ _version_str = str(_version)
|
|
98
100
|
def get_version():
|
99
101
|
return _version_str
|
100
102
|
|
103
|
+
def get_resource_opts_defaults() -> pulumi.ResourceOptions:
|
104
|
+
return pulumi.ResourceOptions(
|
105
|
+
version=get_version(),
|
106
|
+
plugin_download_url=get_plugin_download_url(),
|
107
|
+
)
|
108
|
+
|
109
|
+
def get_invoke_opts_defaults() -> pulumi.InvokeOptions:
|
110
|
+
return pulumi.InvokeOptions(
|
111
|
+
version=get_version(),
|
112
|
+
plugin_download_url=get_plugin_download_url(),
|
113
|
+
)
|
101
114
|
|
102
115
|
def get_resource_args_opts(resource_args_type, resource_options_type, *args, **kwargs):
|
103
116
|
"""
|
@@ -234,3 +247,45 @@ def lift_output_func(func: typing.Any) -> typing.Callable[[_F], _F]:
|
|
234
247
|
**resolved_args['kwargs']))
|
235
248
|
|
236
249
|
return (lambda _: lifted_func)
|
250
|
+
|
251
|
+
|
252
|
+
def call_plain(
|
253
|
+
tok: str,
|
254
|
+
props: pulumi.Inputs,
|
255
|
+
res: typing.Optional[pulumi.Resource] = None,
|
256
|
+
typ: typing.Optional[type] = None,
|
257
|
+
) -> typing.Any:
|
258
|
+
"""
|
259
|
+
Wraps pulumi.runtime.plain to force the output and return it plainly.
|
260
|
+
"""
|
261
|
+
|
262
|
+
output = pulumi.runtime.call(tok, props, res, typ)
|
263
|
+
|
264
|
+
# Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency.
|
265
|
+
result, known, secret, _ = _sync_await(asyncio.ensure_future(_await_output(output)))
|
266
|
+
|
267
|
+
problem = None
|
268
|
+
if not known:
|
269
|
+
problem = ' an unknown value'
|
270
|
+
elif secret:
|
271
|
+
problem = ' a secret value'
|
272
|
+
|
273
|
+
if problem:
|
274
|
+
raise AssertionError(
|
275
|
+
f"Plain resource method '{tok}' incorrectly returned {problem}. "
|
276
|
+
+ "This is an error in the provider, please report this to the provider developer."
|
277
|
+
)
|
278
|
+
|
279
|
+
return result
|
280
|
+
|
281
|
+
|
282
|
+
async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bool, bool, set]:
|
283
|
+
return (
|
284
|
+
await o._future,
|
285
|
+
await o._is_known,
|
286
|
+
await o._is_secret,
|
287
|
+
await o._resources,
|
288
|
+
)
|
289
|
+
|
290
|
+
def get_plugin_download_url():
|
291
|
+
return None
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by Pulumi SDK Generator. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import copy
|
5
6
|
import warnings
|
6
7
|
import pulumi
|
7
8
|
import pulumi.runtime
|
@@ -589,12 +590,9 @@ class CertManager(pulumi.ComponentResource):
|
|
589
590
|
tolerations: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['pulumi_kubernetes.core.v1.TolerationArgs']]]]] = None,
|
590
591
|
webhook: Optional[pulumi.Input[pulumi.InputType['CertManagerWebhookArgs']]] = None,
|
591
592
|
__props__=None):
|
592
|
-
|
593
|
-
opts = pulumi.ResourceOptions()
|
593
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
594
594
|
if not isinstance(opts, pulumi.ResourceOptions):
|
595
595
|
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
596
|
-
if opts.version is None:
|
597
|
-
opts.version = _utilities.get_version()
|
598
596
|
if opts.id is not None:
|
599
597
|
raise ValueError('ComponentResource classes do not support opts.id')
|
600
598
|
else:
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by Pulumi SDK Generator. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import copy
|
5
6
|
import warnings
|
6
7
|
import pulumi
|
7
8
|
import pulumi.runtime
|
@@ -54,12 +55,9 @@ class Provider(pulumi.ProviderResource):
|
|
54
55
|
resource_name: str,
|
55
56
|
opts: Optional[pulumi.ResourceOptions] = None,
|
56
57
|
__props__=None):
|
57
|
-
|
58
|
-
opts = pulumi.ResourceOptions()
|
58
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
59
59
|
if not isinstance(opts, pulumi.ResourceOptions):
|
60
60
|
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
61
|
-
if opts.version is None:
|
62
|
-
opts.version = _utilities.get_version()
|
63
61
|
if opts.id is None:
|
64
62
|
if __props__ is not None:
|
65
63
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
@@ -1,11 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pulumi-kubernetes-cert-manager
|
3
|
-
Version: 0.0.
|
4
|
-
Summary:
|
5
|
-
Home-page:
|
6
|
-
License:
|
3
|
+
Version: 0.0.6
|
4
|
+
Summary: Strongly-typed Cert Manager installation
|
5
|
+
Home-page: https://pulumi.io
|
6
|
+
License: Apache-2.0
|
7
|
+
Project-URL: Repository, https://github.com/pulumi/pulumi-kubernetes-cert-manager
|
7
8
|
Keywords: pulumi kubernetes cert-manager kind/component category/infrastructure
|
8
|
-
|
9
|
+
Requires-Python: >=3.8
|
9
10
|
Description-Content-Type: text/markdown
|
10
11
|
|
11
12
|
# Pulumi Cert Manager Component
|
@@ -39,5 +40,3 @@ if you need to override them, you may do so using the `helmOptions` parameter. R
|
|
39
40
|
https://www.pulumi.com/docs/reference/pkg/kubernetes/helm/v3/release/#inputs) for a full set of choices.
|
40
41
|
|
41
42
|
For complete details, refer to the Pulumi Package details within the Pulumi Registry.
|
42
|
-
|
43
|
-
|
@@ -8,27 +8,7 @@ from setuptools.command.install import install
|
|
8
8
|
from subprocess import check_call
|
9
9
|
|
10
10
|
|
11
|
-
VERSION = "0.0.
|
12
|
-
PLUGIN_VERSION = "0.0.5"
|
13
|
-
|
14
|
-
class InstallPluginCommand(install):
|
15
|
-
def run(self):
|
16
|
-
install.run(self)
|
17
|
-
try:
|
18
|
-
check_call(['pulumi', 'plugin', 'install', 'resource', 'kubernetes-cert-manager', PLUGIN_VERSION])
|
19
|
-
except OSError as error:
|
20
|
-
if error.errno == errno.ENOENT:
|
21
|
-
print(f"""
|
22
|
-
There was an error installing the kubernetes-cert-manager resource provider plugin.
|
23
|
-
It looks like `pulumi` is not installed on your system.
|
24
|
-
Please visit https://pulumi.com/ to install the Pulumi CLI.
|
25
|
-
You may try manually installing the plugin by running
|
26
|
-
`pulumi plugin install resource kubernetes-cert-manager {PLUGIN_VERSION}`
|
27
|
-
""")
|
28
|
-
else:
|
29
|
-
raise
|
30
|
-
|
31
|
-
|
11
|
+
VERSION = "0.0.6"
|
32
12
|
def readme():
|
33
13
|
try:
|
34
14
|
with open('README.md', encoding='utf-8') as f:
|
@@ -38,13 +18,17 @@ def readme():
|
|
38
18
|
|
39
19
|
|
40
20
|
setup(name='pulumi_kubernetes_cert_manager',
|
21
|
+
python_requires='>=3.8',
|
41
22
|
version=VERSION,
|
23
|
+
description="Strongly-typed Cert Manager installation",
|
42
24
|
long_description=readme(),
|
43
25
|
long_description_content_type='text/markdown',
|
44
|
-
cmdclass={
|
45
|
-
'install': InstallPluginCommand,
|
46
|
-
},
|
47
26
|
keywords='pulumi kubernetes cert-manager kind/component category/infrastructure',
|
27
|
+
url='https://pulumi.io',
|
28
|
+
project_urls={
|
29
|
+
'Repository': 'https://github.com/pulumi/pulumi-kubernetes-cert-manager'
|
30
|
+
},
|
31
|
+
license='Apache-2.0',
|
48
32
|
packages=find_packages(),
|
49
33
|
package_data={
|
50
34
|
'pulumi_kubernetes_cert_manager': [
|
@@ -55,7 +39,7 @@ setup(name='pulumi_kubernetes_cert_manager',
|
|
55
39
|
install_requires=[
|
56
40
|
'parver>=0.2.1',
|
57
41
|
'pulumi>=3.0.0,<4.0.0',
|
58
|
-
'pulumi-kubernetes>=3.7.1,<
|
42
|
+
'pulumi-kubernetes>=3.7.1,<5.0.0',
|
59
43
|
'semver>=2.8.1'
|
60
44
|
],
|
61
45
|
zip_safe=False)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|