def GetSecrets(self, record):
     secrets = {}
     secrets.update({
         k: FormatSecretKeyRef(v)
         for k, v in record.env_vars.secrets.items()
     })
     secrets.update({
         k: FormatSecretVolumeSource(v)
         for k, v in record.MountedVolumeJoin('secrets').items()
     })
     return cp.Mapped(k8s_object_printer.OrderByKey(secrets))
 def GetConfigMaps(self, record):
     config_maps = {}
     config_maps.update({
         k: FormatConfigMapKeyRef(v)
         for k, v in record.env_vars.config_maps.items()
     })
     config_maps.update({
         k: FormatConfigMapVolumeSource(v)
         for k, v in record.MountedVolumeJoin('config_maps').items()
     })
     return cp.Mapped(k8s_object_printer.OrderByKey(config_maps))
 def GetUserEnvironmentVariables(self, record):
     return cp.Mapped(
         k8s_object_printer.OrderByKey(record.env_vars.literals))