Introducing Aquayman – DZone Cloud | xxxIntroducing Aquayman – DZone Cloud – xxx
菜单

Introducing Aquayman – DZone Cloud

四月 30, 2020 - MorningStar

Over a million developers have joined DZone.

  • Introducing Aquayman - DZone Cloud

    {{node.title}}

    {{node.type}} · {{ node.urlSource.name }} by

    Download {{node.downloads}}

  • {{totalResults}} search results

{{announcement.body}}

{{announcement.title}}

Let’s be friends:

= 1024)” dc-slot=”ads.sl1.slot(articles[0], 0)” tags=”ads.sl1.tags(articles[0], 0)” size=”ads.sl1.size(articles[0], 0)” style=”border:0;”>
1 && !articles[0].partner.isSponsoringArticle && (width >= 1024)” dc-slot=”ads.sb2.slot(articles[0], 0)” tags=”ads.sb2.tags(articles[0], 0)” size=”ads.sb2.size(articles[0], 0)” is-nobid=”true”>

Introducing Aquayman

DZone ‘s Guide to

Introducing Aquayman

This brief article introduces Aquayman, a quay manager that helps manage the Github accounts of your organization by changing a single YAML file.

Jun. 07, 20 · Cloud Zone ·

Free Resource

Join the DZone community and get the full member experience.

Join For Free

At Loodse, we’re using Quay.io to host our various Docker repositories. Over the last few years, cruft accumulated and we noticed that keeping team memberships up-to-date as employees and customers change became a hassle.

For Github we already make use of Peribolos, a wonderful tool to manage your Github organization declaratively. For quay we unfortunately did not find an equivalent solution, so we made our own.

Say hello to Aquayman (short for “A Quay Manager”). It allows you to manage teams, memberships, and robot accounts for your organization by just editing a single YAML file.

To get started, it’s best to download the latest release and export your current configuration (not just as a starting point, but also as a backup):

Shell

 

xxxxxxxxxx
1

20

 

1

$ wget https://github.com/kubermatic-labs/aquayman/releases/download/v0.1.2/aquayman_0.1.2_linux_amd64.zip

2

$ unzip aquayman_0.1.2_linux_amd64.zip aquayman

3

 

4

# prepare your configuration file by setting the org name

5

$ echo "organization: mytestorg" > mytestorg.yaml

6

 

7

# use Aquayman to dump your existing configuration

8

$ ./aquayman -config mytestorg.yaml -export

9

2020/05/14 13:56:55 ► Exporting organization mytestorg…

10

$ wget https://github.com/kubermatic-labs/aquayman/releases/download/v0.1.2/aquayman_0.1.2_linux_amd64.zip

0

11

$ wget https://github.com/kubermatic-labs/aquayman/releases/download/v0.1.2/aquayman_0.1.2_linux_amd64.zip

1

12

$ wget https://github.com/kubermatic-labs/aquayman/releases/download/v0.1.2/aquayman_0.1.2_linux_amd64.zip

2

13

$ wget https://github.com/kubermatic-labs/aquayman/releases/download/v0.1.2/aquayman_0.1.2_linux_amd64.zip

3

14

$ wget https://github.com/kubermatic-labs/aquayman/releases/download/v0.1.2/aquayman_0.1.2_linux_amd64.zip

4

15

$ wget https://github.com/kubermatic-labs/aquayman/releases/download/v0.1.2/aquayman_0.1.2_linux_amd64.zip

5

16

$ wget https://github.com/kubermatic-labs/aquayman/releases/download/v0.1.2/aquayman_0.1.2_linux_amd64.zip

6

17

$ wget https://github.com/kubermatic-labs/aquayman/releases/download/v0.1.2/aquayman_0.1.2_linux_amd64.zip

7

18

$ wget https://github.com/kubermatic-labs/aquayman/releases/download/v0.1.2/aquayman_0.1.2_linux_amd64.zip

8

19

$ wget https://github.com/kubermatic-labs/aquayman/releases/download/v0.1.2/aquayman_0.1.2_linux_amd64.zip

9

20

$ unzip aquayman_0.1.2_linux_amd64.zip aquayman

0

Your mytestorg.yaml will now be updated and look something like this:

YAML

 

$ unzip aquayman_0.1.2_linux_amd64.zip aquayman

1

1

35

 

1

$ unzip aquayman_0.1.2_linux_amd64.zip aquayman

2

2

$ unzip aquayman_0.1.2_linux_amd64.zip aquayman

3

3

$ unzip aquayman_0.1.2_linux_amd64.zip aquayman

4

4

$ unzip aquayman_0.1.2_linux_amd64.zip aquayman

5

5

$ unzip aquayman_0.1.2_linux_amd64.zip aquayman

6

6

$ unzip aquayman_0.1.2_linux_amd64.zip aquayman

7

7

$ unzip aquayman_0.1.2_linux_amd64.zip aquayman

8

8

$ unzip aquayman_0.1.2_linux_amd64.zip aquayman

9

9

 

0

10

 

1

11

 

2

12

 

3

13

 

4

14

 

5

15

 

6

16

 

7

17

 

8

18

 

9

19

# prepare your configuration file by setting the org name

0

20

# prepare your configuration file by setting the org name

1

21

# prepare your configuration file by setting the org name

2

22

# prepare your configuration file by setting the org name

3

23

# prepare your configuration file by setting the org name

4

24

# prepare your configuration file by setting the org name

5

25

# prepare your configuration file by setting the org name

6

26

# prepare your configuration file by setting the org name

7

27

# prepare your configuration file by setting the org name

8

28

# prepare your configuration file by setting the org name

9

29

$ echo "organization: mytestorg" > mytestorg.yaml

0

30

$ echo "organization: mytestorg" > mytestorg.yaml

1

31

$ echo "organization: mytestorg" > mytestorg.yaml

2

32

$ echo "organization: mytestorg" > mytestorg.yaml

3

33

$ echo "organization: mytestorg" > mytestorg.yaml

4

34

$ echo "organization: mytestorg" > mytestorg.yaml

5

35

$ echo "organization: mytestorg" > mytestorg.yaml

6

(The Aquayman repository contains a documented example configuration.)

If you start with an existing, messy organization, your next step will probably be to clean up your configuration a bit. Once you are satisfied, you can apply the configuration:

Shell

 

$ echo "organization: mytestorg" > mytestorg.yaml

7

1

13

 

1

$ echo "organization: mytestorg" > mytestorg.yaml

8

2

$ echo "organization: mytestorg" > mytestorg.yaml

9

3

 

0

4

 

1

5

 

2

6

 

3

7

 

4

8

 

5

9

 

6

10

 

7

11

 

8

12

 

9

13

# use Aquayman to dump your existing configuration

0

Aquayman shows you a diff-style output, hinting at the actions it would perform. If you are once again happy, you can run it again with the -confirm flag.

Shell

 

x
 

1

# use Aquayman to dump your existing configuration

1

2

# use Aquayman to dump your existing configuration

2

3

# use Aquayman to dump your existing configuration

3

4

# use Aquayman to dump your existing configuration

4

Congratulations, time to grab a coffee!

At Loodse we manage our configuration in Github, so we get a nice review-workflow whenever permissions need to change, have an audit trail, and can restrict the permissions to manage our organization even further. The less human intervention needed, the better.

Like This Article? Read More From DZone

Topics:
aquayman ,container ,kubernetes ,organization management ,yaml

Opinions expressed by DZone contributors are their own.

Cloud Partner Resources

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.linkDescription }}

{{ parent.urlSource.name }}

by

CORE

· {{ parent.articleDate | date:’MMM. dd, yyyy’ }} {{ parent.linkDate | date:’MMM. dd, yyyy’ }}


Notice: Undefined variable: canUpdate in /var/www/html/wordpress/wp-content/plugins/wp-autopost-pro/wp-autopost-function.php on line 51