'use strict';
import { clusterNames, matchExpressions, kubernetesNodes, clusterVolumePaths, volumeConstants, clusterKubernetes } from '@cluster/constants/cluster-constants';
import * as _0x16ff3d from '@pulumi/kubernetes';

var __defProp=Object['defineProperty'],__name=(_0xb29300,_0x5637e4)=>__defProp(_0xb29300,'name',{'value':_0x5637e4,'configurable':!![]});function createPnpmCachePvPvc(_0x4c57c7){const _0x329ba3=new _0x16ff3d['core']['v1']['PersistentVolume'](clusterNames['pnpmCachePv'],{'metadata':{'name':clusterNames['pnpmCachePv'],'labels':{'app':clusterNames['gitlabRunner']}},'spec':{'capacity':{'storage':clusterKubernetes['storageSizeXxl']},'accessModes':[clusterKubernetes['accessMode']],'storageClassName':clusterKubernetes['storageClass'],'persistentVolumeReclaimPolicy':volumeConstants['retain'],'local':{'path':clusterVolumePaths['pnpmCache']},'nodeAffinity':{'required':{'nodeSelectorTerms':[{'matchExpressions':[{'key':kubernetesNodes['controlPlane'],'operator':matchExpressions['exists']}]}]}}}}),_0x499ca1=new _0x16ff3d['core']['v1']['PersistentVolumeClaim'](clusterNames['pnpmCachePvc'],{'metadata':{'name':clusterNames['pnpmCachePvc'],'namespace':_0x4c57c7,'labels':{'app':clusterNames['gitlabRunner']}},'spec':{'accessModes':[clusterKubernetes['accessMode']],'volumeMode':volumeConstants['filesystem'],'resources':{'requests':{'storage':clusterKubernetes['storageSizeXxl']}},'storageClassName':clusterKubernetes['storageClass'],'selector':{'matchLabels':{'app':clusterNames['gitlabRunner']}}}});return {'pv':_0x329ba3,'pvc':_0x499ca1};}__name(createPnpmCachePvPvc,'createPnpmCachePvPvc');

export { createPnpmCachePvPvc };
