Giter Site home page Giter Site logo

repository's Introduction

SpaceONE Repository Service

Release Notes

v1.4.1

  • Support Private Docker Registry

Configuration

FOR AWS ECR User

CONNECTOR:
	RegistryConnector:
		host: https://<account_id>.dkr.ecr.<region_name>.amazonaws.com
		verify_ssl: False
		username: AWS
		api_version: 2

repository's People

Contributors

admin-cloudforet avatar admin-spaceone avatar choonho avatar geunjelee avatar gikang82 avatar immin5 avatar jihyungsong avatar joon0615 avatar ku524 avatar sooyoung98 avatar stat-kwon avatar umi0410 avatar whdalsrnt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

repository's Issues

Standard example of plugin

Purpose

Repository maintains plugin information.

  • plugin
  • schema
  • policy

We want to maintain public information as code.

Plugin

Every plugin must be registered in repository service.

API: repository.Plugin.register

The default file is located at
{plugin repository}/test/spacectl/register_plugin.yaml

For example, plugin-appdynamics-inven-collector

The file path is plugin-appdynamics-inven-collector/test/spacectl/register_plugin.yaml

Error is occured at list a Schema

I am encountering the following error message when querying the Schema (list) in the repository service. I have currently installed it using the Helm chart. the chart version is 1.12.12. The repository image is cloudforet/repository:1.12.5.

> helm list
NAME       	NAMESPACE	REVISION	UPDATED                             	STATUS  	CHART                     	APP VERSION
cloudforet 	spaceone 	5       	2023-12-26 22:40:25.170089 +0900 KST	deployed	spaceone-1.12.12          	1.12.12

Pod log

2023-12-26T23:42:28.558Z [DEBUG] a692a8b3b8199047c33f86db34954579 domain-17db7164329b [email protected] Schema.list (authentication_api_key_handler.py:45) [_check_api_key] check api key state (api-key-e0fb57a341a8)
2023-12-26T23:42:28.578Z [INFO] a692a8b3b8199047c33f86db34954579 domain-17db7164329b [email protected] Schema.list (service.py:111) (REQUEST) => {"query": {}, "repository_id": "repo-managed"}
2023-12-26T23:42:28.585Z [ERROR]     (api.py:69) (Error) => 'SchemasInfo' load failed. (reason = Parameter to MergeFrom() must be instance of same class: expected google.protobuf.ListValue got float.)
	error_code = ERROR_LOCATOR
	status_code = INTERNAL
	message = 'SchemasInfo' load failed. (reason = Parameter to MergeFrom() must be instance of same class: expected google.protobuf.ListValue got float.)
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/spaceone_core-0.0.0-py3.8.egg/spaceone/core/locator.py", line 47, in get_info
    return getattr(info_module, name_or_object)(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/spaceone_repository-1.12.5-py3.8.egg/spaceone/repository/info/schema_info.py", line 39, in SchemasInfo
    return schema_pb2.SchemasInfo(results=list(
  File "/usr/local/lib/python3.8/site-packages/spaceone_repository-1.12.5-py3.8.egg/spaceone/repository/info/schema_info.py", line 35, in SchemaInfo
    return schema_pb2.SchemaInfo(**info)
TypeError: Parameter to MergeFrom() must be instance of same class: expected google.protobuf.ListValue got float.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/spaceone_core-0.0.0-py3.8.egg/spaceone/core/pygrpc/api.py", line 91, in wrapper
    response_or_iterator = func(self, request_or_iterator, context)
  File "/usr/local/lib/python3.8/site-packages/spaceone_repository-1.12.5-py3.8.egg/spaceone/repository/api/v1/schema.py", line 38, in list
    return self.locator.get_info('SchemasInfo', schemas_data, total_count, minimal=self.get_minimal(params))
  File "/usr/local/lib/python3.8/site-packages/spaceone_core-0.0.0-py3.8.egg/spaceone/core/service/service.py", line 50, in __exit__
    raise exc_val
  File "/usr/local/lib/python3.8/site-packages/spaceone_repository-1.12.5-py3.8.egg/spaceone/repository/api/v1/schema.py", line 38, in list
    return self.locator.get_info('SchemasInfo', schemas_data, total_count, minimal=self.get_minimal(params))
  File "/usr/local/lib/python3.8/site-packages/spaceone_core-0.0.0-py3.8.egg/spaceone/core/locator.py", line 55, in get_info
    raise ERROR_LOCATOR(name=name_or_object, reason=e, _meta={'type': 'info'})
spaceone.core.error.ERROR_LOCATOR:
	error_code = ERROR_LOCATOR
	status_code = INTERNAL
	message = 'SchemasInfo' load failed. (reason = Parameter to MergeFrom() must be instance of same class: expected google.protobuf.ListValue got float.)

Change AWS Schema from Repository Service

AWS Assume Role (aws_assume_role)

{
  "schema": {
    "properties": {
      ...
      "external_id": {
        "type": "string",
        "minLength": 4,
        "title": "External ID",
        "format": "generate_id",
        "markdown": "[How to use an external ID?](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html)"
      }
    }
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.