'use strict';
import * as _0x16ff3d from '@pulumi/kubernetes';
import { environmentVariables } from '../../infra/ci/constants/ci-constants.js';
import { getRequiredStringEnvSetting } from '../../fd-toolbox/infra/env-functions.js';
import { clusterNames } from '@cluster/constants/cluster-constants';
import { gitLabHost } from '../../base-repo/app-constants/internal-system-constants.js';

var __defProp=Object['defineProperty'],__name=(_0x1fde15,_0x4135d3)=>__defProp(_0x1fde15,'name',{'value':_0x4135d3,'configurable':!![]});const runnerToken=getRequiredStringEnvSetting(environmentVariables['runnerToken']);function createGitlabRunner(_0x3d9ec7){const _0x44a5fa=new _0x16ff3d['helm']['v3']['Chart'](clusterNames['gitlabRunner'],{'chart':clusterNames['gitlabRunner'],'version':'0.86.0','fetchOpts':{'repo':'https://charts.gitlab.io'},'namespace':_0x3d9ec7,'values':{'gitlabUrl':gitLabHost,'runnerToken':runnerToken,'runners':{'config':'\x0a[[runners]]\x0a\x20\x20limit\x20=\x208\x0a\x20\x20[runners.kubernetes]\x0a\x20\x20\x20\x20node_selector\x20=\x20{\x20\x22node-role.kubernetes.io/control-plane\x22\x20=\x20\x22\x22\x20}\x0a\x20\x20\x20\x20image\x20=\x20\x22ubuntu:22.04\x22\x0a\x20\x20\x20\x20[[runners.kubernetes.volumes.empty_dir]]\x0a\x20\x20\x20\x20\x20\x20name\x20=\x20\x22ramdisk\x22\x0a\x20\x20\x20\x20\x20\x20mount_path\x20=\x20\x22/builds\x22\x0a\x20\x20\x20\x20\x20\x20medium\x20=\x20\x22Memory\x22\x0a\x20\x20\x20\x20\x20\x20size_limit\x20=\x20\x2220Gi\x22\x0a\x20\x20\x20\x20[[runners.kubernetes.volumes.pvc]]\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x20=\x20\x22pnpm-cache-pvc\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20mount_path\x20=\x20\x22/var/cluster-data/pnpm-cache\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20read_only\x20=\x20false\x0a'},'rbac':{'create':!![]}}});return {'chart':_0x44a5fa};}__name(createGitlabRunner,'createGitlabRunner');

export { createGitlabRunner };
