Skip to content

Commit cffa8d6

Browse files
authored
add user example manifest for ecosystem (#507)
1 parent 7607c0c commit cffa8d6

3 files changed

Lines changed: 47 additions & 3 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "user_example"
2+
description: "Example element with IAM resources for ecosystem"
3+
schema_version: 1
4+
version: "1.0.0"
5+
api_version: "v1"
6+
7+
requirements:
8+
core:
9+
from_version: "0.0.0"
10+
11+
resources:
12+
$core.iam.organizations:
13+
jdoe_corp:
14+
name: "jdoe-corp"
15+
description: "John Corporation"
16+
17+
$core.iam.projects:
18+
jdoe_pr:
19+
name: "jdoe-pr"
20+
description: "John environment"
21+
organization: "$core.iam.organizations.$jdoe_corp:uuid"
22+
23+
$core.iam.users:
24+
jdoe:
25+
username: "jdoe"
26+
email: "jdoe@corp.com"
27+
password: "12345678"
28+
first_name: "John"
29+
last_name: "Doe"
30+
description: "production engineer"
31+
32+
$core.iam.rolebinding:
33+
jdoe_global_role_binding:
34+
role: "726f6c65-0000-0000-0000-000000000002"
35+
user: $core.iam.users.$jdoe:uuid
36+
jdoe_project_role_binding:
37+
role: "726f6c65-0000-0000-0000-000000000002"
38+
user: $core.iam.users.$jdoe:uuid
39+
project: $core.iam.projects.$jdoe_pr:uuid
40+
41+
$core.iam.organizations_members:
42+
jdoe_organizations_member:
43+
organization: "$core.iam.organizations.$jdoe_corp:uuid"
44+
user: $core.iam.users.$jdoe:uuid
45+
role: "OWNER"

exordos_core/user_api/iam/dm/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ class OrganizationMember(
726726
models.ModelWithUUID,
727727
models.ModelWithTimestamp,
728728
orm.SQLStorableMixin,
729+
ua_models.TargetResourceMixin,
729730
):
730731
__tablename__ = "iam_organization_members"
731732

migrations/0067-init-border-ec37b4.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ def _u(name: str) -> str:
4141

4242
class MigrationStep(migrations.AbstractMigrationStep):
4343
def __init__(self):
44-
self._depends = [
45-
"0066-machine-pools-driver-spec-kind-migration-138d02.py"
46-
]
44+
self._depends = ["0066-machine-pools-driver-spec-kind-migration-138d02.py"]
4745

4846
@property
4947
def migration_id(self):

0 commit comments

Comments
 (0)