kdep 0.4.3 → 0.4.4
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.
- checksums.yaml +4 -4
- data/lib/kdep/commands/apply.rb +11 -0
- data/lib/kdep/version.rb +1 -1
- data/templates/resources/cronjob.yml.erb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43bdf0f4f94cbd1170fbffe7adf406ec3dc47b3a3c05a4c28d10fe56b53d7841
|
|
4
|
+
data.tar.gz: 71b4d6b94ccd86fecab7f87cee451edbda62065f9f7c4a6ad0c59569a521905f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ad745df8ac27c8525dd7dd6693ab2d8353950ada764783532b42540cf4392dfa862a4ead9ec360a833bb301fd0448ed7acd636594be15aa08fcbcabe655e652
|
|
7
|
+
data.tar.gz: 9a6d018d56d79c6c5f6ee4120fcb3a2b5b13cef257578e22b717c1cf26772d6bdc9339dd03ce4b285e48a2cbcc01e3ff401f8af4bc060864c90f981e8dd6aa17
|
data/lib/kdep/commands/apply.rb
CHANGED
|
@@ -50,6 +50,17 @@ module Kdep
|
|
|
50
50
|
exit 1
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
# Inject tag from state.yml. Without this, image-based presets render
|
|
54
|
+
# `<image>:latest` — a tag Leadfy never publishes — and apply silently
|
|
55
|
+
# ships an unpullable CronJob/Deployment (the 2026-05-22 mcp-finan
|
|
56
|
+
# ingest outage). render and diff already do this; apply was the last
|
|
57
|
+
# command that ignored state.yml.
|
|
58
|
+
if (state_tag = Kdep::State.tag(deploy_dir))
|
|
59
|
+
config["tag"] = state_tag
|
|
60
|
+
else
|
|
61
|
+
@ui.warn("No state.yml in #{deploy_dir} -- applying with preset default tag (likely :latest). Run 'kdep bump' to establish state.")
|
|
62
|
+
end
|
|
63
|
+
|
|
53
64
|
# Load preset resources and render
|
|
54
65
|
preset = Kdep::Preset.new(config["preset"], deploy_dir)
|
|
55
66
|
resources = preset.resources
|
data/lib/kdep/version.rb
CHANGED
|
@@ -7,6 +7,18 @@ spec:
|
|
|
7
7
|
schedule: "<%= @config["schedule"] %>"
|
|
8
8
|
<% if @config.key?("suspend") -%>
|
|
9
9
|
suspend: <%= @config["suspend"] %>
|
|
10
|
+
<% end -%>
|
|
11
|
+
<% if @config["concurrency_policy"] -%>
|
|
12
|
+
concurrencyPolicy: <%= @config["concurrency_policy"] %>
|
|
13
|
+
<% end -%>
|
|
14
|
+
<% if @config.key?("starting_deadline_seconds") -%>
|
|
15
|
+
startingDeadlineSeconds: <%= @config["starting_deadline_seconds"] %>
|
|
16
|
+
<% end -%>
|
|
17
|
+
<% if @config.key?("successful_jobs_history_limit") -%>
|
|
18
|
+
successfulJobsHistoryLimit: <%= @config["successful_jobs_history_limit"] %>
|
|
19
|
+
<% end -%>
|
|
20
|
+
<% if @config.key?("failed_jobs_history_limit") -%>
|
|
21
|
+
failedJobsHistoryLimit: <%= @config["failed_jobs_history_limit"] %>
|
|
10
22
|
<% end -%>
|
|
11
23
|
jobTemplate:
|
|
12
24
|
spec:
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kdep
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Leadfy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: envspec
|