コード例 #1
0
def update_secret_binding(name, namespace, new, old, memo, **_):
  '''
    Process the update of a secretbindings resource
  '''

  memo.sb_controller.update_secret_binding(
    SecretBindingsController.get_object(name, namespace, old),
    SecretBindingsController.get_object(name, namespace, new)
  )
コード例 #2
0
def update_secret_binding(name, namespace, new, old, patch, memo, **_):
    '''
    Process the update of a secretbindings resource
  '''

    old_bind = SecretBindingsController.get_object(name, namespace, old)
    new_bind = SecretBindingsController.get_object(name, namespace, new)
    memo.sb_controller.update_secret_binding(old_bind, new_bind)

    if not new_bind.compare_spec(new):
        patch['spec'] = new_bind.get_spec()
コード例 #3
0
def create_secret_binding(name, namespace, spec, memo, **_):
  '''
    Process the creation of a secretbindings resource
  '''
  
  bind = SecretBindingsController.get_object(name, namespace, spec)
  memo.sb_controller.create_secret_binding(bind)
コード例 #4
0
def create_secret_binding(name, namespace, spec, patch, memo, **_):
    '''
    Process the creation of a secretbindings resource
  '''

    bind = SecretBindingsController.get_object(name, namespace, spec)
    memo.sb_controller.create_secret_binding(bind)

    if not bind.compare_spec(spec):
        patch['spec'] = bind.get_spec()
コード例 #5
0
ファイル: main.py プロジェクト: esk8s/esk
def get_controllers():
    main_controller = ESKEngine()

    return (ExternalSecretsController(main_controller),
            SecretBindingsController(main_controller))