Given changes to the method AKS uses to address permissions of workloads, this tool is no longer relavent.It is being placed on archive 7/26/2022
Read in a list of azure managed identity and convert them to YAML for use with aad-pod-identity
standard python setup
- create a
venv
folder in your root locally. - setup a local venv
virtualenv -p `which python3` venv
- activate local environment either in editor(like vsCode) or in terminal
source venv/bin/activate
- install your requirements
pip install -r requirements.txt
1.Run python3 -m unittest tests/test_converter.py
- from the root directory execute the build
docker build -t identity_converter:latest
- Default data will be kept inside the container when you run
docker run identity_converter:latest
It is recommended to run this with an attached host volume, so you can provide input and recieve output.
to do this, run with the following
docker run -v /path/to/input/file/directory:/usr/src/app/data:rw jkriter/identity_converter:latest
notemake sure the input file is called identities.csv or code will fail
For more information about about using Azure Identity on AKS, refer to Azure/aad-pod-identity run https://www.tutorialspoint.com/python3/python_command_line_arguments.htm marker