You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug/feature
The Azure SDK ships with copies of the SDKs all the back to 2015, this makes the Azure directory under site-packages to be close to 700MB, and growing. In most case these very old directories are useless and cause docker images to be needlessly very large. Most projects do not pin to specific version of the obsolete SDKs, but kapitan does.
To Reproduce
Steps to reproduce the behavior:
Delete the site-packages/azure/keyvault/v2016_10_01 directory.
run kapitan -h
Stacktrace
Traceback (most recent call last):
File "/Users/me/.pyenv/versions/3.9.6/bin/kapitan", line 5, in <module>
from kapitan.cli import main
File "/Users/me/.pyenv/versions/3.9.6/lib/python3.9/site-packages/kapitan/cli.py", line 24, in <module>
from kapitan.refs.cmd_parser import handle_refs_command
File "/Users/me/.pyenv/versions/3.9.6/lib/python3.9/site-packages/kapitan/refs/cmd_parser.py", line 14, in <module>
from kapitan.refs.secrets.azkms import AzureKMSSecret
File "/Users/me/.pyenv/versions/3.9.6/lib/python3.9/site-packages/kapitan/refs/secrets/azkms.py", line 7, in <module>
from azure.keyvault.keys.crypto import CryptographyClient, EncryptionAlgorithm
File "/Users/me/.pyenv/versions/3.9.6/lib/python3.9/site-packages/azure/keyvault/__init__.py", line 25, in <module>
from .key_vault_client import KeyVaultClient
File "/Users/me/.pyenv/versions/3.9.6/lib/python3.9/site-packages/azure/keyvault/key_vault_client.py", line 22, in <module>
from azure.keyvault.v2016_10_01.version import VERSION as v2016_10_01_VERSION
ModuleNotFoundError: No module named 'azure.keyvault.v2016_10_01'
Expected behavior
Kapitan should not be pinned to an SDK from 2016.
A workaround is to ln -s v7_0 v2016_10_01 so kapitan can run for us without having to make our docker images larger.
** If it's a bug (please complete the following information):**
Hey @sodul thanks for opening the issue and sorry for the delay! I completely agree, this is largely outdated. I honestly don't use azure myself so it's not on top of my mind. I think it makes sense to move azkms (and others) as package extras instead. What do you think?
This issue is stale because it has been open for 1 year with no activity.
Remove the stale label or comment if this issue is still relevant for you.
If not, please close it yourself.
Describe the bug/feature
The Azure SDK ships with copies of the SDKs all the back to 2015, this makes the Azure directory under site-packages to be close to 700MB, and growing. In most case these very old directories are useless and cause docker images to be needlessly very large. Most projects do not pin to specific version of the obsolete SDKs, but kapitan does.
To Reproduce
Steps to reproduce the behavior:
site-packages/azure/keyvault/v2016_10_01
directory.kapitan -h
Expected behavior
Kapitan should not be pinned to an SDK from 2016.
A workaround is to
ln -s v7_0 v2016_10_01
so kapitan can run for us without having to make our docker images larger.** If it's a bug (please complete the following information):**
python --version
: Python 3.9.6pip3 --version
: pip 21.2.1Additional context
Azure/azure-sdk-for-python#17801
The text was updated successfully, but these errors were encountered: