quiet-fall-86664
04/29/2024, 7:02 PM# Initialization of the Helm chart with optional values and namespace specification.
vault_chart = Chart(
self.chart_name,
ChartOpts(
chart=self.chart_name,
fetch_opts=FetchOpts(
repo=self.chart_repo,
),
version=self.chart_version,
namespace=self.namespace, # Replace this with your desired namespace.
values={
# Add any values here to customize the Openshift Jenkins installation.
# Example:
# "AdminPassword": "yourStrongPassword"
},
)
)
<http://logger.info|logger.info>("Creating Vault Service")
# Attempting to export the Jenkins URL by querying the Kubernetes Service after chart deployment.
vault_service = vault_chart.get_resource('v1/Service', f"{self.namespace}-{self.chart_name}")
<http://logger.info|logger.info>("Vault Service created. Exporting VaultURL")
pulumi.export('vaultUrl', vault_service.status.apply(lambda status: status.load_balancer.ingress[0].ip))