Skip to content

Commit

Permalink
For custom provider must still use builtin CLI values.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Sep 17, 2024
1 parent 50a8e10 commit 9b6703d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#@ load("@ytt:data", "data")
#@ load("@ytt:overlay", "overlay")
#@ load("educates.lib.yaml", "copy_all_educates_values")
#@ load("educates.lib.yaml", "copy_builtin_cli_values")

#! This copies user provided values for the custom infrastructure provider.
#! This copies only builtin CLI provides values.

#! #@overlay/match-child-defaults missing_ok=True
#! clusterPackages:
#! educates:
#! settings: #@ copy_all_educates_values()
#@overlay/match-child-defaults missing_ok=True
clusterPackages:
educates:
settings: #@ copy_builtin_cli_values()
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,14 @@ lookupService:
#@ if/end hasattr(data.values.lookupService, "ingressPrefix") and data.values.lookupService.ingressPrefix != None:
ingressPrefix: #@ data.values.lookupService.ingressPrefix
#@ end

#@ def copy_builtin_cli_values():
#@ if/end hasattr(data.values, "imageRegistry") and data.values.imageRegistry != None:
imageRegistry:
#@ if/end hasattr(data.values.imageRegistry, "namespace") and data.values.imageRegistry.namespace != None:
namespace: #@ data.values.imageRegistry.namespace
#@ if/end hasattr(data.values.imageRegistry, "host") and data.values.imageRegistry.host != None:
host: #@ data.values.imageRegistry.host
#@ if/end hasattr(data.values, "version") and data.values.version != None:
version: #@ data.values.version
#@ end

0 comments on commit 9b6703d

Please sign in to comment.