Example #1
0
  def create_secret(self, secret: ExternalSecret) -> ExternalSecret:
    '''
      Process the creation of an externalsecrets resource
    '''

    backend_client = self.__controller.get_backend_client(secret.get_backend())
    self.__controller.can_access_secret(secret)

    secret.check_can_create()

    backend_client.create_secret(secret)

    return secret
    def create_secret(self, secret: ExternalSecret) -> ExternalSecret:
        '''
      Process the creation of an externalsecrets resource
    '''

        backend_client = self.__controller.get_backend_client(
            secret.get_backend())
        secret.check_can_create()

        self.__controller.can_access_secret(secret)

        # changed_spec['values'], masked_values = generate_secret_values(values)
        backend_client.create_secret(secret)

        return secret