ldw-core 0.2.1__py3-none-any.whl

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.
Files changed (134) hide show
  1. ldw_core-0.2.1.dist-info/METADATA +55 -0
  2. ldw_core-0.2.1.dist-info/RECORD +134 -0
  3. ldw_core-0.2.1.dist-info/WHEEL +4 -0
  4. ldw_core-0.2.1.dist-info/entry_points.txt +2 -0
  5. ldw_core-0.2.1.dist-info/licenses/LICENSE +201 -0
  6. ldw_core-0.2.1.dist-info/licenses/NOTICE +4 -0
  7. local_devops_workbench/__init__.py +42 -0
  8. local_devops_workbench/__main__.py +4 -0
  9. local_devops_workbench/_build_info.py +6 -0
  10. local_devops_workbench/assets/charts/local-stack/Chart.yaml +7 -0
  11. local_devops_workbench/assets/charts/local-stack/templates/_helpers.tpl +21 -0
  12. local_devops_workbench/assets/charts/local-stack/templates/access.yaml +34 -0
  13. local_devops_workbench/assets/charts/local-stack/templates/ingress.yaml +29 -0
  14. local_devops_workbench/assets/charts/local-stack/templates/migration.yaml +65 -0
  15. local_devops_workbench/assets/charts/local-stack/templates/networkpolicy.yaml +54 -0
  16. local_devops_workbench/assets/charts/local-stack/templates/statefulsets.yaml +111 -0
  17. local_devops_workbench/assets/charts/local-stack/templates/workloads.yaml +140 -0
  18. local_devops_workbench/assets/charts/local-stack/values.yaml +15 -0
  19. local_devops_workbench/assets/kind/kind-cluster-ci.yaml +23 -0
  20. local_devops_workbench/assets/kind/kind-cluster.yaml +25 -0
  21. local_devops_workbench/assets/runtime/Tiltfile +78 -0
  22. local_devops_workbench/assets/runtime/images.lock.toml +97 -0
  23. local_devops_workbench/assets/runtime/tools.lock.toml +84 -0
  24. local_devops_workbench/assets/values/four-service.yaml +59 -0
  25. local_devops_workbench/assets.py +47 -0
  26. local_devops_workbench/cli/__init__.py +120 -0
  27. local_devops_workbench/cli/_context.py +314 -0
  28. local_devops_workbench/cli/acceptance.py +164 -0
  29. local_devops_workbench/cli/agent.py +207 -0
  30. local_devops_workbench/cli/backup.py +142 -0
  31. local_devops_workbench/cli/cache.py +50 -0
  32. local_devops_workbench/cli/cluster.py +52 -0
  33. local_devops_workbench/cli/export.py +155 -0
  34. local_devops_workbench/cli/integration.py +559 -0
  35. local_devops_workbench/cli/lifecycle.py +710 -0
  36. local_devops_workbench/cli/observe.py +297 -0
  37. local_devops_workbench/cli/onboarding.py +709 -0
  38. local_devops_workbench/cli/plans.py +396 -0
  39. local_devops_workbench/cli/plugin.py +68 -0
  40. local_devops_workbench/cli/project.py +132 -0
  41. local_devops_workbench/cli/runtime_cmds.py +196 -0
  42. local_devops_workbench/config.py +465 -0
  43. local_devops_workbench/declarative_packs.py +624 -0
  44. local_devops_workbench/detectors.py +15 -0
  45. local_devops_workbench/discovery/__init__.py +33 -0
  46. local_devops_workbench/discovery/compose.py +725 -0
  47. local_devops_workbench/discovery/fs_safety.py +64 -0
  48. local_devops_workbench/discovery/generators.py +34 -0
  49. local_devops_workbench/discovery/identity.py +111 -0
  50. local_devops_workbench/discovery/kubernetes.py +327 -0
  51. local_devops_workbench/discovery/native.py +772 -0
  52. local_devops_workbench/discovery/ports.py +50 -0
  53. local_devops_workbench/discovery/proposal.py +675 -0
  54. local_devops_workbench/discovery/questions.py +79 -0
  55. local_devops_workbench/discovery/scanner.py +516 -0
  56. local_devops_workbench/errors.py +74 -0
  57. local_devops_workbench/executor.py +98 -0
  58. local_devops_workbench/export/__init__.py +61 -0
  59. local_devops_workbench/export/common.py +83 -0
  60. local_devops_workbench/export/mise.py +128 -0
  61. local_devops_workbench/export/templates/Tiltfile.j2 +132 -0
  62. local_devops_workbench/export/templates/mise.toml.j2 +42 -0
  63. local_devops_workbench/export/tiltfile.py +169 -0
  64. local_devops_workbench/extensions.py +442 -0
  65. local_devops_workbench/failure_labs.py +49 -0
  66. local_devops_workbench/graph.py +43 -0
  67. local_devops_workbench/image_lock.py +60 -0
  68. local_devops_workbench/install_hint.py +50 -0
  69. local_devops_workbench/integration_models.py +672 -0
  70. local_devops_workbench/integration_service.py +2101 -0
  71. local_devops_workbench/kinds.py +146 -0
  72. local_devops_workbench/kubernetes_context.py +467 -0
  73. local_devops_workbench/lifecycle_probe.py +58 -0
  74. local_devops_workbench/local_tls.py +178 -0
  75. local_devops_workbench/models.py +841 -0
  76. local_devops_workbench/orchestration.py +1415 -0
  77. local_devops_workbench/owned_resources.py +88 -0
  78. local_devops_workbench/paths.py +179 -0
  79. local_devops_workbench/planner.py +83 -0
  80. local_devops_workbench/plugin_api.py +562 -0
  81. local_devops_workbench/plugin_loading.py +76 -0
  82. local_devops_workbench/ports.py +517 -0
  83. local_devops_workbench/prerequisites.py +279 -0
  84. local_devops_workbench/presentation.py +975 -0
  85. local_devops_workbench/probes.py +30 -0
  86. local_devops_workbench/project_integrations.py +54 -0
  87. local_devops_workbench/project_service.py +233 -0
  88. local_devops_workbench/providers/__init__.py +4 -0
  89. local_devops_workbench/providers/base.py +23 -0
  90. local_devops_workbench/providers/common.py +173 -0
  91. local_devops_workbench/providers/compose.py +97 -0
  92. local_devops_workbench/providers/ddev.py +114 -0
  93. local_devops_workbench/providers/kubernetes.py +1153 -0
  94. local_devops_workbench/providers/mixed.py +12 -0
  95. local_devops_workbench/providers/native.py +136 -0
  96. local_devops_workbench/providers/registry.py +79 -0
  97. local_devops_workbench/py.typed +1 -0
  98. local_devops_workbench/reconciliation.py +1166 -0
  99. local_devops_workbench/redaction.py +92 -0
  100. local_devops_workbench/release.py +94 -0
  101. local_devops_workbench/repository_files.py +599 -0
  102. local_devops_workbench/runner.py +396 -0
  103. local_devops_workbench/runtime.py +1465 -0
  104. local_devops_workbench/schema_migrations.py +341 -0
  105. local_devops_workbench/secrets.py +154 -0
  106. local_devops_workbench/sections.py +305 -0
  107. local_devops_workbench/services/__init__.py +1 -0
  108. local_devops_workbench/services/acceptance.py +468 -0
  109. local_devops_workbench/services/backup.py +475 -0
  110. local_devops_workbench/services/bootstrap.py +148 -0
  111. local_devops_workbench/services/cache.py +90 -0
  112. local_devops_workbench/services/cluster/__init__.py +45 -0
  113. local_devops_workbench/services/cluster/base.py +171 -0
  114. local_devops_workbench/services/cluster/builder.py +552 -0
  115. local_devops_workbench/services/cluster/inspect.py +297 -0
  116. local_devops_workbench/services/cluster/kubeconfig.py +310 -0
  117. local_devops_workbench/services/cluster/nodes.py +343 -0
  118. local_devops_workbench/services/cluster/registry.py +490 -0
  119. local_devops_workbench/services/cluster/service.py +596 -0
  120. local_devops_workbench/services/cluster/tls.py +50 -0
  121. local_devops_workbench/services/context.py +191 -0
  122. local_devops_workbench/services/doctor.py +499 -0
  123. local_devops_workbench/services/host_runtime.py +464 -0
  124. local_devops_workbench/services/plugins.py +315 -0
  125. local_devops_workbench/services/project_locator.py +281 -0
  126. local_devops_workbench/services/readiness.py +268 -0
  127. local_devops_workbench/services/target_status.py +282 -0
  128. local_devops_workbench/services/tilt.py +386 -0
  129. local_devops_workbench/session_control.py +294 -0
  130. local_devops_workbench/state.py +854 -0
  131. local_devops_workbench/teardown.py +306 -0
  132. local_devops_workbench/tilt_brokers.py +321 -0
  133. local_devops_workbench/tilt_command.py +142 -0
  134. local_devops_workbench/tool_versions.py +15 -0
@@ -0,0 +1,55 @@
1
+ Metadata-Version: 2.5
2
+ Name: ldw-core
3
+ Version: 0.2.1
4
+ Summary: Core of the Local DevOps Workbench: discovery, manifests, and the local runtime lifecycle.
5
+ Project-URL: Homepage, https://github.com/openplanr/ldw
6
+ Project-URL: Documentation, https://github.com/openplanr/ldw/tree/main/docs
7
+ Project-URL: Issues, https://github.com/openplanr/ldw/issues
8
+ Project-URL: Source, https://github.com/openplanr/ldw
9
+ Author: AsemDevs
10
+ Maintainer: OpenPlanr
11
+ License-Expression: Apache-2.0
12
+ License-File: LICENSE
13
+ License-File: NOTICE
14
+ Keywords: ddev,developer-experience,devops,docker-compose,kind,orbstack,tilt
15
+ Classifier: Development Status :: 3 - Alpha
16
+ Classifier: Environment :: Console
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: License :: OSI Approved :: Apache Software License
19
+ Classifier: Operating System :: MacOS
20
+ Classifier: Operating System :: POSIX :: Linux
21
+ Classifier: Programming Language :: Python :: 3 :: Only
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Programming Language :: Python :: 3.14
25
+ Classifier: Topic :: Software Development :: Build Tools
26
+ Classifier: Topic :: System :: Systems Administration
27
+ Requires-Python: <3.15,>=3.12
28
+ Requires-Dist: click<9,>=8.1
29
+ Requires-Dist: filelock<5,>=3.16
30
+ Requires-Dist: httpx<1,>=0.28
31
+ Requires-Dist: jinja2<4,>=3.1
32
+ Requires-Dist: platformdirs<5,>=4.3
33
+ Requires-Dist: pydantic<3,>=2.10
34
+ Requires-Dist: pyyaml<7,>=6.0.2
35
+ Requires-Dist: rich<16,>=13.9
36
+ Requires-Dist: tomli-w<2,>=1.1
37
+ Requires-Dist: typer<1,>=0.15
38
+ Provides-Extra: dev
39
+ Requires-Dist: import-linter<3,>=2.5; extra == 'dev'
40
+ Requires-Dist: mypy<3,>=1.14; extra == 'dev'
41
+ Requires-Dist: pre-commit<5,>=4; extra == 'dev'
42
+ Requires-Dist: pytest-cov<8,>=6; extra == 'dev'
43
+ Requires-Dist: pytest-xdist<4,>=3.6; extra == 'dev'
44
+ Requires-Dist: pytest<10,>=8.3; extra == 'dev'
45
+ Requires-Dist: respx<1,>=0.22; extra == 'dev'
46
+ Requires-Dist: ruff<1,>=0.9; extra == 'dev'
47
+ Description-Content-Type: text/markdown
48
+
49
+ # ldw-core
50
+
51
+ The core of the [Local DevOps Workbench](https://github.com/openplanr/ldw): evidence-based project
52
+ discovery, the project manifest, and the local `ldw up`, `status`, `logs`, and `down` lifecycle.
53
+
54
+ Install `local-devops-workbench` for the full workbench with every first-party plugin. Install
55
+ `ldw-core` alone for the minimal core; plugins add their commands when installed next to it.
@@ -0,0 +1,134 @@
1
+ local_devops_workbench/__init__.py,sha256=29XolayjZXCC8YevcAgHYDiAzRrJXycSNo0gbAORU7M,1380
2
+ local_devops_workbench/__main__.py,sha256=09xIP-TD1o5cpe3HdvbBWweeQrKwWi3jMo1TX9-u6Xw,83
3
+ local_devops_workbench/assets.py,sha256=J-bWokoUtBEZl2c_NRq_NH8Q5MGvzvK7OKAyEYIch20,1694
4
+ local_devops_workbench/config.py,sha256=pi3mNGaEa6kI0vhkmCGxhfLqls3SaKpg-GCCFxjm878,20015
5
+ local_devops_workbench/declarative_packs.py,sha256=L7FR0iZp7CREC5IBB-G3Nj6DtMSlsU6k2H5CGvzI9B8,25289
6
+ local_devops_workbench/detectors.py,sha256=lGPRHnDSRpduxt0aqKYT5iNz7aMPs1VKNEmrHXSwqZg,417
7
+ local_devops_workbench/errors.py,sha256=aDj3dcA8_hoTbZKuARP24NqDDaWNYfXv9VQeEZph65Y,2023
8
+ local_devops_workbench/executor.py,sha256=VgzHKi2jiBFawsh9hcqF2euJWUpy1nwjEdvzsMOf8kw,4120
9
+ local_devops_workbench/extensions.py,sha256=8VQ_dvZl3LttEqtDVABE4xOhFroiCgvHV9dhF5QENdE,16679
10
+ local_devops_workbench/failure_labs.py,sha256=Y_5ZoOw_Q4mYz4ulrB7Od8keN61jhDS7a3orx7F-Yes,1354
11
+ local_devops_workbench/graph.py,sha256=VmqFav1tqTK0VThg7s7f_pU4D-U9Gf0TPvfDwm6TcQg,1804
12
+ local_devops_workbench/image_lock.py,sha256=8OrA97NOJi2KalOTxNXNfxToufJzloaxzZ_cXscis0k,2369
13
+ local_devops_workbench/install_hint.py,sha256=O2d9athKdGrBLCpT77LrxykZzi03eiymFzeLriptleM,1858
14
+ local_devops_workbench/integration_models.py,sha256=LslBd3j3pE4yj_72n7Q7HJQZox-30MdLCOxjQRB3ynU,24585
15
+ local_devops_workbench/integration_service.py,sha256=ZW3cET6DgSXyJg8vZANmBbYZWCTEC6IWQEfFdpaI0ac,85899
16
+ local_devops_workbench/kinds.py,sha256=9axv1eDVN0178wjYojz_dr7nYVxoKm47TQdyINUXNLs,4724
17
+ local_devops_workbench/kubernetes_context.py,sha256=oifDarK_tVuwj_E-v2wg21bwGlqIDECWy1Kp4hHym2M,17887
18
+ local_devops_workbench/lifecycle_probe.py,sha256=aTxwA73ESDL_B2NjnilS2fcOqHcRE88nwe1if6DzCRY,1880
19
+ local_devops_workbench/local_tls.py,sha256=kyTVE0EbPW3ORGmYIxsQvAP8qglT-6aYyqQZhEHuaps,6540
20
+ local_devops_workbench/models.py,sha256=EmT7ya9TpNSyRzGz2Qy7Ix3PBzr3d8M3tF11h9jT_jo,30018
21
+ local_devops_workbench/orchestration.py,sha256=8vTBkm_dFwv2yhTSWouQfcv0EbDumCz35dd-puMj07Y,51421
22
+ local_devops_workbench/owned_resources.py,sha256=Cd5FxeUPnzeKri4adNOQox8je-xRIh8N0LS7910zlNA,3116
23
+ local_devops_workbench/paths.py,sha256=KjSGJL9j_iM-wqfyZndkH7L-2kVgk2s_vgsrt2EOwEo,5404
24
+ local_devops_workbench/planner.py,sha256=3bbSUkm6uCjl8ZgNjOb4AWg8Bwioii8PkXOhhPxU4sU,2898
25
+ local_devops_workbench/plugin_api.py,sha256=F-ML99M_glz-ilpp4uzh1V66ryG_WOCqSOi9pmFCvY8,23898
26
+ local_devops_workbench/plugin_loading.py,sha256=TMAPaUuty3dVeaj1UYxhXgnS7VdL1uBe5hmgOV61zp4,2411
27
+ local_devops_workbench/ports.py,sha256=aNF6iJW8Q-xhjYQEdjAMqJc6pav67zLV4cUqp9V2msQ,19123
28
+ local_devops_workbench/prerequisites.py,sha256=FdSdO7OCwXs3ntvvggd0iNncT7RDzn9DTDhzUhwhSp8,9261
29
+ local_devops_workbench/presentation.py,sha256=QrSRZImTvo2dZR_pIHeGjqILbBs9ankQQAL6erJPzIQ,37498
30
+ local_devops_workbench/probes.py,sha256=an9uJpC06UQ1oupDPtUiwvnQc_ERiXoz1DXyAxrZ21E,805
31
+ local_devops_workbench/project_integrations.py,sha256=vrVNXwbnSaGal5h7s3uwDn_y0n6AaroVuZAp1gHT5XU,1638
32
+ local_devops_workbench/project_service.py,sha256=ZzyHbJ7UjTTAsHApdD1EO_sXX1AmfRAzjV3CrhtcvLY,9848
33
+ local_devops_workbench/py.typed,sha256=QNfQjH96nrVZyZ9GiXvALN47GcyNX6Xlr0F1EHt2ams,66
34
+ local_devops_workbench/reconciliation.py,sha256=2JeNLh8L0KYk9pEJXsAimxlArtd0Tt9Pj_laB6XZsfc,47485
35
+ local_devops_workbench/redaction.py,sha256=7FuDX-kw_oqp9xGXX6ZR7_QsUs2-7FQv7U3tpzlD5sY,3461
36
+ local_devops_workbench/release.py,sha256=OO5-AQVLmki8Y0ug1ybpBMY0oyjcG0gAVGd-BUE7RTE,3168
37
+ local_devops_workbench/repository_files.py,sha256=c24wR6UljPbVjb3OtMY-wHiPdx6lQ5AN-nM5RrrMBbg,22124
38
+ local_devops_workbench/runner.py,sha256=PCPDj2gD87HAKGt_TydYgiXfsRyFsIpliWjY64R28VU,14919
39
+ local_devops_workbench/runtime.py,sha256=JqrKgahwlpCFf_yKFvCl-064BXNWfNtjwzSCWRI7LTs,61985
40
+ local_devops_workbench/schema_migrations.py,sha256=8BixIaaVlzyRUdnpGE1UgESUr7I7MAVUVCDyg1RN7yI,11195
41
+ local_devops_workbench/secrets.py,sha256=UvRTFkDcEQjgh_XvtcUhzrf_tQIaCA9ehFPGyRd5cf0,5474
42
+ local_devops_workbench/sections.py,sha256=QuM_uy3xu3kzE3usYb5YDkbOpHKfL54x3FSz21NOUVU,11089
43
+ local_devops_workbench/session_control.py,sha256=BDcC3y-mQJJZEP99eCVdoHO_RajcVXidNqA-DDXoqNg,10022
44
+ local_devops_workbench/state.py,sha256=k2p_ocOZDfpnrz1QZNxoGpcndb2jSTK2GdBpVmp-vmo,32812
45
+ local_devops_workbench/teardown.py,sha256=uUwWNcfcY3SlfzECZtBjIRotAez8hHZCmOOtXluHvNI,11672
46
+ local_devops_workbench/tilt_brokers.py,sha256=jylq5ebwoLXpdiaaavh8WQFVopvJ07O3wvrAvJNwB0M,11170
47
+ local_devops_workbench/tilt_command.py,sha256=nRY5ikMy1PQNFSmOwe8POQGOcM2DJ-BQGdjf7VnPKwM,5996
48
+ local_devops_workbench/tool_versions.py,sha256=9ZvlrqmqGj4VxkknKLC9Efiz4BW6AqCm3k5byHTNXcY,453
49
+ local_devops_workbench/assets/charts/local-stack/Chart.yaml,sha256=a19ikhhebAJxJkN7obPHpdenoxsHT2GBzACXMrRNo7I,189
50
+ local_devops_workbench/assets/charts/local-stack/values.yaml,sha256=v1CozMtQAhJ0TxvS_eFZMz0_6KQEDpBKbUrj0QOlnsk,243
51
+ local_devops_workbench/assets/charts/local-stack/templates/_helpers.tpl,sha256=tUgaGG1fDbLZ3dgErN69Og7wNs1Swjcbx7n7TMpn3cA,656
52
+ local_devops_workbench/assets/charts/local-stack/templates/access.yaml,sha256=KTlShusNbh-vMKq7r_A19T5AqC23wizgR1kRaHXiSk0,875
53
+ local_devops_workbench/assets/charts/local-stack/templates/ingress.yaml,sha256=dr4O2IKQabLAeTmXfbBZ7M5U_wlzskx8ivIPgpyH76E,684
54
+ local_devops_workbench/assets/charts/local-stack/templates/migration.yaml,sha256=ST_wbDZ83EcAAAzjjyBUEhISw7vQmoxzYffStZXMJvM,2302
55
+ local_devops_workbench/assets/charts/local-stack/templates/networkpolicy.yaml,sha256=o12hWpBm8R4gueCvstmZ9YOoPCe5BUV67lrSOBNUSss,1324
56
+ local_devops_workbench/assets/charts/local-stack/templates/statefulsets.yaml,sha256=_aCJNhXLUb44jBu5hi_1GgbozOTFOtaDhKwv4t4NIS4,3095
57
+ local_devops_workbench/assets/charts/local-stack/templates/workloads.yaml,sha256=56MS5vrH3al73ppH1HUWGut9iPQgVw5dt662e98zsHg,4453
58
+ local_devops_workbench/assets/kind/kind-cluster-ci.yaml,sha256=Bz8CqjFQtSxLFR1xv_KkXEAxmrNU0UPiFs3gxzobvJM,614
59
+ local_devops_workbench/assets/kind/kind-cluster.yaml,sha256=H_Kv9DFt6JZhV3SnV47c_hb1Rl2vgdW45Mh4YsoMKjw,648
60
+ local_devops_workbench/assets/runtime/Tiltfile,sha256=HagmKYMe5R103BgGd7DX-VUZC-_UWodY1stwRLIRra0,2825
61
+ local_devops_workbench/assets/runtime/images.lock.toml,sha256=m7kSebHcrsvStHe5XkDEePABVmmUMzIUuIVikO37m3M,4310
62
+ local_devops_workbench/assets/runtime/tools.lock.toml,sha256=o-HAWZW9uhFdgWpbWec5e5gAJFGDtLHTKQHKqpqN-8E,3211
63
+ local_devops_workbench/assets/values/four-service.yaml,sha256=xw3OtYSSrM1tGHNFmzUMK6HNeAvOh8a6jqxfiWm-rK4,2305
64
+ local_devops_workbench/cli/__init__.py,sha256=hCusOR7ooW_4MMr0N51qCKYwPp1ahf8tQmLkZAJRgnQ,4396
65
+ local_devops_workbench/cli/_context.py,sha256=JZ_rEmto5Kh4qJv2mzOtVjMxNmhk-h6tpZOdebOnflg,11004
66
+ local_devops_workbench/cli/acceptance.py,sha256=xlOTVuRJxS8K7vnp4xIEgOIzt3g1Oe3YYxbSn380Em0,5590
67
+ local_devops_workbench/cli/agent.py,sha256=DRxqiOOgH9sCozLgYAmoE6i1GObeWCCu0qD77p-sQsQ,7549
68
+ local_devops_workbench/cli/backup.py,sha256=oneDMr1nKmJ2ClxtxGhaF5C5DXmbsGjY4KTTjS2up6I,4826
69
+ local_devops_workbench/cli/cache.py,sha256=799ZlPLxs5Gfm2vwXwLoO3xpF2iopjOQMJ6MZUtfi3o,1385
70
+ local_devops_workbench/cli/cluster.py,sha256=CsMYrvWHalDWPiNkYuCD_HJiLKYibmdneBfQTS7Aiok,1630
71
+ local_devops_workbench/cli/export.py,sha256=8dhsSBpULWBA-x2795ht6gjqELr6JokOcUfuNcrDJi8,4882
72
+ local_devops_workbench/cli/integration.py,sha256=DsQ1cRG6K9DKqjUwIUPNDkd20AkWAuuAcJhAo2EducY,20632
73
+ local_devops_workbench/cli/lifecycle.py,sha256=Wzg8QdC2_L-m79O4uH29nSx52MDaBvwd38RDxbR-qY8,28183
74
+ local_devops_workbench/cli/observe.py,sha256=azRM6zYhYJ6r-mkm0jtzqguM-AktDwlqRx1tJdVCdFw,11028
75
+ local_devops_workbench/cli/onboarding.py,sha256=DvSly5NAeGJWs38tg0OthjMMgN9d1CuTGlj793xgdyE,26607
76
+ local_devops_workbench/cli/plans.py,sha256=EWpVr6g_qlS1XZ-6kGnnb1dHwxbLUFGu_wSuzoRYbeU,15407
77
+ local_devops_workbench/cli/plugin.py,sha256=Kt5w-Rlgv5CK44RvrGO7WLX6AK0-U_NMEquTjiXzxRM,2216
78
+ local_devops_workbench/cli/project.py,sha256=JGl0wc_R1Knja-m2RUuhRHCacbWHQN3RO9Sbf4Xllm8,4398
79
+ local_devops_workbench/cli/runtime_cmds.py,sha256=HL89EOOkKnRulslqB8h3iKWXif7cnCuJV01REXCN3ls,7112
80
+ local_devops_workbench/discovery/__init__.py,sha256=6-uARHAYa_JF5tOwLmbEKh-Je4uO3h4nbbhlWVMPppg,829
81
+ local_devops_workbench/discovery/compose.py,sha256=Zpr_eQ2Plfl77H606HknMSa_JE6liMit-bKkBh8UjP4,25807
82
+ local_devops_workbench/discovery/fs_safety.py,sha256=-X-qscfS4x98Sr9j3_StMLClOUrHQGpsB9fuN_nWEqo,1986
83
+ local_devops_workbench/discovery/generators.py,sha256=L5OIxXmzxEfT1lzncGnVywERS5I04sCbLONGG7r0t7Q,1096
84
+ local_devops_workbench/discovery/identity.py,sha256=GlDbEd2LsZnlDL6ZlsrfeYWUcII6mhN-lbnr-I2xK9I,3305
85
+ local_devops_workbench/discovery/kubernetes.py,sha256=Wd56OJIzHo0x9S_M2Ds3jyCdmIoLq6tUJ99TA1j4NX0,12188
86
+ local_devops_workbench/discovery/native.py,sha256=930GS_Dge-cmSiAJ6RJneR6v-8xck2XGUA8DkYW8dK0,28531
87
+ local_devops_workbench/discovery/ports.py,sha256=xU5SDzEJgzrGGjicZUtsw_0ZLH4zbsWUo8g_YivXMHE,1932
88
+ local_devops_workbench/discovery/proposal.py,sha256=74TT-MY_QXMbw9FDp4yE7Y2fjc-Gju4l3WZSww_rHAk,25212
89
+ local_devops_workbench/discovery/questions.py,sha256=UlIIxUD26M_MQv4mQ2adKKNctOekT4j11838KdMDR2o,2706
90
+ local_devops_workbench/discovery/scanner.py,sha256=5T9SvJOH5a1oigoZ-fQvE0pXYvrP5rxKQhPW4UN-aAg,20788
91
+ local_devops_workbench/export/__init__.py,sha256=a84bruVqW0P7dbYU0o6rR7nVELiQ428DuALkeFRV8RQ,1509
92
+ local_devops_workbench/export/common.py,sha256=SYWrgfMU76mMi2O5dXVtpNIA7O9Pp97LczlL8_D7ZeU,2995
93
+ local_devops_workbench/export/mise.py,sha256=zEoZ-X8ugPAJWgSemawowOdGFIfIU61dr_FCsg51lzM,4365
94
+ local_devops_workbench/export/tiltfile.py,sha256=1mc7K_HXsX_4OxqY35HHM2TGRuCDbuFaEHlAGAg8BWM,5934
95
+ local_devops_workbench/export/templates/Tiltfile.j2,sha256=xax3elLaGpMZh_bVN_nUOeLlbRQPD5O1theuwWTiWlY,5026
96
+ local_devops_workbench/export/templates/mise.toml.j2,sha256=rBGDIuP15djYxt5PqOHXk1lZ54T0FZO8Gy-eGlcJRvU,2028
97
+ local_devops_workbench/providers/__init__.py,sha256=PPd27ZirAD0FB3B28kJk1FQcGzk6HkAYQs4ceIr1i7o,174
98
+ local_devops_workbench/providers/base.py,sha256=sgfGIRwAnM_rET2PvIL9PgFBrcHcHkbpzNk1cxotGig,537
99
+ local_devops_workbench/providers/common.py,sha256=ORRTLwfPxk2C9rrbX_oYdW_dfX2HowngmfuoCi8FzYE,5481
100
+ local_devops_workbench/providers/compose.py,sha256=xSj6RqLCA2Qy683BdLp3TcKo0FhqI-hgG6oSozqcIxE,3474
101
+ local_devops_workbench/providers/ddev.py,sha256=GUa3pBSKcsK-Hlz-xvSRpi3QWn7SNuegvnbNeLfpstI,4204
102
+ local_devops_workbench/providers/kubernetes.py,sha256=TdZln8pdTm7vgFZydTRNc-Ig7Fl8uo2_QkNBT_Q8leg,43454
103
+ local_devops_workbench/providers/mixed.py,sha256=1vPS8GYMLeorMjbSiMjmBX7H9oAXRJdSRmr2rLz1Lio,283
104
+ local_devops_workbench/providers/native.py,sha256=Aactys-8Ag4px5fst7G8Zy1Fg_XgChgFUJbQreofK7A,5406
105
+ local_devops_workbench/providers/registry.py,sha256=K8EhNBi6V6kmKCDpoZb9hsnzyihQcG4AWZ-NFUXRLqo,3583
106
+ local_devops_workbench/services/__init__.py,sha256=d78o99mmF3QCXs9CMY9Mt20WJvc1x7wqRbdT7akNBpQ,44
107
+ local_devops_workbench/services/acceptance.py,sha256=iEA4xSl12erj1ygdlOZEZlNhfAAdhfxY4KMtGGj1_kU,17167
108
+ local_devops_workbench/services/backup.py,sha256=8B7FcnVpYNZNLhdPlC6AStYZKQjyA8GWbgmjGORPvyI,18953
109
+ local_devops_workbench/services/bootstrap.py,sha256=FS_z7aYSm0jgLVouPAvjuo-cM2dYIfQ_J9zYT9cV6fQ,6473
110
+ local_devops_workbench/services/cache.py,sha256=Aw9JgWfJOgJzqUIzx5rBF0Wiync30Zkak30RU5PbQfo,3907
111
+ local_devops_workbench/services/context.py,sha256=zFT3BQj-UwyYVqR-iVx7z4GARVfkx1scgQKt2dYAdDk,7988
112
+ local_devops_workbench/services/doctor.py,sha256=umwRVWjvT4OQFKnzVl2UT5Cv9cbpmGAYHcX2C4IUnx4,20012
113
+ local_devops_workbench/services/host_runtime.py,sha256=dR_uKdB7k0Khm4Fw_FYH-sdq6HXl1cwSj9M4UxMurOc,18465
114
+ local_devops_workbench/services/plugins.py,sha256=NO9IUKRMfM5VlxBGjucA924-AxThRjuXgKLfMYiizp8,13339
115
+ local_devops_workbench/services/project_locator.py,sha256=AFoszO9jeUREl94k6jAiXxLr_qhaXn5QzUNzQLyhSAU,10653
116
+ local_devops_workbench/services/readiness.py,sha256=mQ2wmd5B-RLixVqa3cuDSEhPQmqEYf6_n-XEIv2nPlc,9984
117
+ local_devops_workbench/services/target_status.py,sha256=whnJQTjqHMW5GJstzK_06uKg2Uns8l8DLZ-8BgfK6EI,11538
118
+ local_devops_workbench/services/tilt.py,sha256=HWobt7aQzBxYGi7ccTFtIH18xXKMbMpt7DGgJIjBOiA,15893
119
+ local_devops_workbench/services/cluster/__init__.py,sha256=m1KZUus7XNUyfKkkT5kz7tRulVHxZJpnUShs3S8hmsg,1047
120
+ local_devops_workbench/services/cluster/base.py,sha256=GRkBtt0yxMyfDrSwcFwrDpfghCvAhqCq1HP1zUay_SQ,5598
121
+ local_devops_workbench/services/cluster/builder.py,sha256=SA_kBAg3Dp9F-IC4yQ83Uye7WKZJqaMKixZorELQ8LI,23432
122
+ local_devops_workbench/services/cluster/inspect.py,sha256=wGul5tQ4VTpLkH7ELsUvtggrI-X6TUox3NqGlwTaCUY,11553
123
+ local_devops_workbench/services/cluster/kubeconfig.py,sha256=NF4cK4Buew-JT3ys6tKBGoD7t9-OhNOcuVWpXcIvgX0,12698
124
+ local_devops_workbench/services/cluster/nodes.py,sha256=58iXarINBu4LBd7axa3NYsywTaEK1xZ8KBE8EHbatHU,14337
125
+ local_devops_workbench/services/cluster/registry.py,sha256=xAMvGbrocxtQn_QF04aKq44Zft4mcwyIKZ8CT-FAifA,20363
126
+ local_devops_workbench/services/cluster/service.py,sha256=d404qbooXVjVGtn9H-zQ4jiMecL2IXYmjHB3ydGisz4,25994
127
+ local_devops_workbench/services/cluster/tls.py,sha256=4O_Qf1APGmmSsEcwgtUZkVj-2EbnlOb1w3pefCzZgAA,1624
128
+ local_devops_workbench/_build_info.py,sha256=xBXdeaFd4am_Kfrd1kiOQPPZclnNb97UZcgwjUfQ2U8,186
129
+ ldw_core-0.2.1.dist-info/METADATA,sha256=w3dqd-j4M_fq4zjjYreM8efjRtOcUcSV0gRi6waWRHk,2365
130
+ ldw_core-0.2.1.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
131
+ ldw_core-0.2.1.dist-info/entry_points.txt,sha256=dTKHU6CYY4yJh_oPK9Q7dBF74Oog3xbtkZ2EQTYrIz8,56
132
+ ldw_core-0.2.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
133
+ ldw_core-0.2.1.dist-info/licenses/NOTICE,sha256=B5WkzrKU7AX6Q1Am_dPx3vuQm_3dE_kTSWOC9ic4rGE,168
134
+ ldw_core-0.2.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ ldw = local_devops_workbench.cli:main
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,4 @@
1
+ Local DevOps Workbench
2
+ Copyright 2026 AsemDevs and Local DevOps Workbench contributors
3
+
4
+ This product includes software developed by the Local DevOps Workbench project.
@@ -0,0 +1,42 @@
1
+ """Local DevOps Workbench."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from importlib.metadata import PackageNotFoundError, version
6
+ from typing import NamedTuple
7
+
8
+ from local_devops_workbench._build_info import BUILD_ID as _BUILD_ID
9
+ from local_devops_workbench._build_info import SOURCE_COMMIT as _SOURCE_COMMIT
10
+ from local_devops_workbench._build_info import SOURCE_DIRTY as _SOURCE_DIRTY
11
+ from local_devops_workbench._build_info import SOURCE_KIND as _SOURCE_KIND
12
+
13
+ # ldw-core is installed alone or under the local-devops-workbench meta-distribution.
14
+ try:
15
+ __version__ = version("ldw-core")
16
+ except PackageNotFoundError: # pragma: no cover - source tree without an installed distribution
17
+ __version__ = "0+unknown"
18
+
19
+
20
+ class BuildProvenance(NamedTuple):
21
+ build_id: str
22
+ source_commit: str
23
+ source_kind: str
24
+ source_dirty: bool | None
25
+
26
+
27
+ def build_provenance() -> BuildProvenance:
28
+ return BuildProvenance(_BUILD_ID, _SOURCE_COMMIT, _SOURCE_KIND, _SOURCE_DIRTY)
29
+
30
+
31
+ def version_summary() -> str:
32
+ provenance = build_provenance()
33
+ if provenance.source_dirty is True:
34
+ state = "dirty"
35
+ elif provenance.source_dirty is False:
36
+ state = "clean"
37
+ else:
38
+ state = "unknown"
39
+ return (
40
+ f"ldw {__version__} (build {provenance.build_id}; "
41
+ f"commit {provenance.source_commit}; source {provenance.source_kind}; state {state})"
42
+ )
@@ -0,0 +1,4 @@
1
+ from local_devops_workbench.cli import main
2
+
3
+ if __name__ == "__main__":
4
+ main()
@@ -0,0 +1,6 @@
1
+ """Generated build provenance; do not edit."""
2
+
3
+ SOURCE_COMMIT = '8b1888dedce4b652a3081b56292666501792272b'
4
+ SOURCE_DIRTY = False
5
+ SOURCE_KIND = 'embedded'
6
+ BUILD_ID = '0.2.1+g8b1888dedce4'
@@ -0,0 +1,7 @@
1
+ apiVersion: v2
2
+ name: local-stack
3
+ description: Generic local-only workload chart managed by Local DevOps Workbench
4
+ type: application
5
+ version: 0.1.0
6
+ appVersion: "1"
7
+ kubeVersion: ">=1.30.0-0"
@@ -0,0 +1,21 @@
1
+ {{- define "local-stack.name" -}}
2
+ {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
3
+ {{- end -}}
4
+
5
+ {{- define "local-stack.labels" -}}
6
+ app.kubernetes.io/part-of: {{ include "local-stack.name" . }}
7
+ app.kubernetes.io/managed-by: {{ .Release.Service }}
8
+ app.kubernetes.io/instance: {{ .Release.Name }}
9
+ local.devops.workbench/owned: "true"
10
+ {{- end -}}
11
+
12
+ {{- define "local-stack.image" -}}
13
+ {{- $root := index . 0 -}}
14
+ {{- $item := index . 1 -}}
15
+ {{- if $item.imageRef -}}
16
+ {{- $item.imageRef -}}
17
+ {{- else -}}
18
+ {{- $image := index $root.Values.images $item.image -}}
19
+ {{- printf "%s:%s" $image.repository $image.tag -}}
20
+ {{- end -}}
21
+ {{- end -}}
@@ -0,0 +1,34 @@
1
+ {{- if .Values.serviceAccount.create }}
2
+ apiVersion: v1
3
+ kind: ServiceAccount
4
+ metadata:
5
+ name: {{ include "local-stack.name" . }}
6
+ labels:
7
+ {{- include "local-stack.labels" . | nindent 4 }}
8
+ automountServiceAccountToken: false
9
+ ---
10
+ apiVersion: rbac.authorization.k8s.io/v1
11
+ kind: Role
12
+ metadata:
13
+ name: {{ include "local-stack.name" . }}-read
14
+ labels:
15
+ {{- include "local-stack.labels" . | nindent 4 }}
16
+ rules:
17
+ - apiGroups: [""]
18
+ resources: ["configmaps"]
19
+ verbs: ["get", "list"]
20
+ ---
21
+ apiVersion: rbac.authorization.k8s.io/v1
22
+ kind: RoleBinding
23
+ metadata:
24
+ name: {{ include "local-stack.name" . }}-read
25
+ labels:
26
+ {{- include "local-stack.labels" . | nindent 4 }}
27
+ subjects:
28
+ - kind: ServiceAccount
29
+ name: {{ include "local-stack.name" . }}
30
+ roleRef:
31
+ apiGroup: rbac.authorization.k8s.io
32
+ kind: Role
33
+ name: {{ include "local-stack.name" . }}-read
34
+ {{- end }}
@@ -0,0 +1,29 @@
1
+ {{- range .Values.ingresses }}
2
+ {{- if (default true .enabled) }}
3
+ apiVersion: networking.k8s.io/v1
4
+ kind: Ingress
5
+ metadata:
6
+ name: {{ .name }}
7
+ labels:
8
+ {{- include "local-stack.labels" $ | nindent 4 }}
9
+ annotations:
10
+ nginx.ingress.kubernetes.io/ssl-redirect: "true"
11
+ spec:
12
+ ingressClassName: nginx
13
+ tls:
14
+ - hosts: [{{ .host | quote }}]
15
+ secretName: ldw-local-tls
16
+ rules:
17
+ - host: {{ .host | quote }}
18
+ http:
19
+ paths:
20
+ - path: {{ default "/" .path }}
21
+ pathType: Prefix
22
+ backend:
23
+ service:
24
+ name: {{ .service }}
25
+ port:
26
+ name: {{ .port }}
27
+ ---
28
+ {{- end }}
29
+ {{- end }}
@@ -0,0 +1,65 @@
1
+ {{- if .Values.migration.enabled }}
2
+ apiVersion: batch/v1
3
+ kind: Job
4
+ metadata:
5
+ name: {{ .Values.migration.name }}-{{ .Release.Revision }}
6
+ labels:
7
+ {{- include "local-stack.labels" . | nindent 4 }}
8
+ annotations:
9
+ helm.sh/hook: post-install,pre-upgrade
10
+ helm.sh/hook-weight: "5"
11
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
12
+ spec:
13
+ backoffLimit: 1
14
+ activeDeadlineSeconds: {{ default 300 .Values.migration.timeoutSeconds }}
15
+ template:
16
+ metadata:
17
+ labels:
18
+ {{- include "local-stack.labels" . | nindent 8 }}
19
+ app.kubernetes.io/name: {{ .Values.migration.name }}
20
+ spec:
21
+ restartPolicy: Never
22
+ automountServiceAccountToken: false
23
+ {{- with .Values.migration.initContainers }}
24
+ initContainers:
25
+ {{- range . }}
26
+ - name: {{ .name }}
27
+ image: {{ .imageRef | quote }}
28
+ imagePullPolicy: IfNotPresent
29
+ command: {{ toJson .command }}
30
+ {{- if $.Values.secretName }}
31
+ envFrom:
32
+ - secretRef:
33
+ name: {{ $.Values.secretName }}
34
+ {{- end }}
35
+ securityContext:
36
+ allowPrivilegeEscalation: false
37
+ capabilities:
38
+ drop: ["ALL"]
39
+ runAsNonRoot: {{ if hasKey . "runAsNonRoot" }}{{ .runAsNonRoot }}{{ else }}true{{ end }}
40
+ resources:
41
+ requests: {cpu: 25m, memory: 32Mi}
42
+ limits: {cpu: 250m, memory: 128Mi}
43
+ {{- end }}
44
+ {{- end }}
45
+ containers:
46
+ - name: migration
47
+ image: {{ include "local-stack.image" (list . .Values.migration) | quote }}
48
+ command: {{ toJson .Values.migration.command }}
49
+ {{- if .Values.secretName }}
50
+ envFrom:
51
+ - secretRef:
52
+ name: {{ .Values.secretName }}
53
+ {{- end }}
54
+ securityContext:
55
+ allowPrivilegeEscalation: false
56
+ capabilities:
57
+ drop: ["ALL"]
58
+ {{- with .Values.migration.runAsUser }}
59
+ runAsUser: {{ . }}
60
+ {{- end }}
61
+ runAsNonRoot: {{ if hasKey .Values.migration "runAsNonRoot" }}{{ .Values.migration.runAsNonRoot }}{{ else }}true{{ end }}
62
+ resources:
63
+ requests: {cpu: 50m, memory: 128Mi}
64
+ limits: {cpu: 500m, memory: 512Mi}
65
+ {{- end }}