in teamcity-kubernetes-plugin-server/src/main/resources/buildServerResources/kubeSettings.js [66:118]
initialize: function(){
this.$imagesTable = $j('#kubeImagesTable');
this.$imagesTableWrapper = $j('.imagesTableWrapper');
this.$authStrategySelector = $j('#authStrategy');
this.$eksUseInstanceProfile = $j('#eksUseInstanceProfile');
this.$eksAssumeIAMRole = $j('#eksAssumeIAMRole');
this.$showAddImageDialogButton = $j('#showAddImageDialogButton');
this.$addImageButton = $j('#kubeAddImageButton');
this.$cancelAddImageButton = $j('#kubeCancelAddImageButton');
this.$deleteImageButton = $j('#kubeDeleteImageButton');
this.$cancelDeleteImageButton = $j('#kubeCancelDeleteImageButton');
this.$podSpecModeSelector = $j('#podTemplateMode');
this.$dockerImage = $j('#dockerImage');
this.$imagePullPolicy = $j('#imagePullPolicy');
this.$dockerCommand = $j('#dockerCmd');
this.$dockerArgs = $j('#dockerArgs');
this.$deploymentName = $j('#sourceDeployment');
this.$customPodTemplate = $j('#customPodTemplate');
this.$agentNamePrefix = $j('#agentNamePrefix');
this.$imageInstanceLimit = $j('#imageInstanceLimit');
this.$agentPoolSelector = $j('#agent_pool_id');
this.$imagesDataElem = $j('#' + 'source_images_json');
var self = this;
var rawImagesData = this.$imagesDataElem.val() || '[]';
this._imagesDataLength = 0;
try {
var imagesData = JSON.parse(rawImagesData);
this.imagesData = imagesData.reduce(function (accumulator, imageDataStr) {
accumulator[self._imagesDataLength++] = imageDataStr;
return accumulator;
}, {});
} catch (e) {
this.imagesData = {};
BS.Log.error('bad images data: ' + rawImagesData);
}
this._nextImageId = this._imagesDataLength ? this._imagesDataLength : 1;
this._bindHandlers();
this._renderImagesTable();
this.$addImageButton.removeAttr('disabled');
this._toggleAuth();
this._toggleEKSCredentials();
this._toggleEKSIAM();
this._resetDataAndDialog();
BS.Clouds?.Admin?.CreateProfileForm?.checkIfModified();
},