Class: Kustomize::PluginRegistry
- Inherits:
-
Object
- Object
- Kustomize::PluginRegistry
- Includes:
- Singleton
- Defined in:
- lib/kustomize/plugin_registry.rb
Instance Attribute Summary collapse
-
#probe_queue ⇒ Object
readonly
Returns the value of attribute probe_queue.
Instance Method Summary collapse
- #get(api_version:, kind:) ⇒ Object
-
#initialize ⇒ PluginRegistry
constructor
A new instance of PluginRegistry.
Constructor Details
#initialize ⇒ PluginRegistry
Returns a new instance of PluginRegistry.
8 9 10 11 |
# File 'lib/kustomize/plugin_registry.rb', line 8 def initialize @klasses = {} @probe_queue = [] end |
Instance Attribute Details
#probe_queue ⇒ Object (readonly)
Returns the value of attribute probe_queue.
13 14 15 |
# File 'lib/kustomize/plugin_registry.rb', line 13 def probe_queue @probe_queue end |
Instance Method Details
#get(api_version:, kind:) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/kustomize/plugin_registry.rb', line 15 def get(api_version:, kind:) drain_probe_queue! rc_target_id = make_rc_target_id(api_version, kind) @klasses[rc_target_id] end |