Update renovate/renovate Docker tag to v41.169.1 - abandoned #97

Closed
Renovate wants to merge 282 commits from renovate/renovate-renovate-41.x into fresh-start
2 changed files with 14 additions and 0 deletions
Showing only changes of commit 1a88b1c602 - Show all commits

View File

@@ -1,5 +1,8 @@
#!/usr/bin/env python
from hvac.api.auth_methods.kubernetes import Kubernetes
import argparse
import os
from hvac.api.system_backend import mount
@@ -30,6 +33,13 @@ def synchronize_policies(client: hvac.Client):
print(f'Updating policy: {policy_name}')
client.sys.create_or_update_acl_policy(policy_name, policy_content)
# Read vault/kubernetes-config.yaml and write it to kubernetes auth method config
def synchronize_auth_kubernetes_config(client: hvac.Client):
config_file = os.path.join(os.path.dirname(__file__), '../vault/kubernetes-config.yaml')
with open(config_file, 'r') as f:
config = yaml.safe_load(f.read())
client.write_data('/auth/kubernetes/config', data=config)
# Read vault/kubernetes-roles dir then write what is there and delete missing
def synchronize_kubernetes_roles(client: hvac.Client):
kubernetes = Kubernetes(client.adapter)
@@ -71,5 +81,8 @@ if __name__ == '__main__':
print('Synchronizing policies')
synchronize_policies(client)
print('Synchronizing kubernetes config')
synchronize_auth_kubernetes_config(client)
print('Synchronizing kubernetes roles')
synchronize_kubernetes_roles(client)

View File

@@ -0,0 +1 @@
kubernetes_host: https://10.43.0.1:443