embedded-cluster-api
feature flag must be disabled before installing the CAPI Turtles extension. Follow instructions in the documentation here to do so.',turtlesNeeded:'Either the user doesn\'t have permission to run the Turtles extension or the Turtles operator isn\'t installed. To learn how to install the Rancher Turtles extension, read the documentation.'},autoImport:{label:"CAPI Auto-Import",checkbox:{label:"Automatically import CAPI clusters created in this namespace"},enableAction:"Enable CAPI Auto-Import",disableAction:"Disable CAPI Auto-Import"},warnings:{embeddedFeatureFlag:"It looks like the Rancher-managed cluster API feature is disabled. To provision and manage RKE2 clusters you must either enable the embedded-cluster-api feature flag or install the Rancher Turtles extension."},cluster:{steps:{clusterClass:{title:"Cluster Class",label:"Cluster Class",subtext:null,description:""},configuration:{title:"Configuration",label:"Configuration",subtext:null,description:""},variables:{title:"Variables",label:"Variables",subtext:null,description:""}},secret:{reuse:"Use existing credential",create:"Create new credential"},controlPlane:{title:"Control Plane Options",provisioner:"Type"},providerConfig:{title:"Infrastructure"},clusterClass:{title:"Cluster Class",label:"Cluster Class",description:"Cluster Class Description"},variables:{title:"Variables"},version:{title:"Kubernetes Version"},networking:{title:"Networking",apiServerPort:"API Server Port",serviceDomain:"Service Domain",pods:"Pod CIDR Blocks",services:"Service VIP CIDR Blocks"},controlPlaneEndpoint:{title:"Control Plane Endpoint",host:"Host",port:"Port"},workers:{title:"Workers",class:"Class",name:"Name",machineDeployments:{title:"Machine Deployments"},machinePools:{title:"Machine Pools"}}},clusterClassCard:{title:"Cluster Class Name: {name}",controlPlaneName:"Control Plane Name",controlPlaneKind:"Control Plane Kind",controlPlaneNamespace:"Control Plane Namespace",machineDeploymentsCount:"{count, plural,\n one {{count} Machine Deployment }\n other {{count} Machine Deployments }\n}",machinePoolsCount:"{count, plural,\n one {{count} Machine Pool }\n other {{count} Machine Pools }\n}"},experimental:"The Rancher CAPI UI extension is experimental and is not currently supported.",provider:{title:"Provider",label:"Provider",banner:"Editing configuration will affect all clusters that are using this provider and may cause errors.",name:{label:"Name",placeholder:"Provider name"},description:{label:"Description",placeholder:"Any text you want that better describes this provider"},type:{label:"Provider type"},version:{label:"Version"},fetchConfigURL:{label:"URL"},cloudCredential:{title:"Cloud Credential"},features:{title:"Features",clusterResourceSet:"Enable cluster resource set",clusterTopology:"Enable cluster topology",machinePool:"Enable machine pool"},variables:{title:"Variables",add:"Add"},secret:{title:"Secret Configuration",create:"Create new secret",reuse:"Use core provider secret",data:"Data",label:"Secret Name"}}},nav:{group:{CAPITurtles:"CAPI"}},typeLabel:{"turtles-capi.cattle.io.capiprovider":"{count, plural,\n one { Infrastructure Provider }\n other { Infrastructure Providers }\n}","cluster.x-k8s.io.machineset":"{count, plural,\n one { Machine Set}\n other { Machine Sets }\n}","cluster.x-k8s.io.machinedeployment":"{count, plural,\n one { Machine Deployment}\n other { Machine Deployments }\n}","cluster.x-k8s.io.clusterclass":"{count, plural,\n one { Cluster Class}\n other { Cluster Classes}\n}"},validation:{exclusiveMaxValue:'"{key}" must be less than {maximum}.',exclusiveMinValue:'"{key}" must be greater than {minimum}.',maxItems:'{maxItems, plural,\n one {"{key}" may contain no more than {maxItems} item.}\n other {"{key}" may contain no more than {maxItems} items.}\n}',minItems:'{minItems, plural,\n one {"{key}" must contain at least {minItems} item.}\n other {"{key}" must contain at least {minItems} items.}\n}',pattern:'"{key}" must match the pattern {pattern}
.',stringFormat:'"{key}" must be a valid {format}.',uniqueItems:'"{key}" may not contain duplicate elements.',version:"Version format must match format for this provisioner.",name:"Name is required.",port:"Port value must be a number.",url:'"Value" must be a valid URL.'},error:{clusterClassNotFound:"Could not find corresponding cluster class. Please check that cluster class exists and is valid."}}];e.exports=r.length<=1?r[0]:r}}]);
+//# sourceMappingURL=capi-0.4.0.umd.min.8.js.map
\ No newline at end of file
diff --git a/extensions/capi/0.4.0/plugin/capi-0.4.0.umd.min.8.js.map b/extensions/capi/0.4.0/plugin/capi-0.4.0.umd.min.8.js.map
new file mode 100644
index 0000000..1ad9246
--- /dev/null
+++ b/extensions/capi/0.4.0/plugin/capi-0.4.0.umd.min.8.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack://capi-0.4.0/./l10n/en-us.yaml"],"names":["doc","module","exports","length"],"mappings":"sKAAA,MAAMA,EAAM,CAAC,CAAE,OAAS,CAAE,cAAgB,kBAAoB,KAAO,CAAE,aAAe,CAAE,MAAQ,kBAAmB,YAAc,8FAA+F,mBAAqB,kZAA2Z,cAAgB,gZAAwZ,WAAa,CAAE,MAAQ,mBAAoB,SAAW,CAAE,MAAQ,gEAAkE,aAAe,0BAA2B,cAAgB,4BAA8B,SAAW,CAAE,oBAAsB,mNAAqN,QAAU,CAAE,MAAQ,CAAE,aAAe,CAAE,MAAQ,gBAAiB,MAAQ,gBAAiB,QAAU,KAAM,YAAc,IAAM,cAAgB,CAAE,MAAQ,gBAAiB,MAAQ,gBAAiB,QAAU,KAAM,YAAc,IAAM,UAAY,CAAE,MAAQ,YAAa,MAAQ,YAAa,QAAU,KAAM,YAAc,KAAQ,OAAS,CAAE,MAAQ,0BAA2B,OAAS,yBAA2B,aAAe,CAAE,MAAQ,wBAAyB,YAAc,QAAU,eAAiB,CAAE,MAAQ,kBAAoB,aAAe,CAAE,MAAQ,gBAAiB,MAAQ,gBAAiB,YAAc,6BAA+B,UAAY,CAAE,MAAQ,aAAe,QAAU,CAAE,MAAQ,sBAAwB,WAAa,CAAE,MAAQ,aAAc,cAAgB,kBAAmB,cAAgB,iBAAkB,KAAO,kBAAmB,SAAW,2BAA6B,qBAAuB,CAAE,MAAQ,yBAA0B,KAAO,OAAQ,KAAO,QAAU,QAAU,CAAE,MAAQ,UAAW,MAAQ,QAAS,KAAO,OAAQ,mBAAqB,CAAE,MAAQ,uBAAyB,aAAe,CAAE,MAAQ,mBAAuB,iBAAmB,CAAE,MAAQ,6BAA8B,iBAAmB,qBAAsB,iBAAmB,qBAAsB,sBAAwB,0BAA2B,wBAA0B,kGAAmG,kBAAoB,uFAAyF,aAAe,gFAAiF,SAAW,CAAE,MAAQ,WAAY,MAAQ,WAAY,OAAS,oGAAqG,KAAO,CAAE,MAAQ,OAAQ,YAAc,iBAAmB,YAAc,CAAE,MAAQ,cAAe,YAAc,yDAA2D,KAAO,CAAE,MAAQ,iBAAmB,QAAU,CAAE,MAAQ,WAAa,eAAiB,CAAE,MAAQ,OAAS,gBAAkB,CAAE,MAAQ,oBAAsB,SAAW,CAAE,MAAQ,WAAY,mBAAqB,8BAA+B,gBAAkB,0BAA2B,YAAc,uBAAyB,UAAY,CAAE,MAAQ,YAAa,IAAM,OAAS,OAAS,CAAE,MAAQ,uBAAwB,OAAS,oBAAqB,MAAQ,2BAA4B,KAAO,OAAQ,MAAQ,iBAAqB,IAAM,CAAE,MAAQ,CAAE,YAAc,SAAY,UAAY,CAAE,sCAAsC,8FAA+F,8BAA8B,qEAAsE,qCAAqC,mFAAoF,gCAAgC,0EAA4E,WAAa,CAAE,kBAAoB,uCAA0C,kBAAoB,0CAA6C,SAAW,iJAAsJ,SAAW,2IAAgJ,QAAU,yDAA4D,aAAe,oCAAuC,YAAc,8CAAiD,QAAU,yDAA0D,KAAO,oBAAqB,KAAO,+BAAgC,IAAM,gCAAoC,MAAQ,CAAE,qBAAuB,sGAC50KC,EAAOC,QAAUF,EAAIG,QAAU,EAAIH,EAAI,GAAKA","file":"capi-0.4.0.umd.min.8.js","sourcesContent":["const doc = [({\"action\":({\"createCluster\":\"Create Cluster\"}), \"capi\":({\"installation\":({\"title\":\"Rancher Turtles\", \"description\":\"The Rancher Turtles operator allows users to import CAPI-provisioned clusters into Rancher.\", \"disableFeatureFlag\":\"The embedded-cluster-api
feature flag must be disabled before installing the CAPI Turtles extension. Follow instructions in the documentation here to do so.\", \"turtlesNeeded\":\"Either the user doesn't have permission to run the Turtles extension or the Turtles operator isn't installed. To learn how to install the Rancher Turtles extension, read the documentation.\"}), \"autoImport\":({\"label\":\"CAPI Auto-Import\", \"checkbox\":({\"label\":\"Automatically import CAPI clusters created in this namespace\"}), \"enableAction\":\"Enable CAPI Auto-Import\", \"disableAction\":\"Disable CAPI Auto-Import\"}), \"warnings\":({\"embeddedFeatureFlag\":\"It looks like the Rancher-managed cluster API feature is disabled. To provision and manage RKE2 clusters you must either enable the embedded-cluster-api feature flag or install the Rancher Turtles extension.\"}), \"cluster\":({\"steps\":({\"clusterClass\":({\"title\":\"Cluster Class\", \"label\":\"Cluster Class\", \"subtext\":null, \"description\":\"\"}), \"configuration\":({\"title\":\"Configuration\", \"label\":\"Configuration\", \"subtext\":null, \"description\":\"\"}), \"variables\":({\"title\":\"Variables\", \"label\":\"Variables\", \"subtext\":null, \"description\":\"\"})}), \"secret\":({\"reuse\":\"Use existing credential\", \"create\":\"Create new credential\"}), \"controlPlane\":({\"title\":\"Control Plane Options\", \"provisioner\":\"Type\"}), \"providerConfig\":({\"title\":\"Infrastructure\"}), \"clusterClass\":({\"title\":\"Cluster Class\", \"label\":\"Cluster Class\", \"description\":\"Cluster Class Description\"}), \"variables\":({\"title\":\"Variables\"}), \"version\":({\"title\":\"Kubernetes Version\"}), \"networking\":({\"title\":\"Networking\", \"apiServerPort\":\"API Server Port\", \"serviceDomain\":\"Service Domain\", \"pods\":\"Pod CIDR Blocks\", \"services\":\"Service VIP CIDR Blocks\"}), \"controlPlaneEndpoint\":({\"title\":\"Control Plane Endpoint\", \"host\":\"Host\", \"port\":\"Port\"}), \"workers\":({\"title\":\"Workers\", \"class\":\"Class\", \"name\":\"Name\", \"machineDeployments\":({\"title\":\"Machine Deployments\"}), \"machinePools\":({\"title\":\"Machine Pools\"})})}), \"clusterClassCard\":({\"title\":\"Cluster Class Name: {name}\", \"controlPlaneName\":\"Control Plane Name\", \"controlPlaneKind\":\"Control Plane Kind\", \"controlPlaneNamespace\":\"Control Plane Namespace\", \"machineDeploymentsCount\":\"{count, plural,\\n one {{count} Machine Deployment }\\n other {{count} Machine Deployments }\\n}\", \"machinePoolsCount\":\"{count, plural,\\n one {{count} Machine Pool }\\n other {{count} Machine Pools }\\n}\"}), \"experimental\":\"The Rancher CAPI UI extension is experimental and is not currently supported.\", \"provider\":({\"title\":\"Provider\", \"label\":\"Provider\", \"banner\":\"Editing configuration will affect all clusters that are using this provider and may cause errors.\", \"name\":({\"label\":\"Name\", \"placeholder\":\"Provider name\"}), \"description\":({\"label\":\"Description\", \"placeholder\":\"Any text you want that better describes this provider\"}), \"type\":({\"label\":\"Provider type\"}), \"version\":({\"label\":\"Version\"}), \"fetchConfigURL\":({\"label\":\"URL\"}), \"cloudCredential\":({\"title\":\"Cloud Credential\"}), \"features\":({\"title\":\"Features\", \"clusterResourceSet\":\"Enable cluster resource set\", \"clusterTopology\":\"Enable cluster topology\", \"machinePool\":\"Enable machine pool\"}), \"variables\":({\"title\":\"Variables\", \"add\":\"Add\"}), \"secret\":({\"title\":\"Secret Configuration\", \"create\":\"Create new secret\", \"reuse\":\"Use core provider secret\", \"data\":\"Data\", \"label\":\"Secret Name\"})})}), \"nav\":({\"group\":({\"CAPITurtles\":\"CAPI\"})}), \"typeLabel\":({\"turtles-capi.cattle.io.capiprovider\":\"{count, plural,\\n one { Infrastructure Provider }\\n other { Infrastructure Providers }\\n}\", \"cluster.x-k8s.io.machineset\":\"{count, plural,\\n one { Machine Set}\\n other { Machine Sets }\\n}\", \"cluster.x-k8s.io.machinedeployment\":\"{count, plural,\\n one { Machine Deployment}\\n other { Machine Deployments }\\n}\", \"cluster.x-k8s.io.clusterclass\":\"{count, plural,\\n one { Cluster Class}\\n other { Cluster Classes}\\n}\"}), \"validation\":({\"exclusiveMaxValue\":\"\\\"{key}\\\" must be less than {maximum}.\", \"exclusiveMinValue\":\"\\\"{key}\\\" must be greater than {minimum}.\", \"maxItems\":\"{maxItems, plural,\\n one {\\\"{key}\\\" may contain no more than {maxItems} item.}\\n other {\\\"{key}\\\" may contain no more than {maxItems} items.}\\n}\", \"minItems\":\"{minItems, plural,\\n one {\\\"{key}\\\" must contain at least {minItems} item.}\\n other {\\\"{key}\\\" must contain at least {minItems} items.}\\n}\", \"pattern\":\"\\\"{key}\\\" must match the pattern {pattern}
.\", \"stringFormat\":\"\\\"{key}\\\" must be a valid {format}.\", \"uniqueItems\":\"\\\"{key}\\\" may not contain duplicate elements.\", \"version\":\"Version format must match format for this provisioner.\", \"name\":\"Name is required.\", \"port\":\"Port value must be a number.\", \"url\":\"\\\"Value\\\" must be a valid URL.\"}), \"error\":({\"clusterClassNotFound\":\"Could not find corresponding cluster class. Please check that cluster class exists and is valid.\"})})];\nmodule.exports = doc.length <= 1 ? doc[0] : doc;"],"sourceRoot":""}
\ No newline at end of file
diff --git a/extensions/capi/0.4.0/plugin/capi-0.4.0.umd.min.edit.js b/extensions/capi/0.4.0/plugin/capi-0.4.0.umd.min.edit.js
new file mode 100644
index 0000000..cdd9a20
--- /dev/null
+++ b/extensions/capi/0.4.0/plugin/capi-0.4.0.umd.min.edit.js
@@ -0,0 +1,2 @@
+(("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_4_0"]=("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_4_0"]||[]).push([[2],{"2adb":function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".grouped-type{position:relative}.rke-switch{margin-top:-10px;position:absolute;right:0}",""]),e.exports=t},"2ea8":function(e,t,a){"use strict";a("471a")},"330a3":function(e,t,a){"use strict";a("f359")},"33e0":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("CruResource",{staticClass:"create-cluster",attrs:{mode:e.mode,"validation-passed":!0,"selected-subtype":e.subType,resource:e.value,errors:e.errors,subtypes:e.subTypes,"cancel-event":!0,"prevent-enter-submit":!0},on:{finish:e.save,cancel:e.done,"select-type":e.selectType,error:t=>e.errors=t},scopedSlots:e._u([{key:"subtypes",fn:function(){return[t("div",{staticClass:"mb-20",staticStyle:{width:"100%"}},[t("SelectIconGrid",{attrs:{rows:e.subTypes,"key-field":"id","name-field":"label","side-label-field":"tag"},on:{clicked:e.clickedType}})],1)]},proxy:!0},e.subType?{key:"form-footer",fn:function(){return[t("div")]},proxy:!0}:null],null,!0)},[e.subType?t("ProviderConfig",{attrs:{"initial-value":e.initialValue,"live-value":e.liveValue,mode:e.mode,provider:e.subType},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}):e._e()],1)},l=[],r=a("8bbf"),i=a.n(r),o=a("305c"),n=a("fd5f"),c=a("500e"),u=a("da25"),d=a("7e89"),v=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.loading?t("Loading"):t("CruResource",{staticClass:"provider",attrs:{mode:e.mode,"validation-passed":e.fvFormIsValid,resource:e.value,errors:e.fvUnreportedValidationErrors,"cancel-event":!0,"done-route":e.doneRoute,"apply-hooks":e.applyHooks,"component-testid":"capi-provider-create"},on:{done:e.done,finish:e.saveOverride,cancel:e.done,error:t=>e.errors=t},scopedSlots:e._u([e.waitingForCredential?{key:"form-footer",fn:function(){return[t("div")]},proxy:!0}:null],null,!0)},[t("NameNsDescription",{attrs:{mode:e.mode,namespaced:!0,"namespace-options":e.allNamespaces,"namespace-new-allowed":!0,"name-label":"capi.provider.name.label","name-placeholder":"capi.provider.name.placeholder","description-label":"capi.provider.description.label","description-placeholder":"capi.provider.description.placeholder",rules:{name:e.fvGetAndReportPathRules("metadata.name")}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}),e.isCustom?t("div",[t("div",{staticClass:"row mb-20"},[t("div",{staticClass:"col span-3"},[t("LabeledInput",{attrs:{mode:e.mode,"label-key":"capi.provider.label",required:"",rules:e.fvGetAndReportPathRules("spec.name")},model:{value:e.value.spec.name,callback:function(t){e.$set(e.value.spec,"name",t)},expression:"value.spec.name"}})],1),t("div",{staticClass:"col span-3"},[t("LabeledSelect",{attrs:{mode:e.mode,options:e.typeOptions,"label-key":"capi.provider.type.label",required:""},model:{value:e.value.spec.type,callback:function(t){e.$set(e.value.spec,"type",t)},expression:"value.spec.type"}})],1),t("div",{staticClass:"col span-3"},[t("LabeledInput",{attrs:{mode:e.mode,"label-key":"capi.provider.version.label",required:"",rules:e.fvGetAndReportPathRules("spec.version")},model:{value:e.value.spec.version,callback:function(t){e.$set(e.value.spec,"version",t)},expression:"value.spec.version"}})],1)]),t("div",{staticClass:"row mb-40"},[t("div",{staticClass:"col span-6"},[t("LabeledInput",{attrs:{mode:e.mode,"label-key":"capi.provider.fetchConfigURL.label",required:"",rules:e.fvGetAndReportPathRules("spec.fetchConfig.url")},model:{value:e.value.spec.fetchConfig.url,callback:function(t){e.$set(e.value.spec.fetchConfig,"url",t)},expression:"value.spec.fetchConfig.url"}})],1)])]):e._e(),e.needCredential?t("div",{staticClass:"mb-40"}):e._e(),e.hasFeatures||e.hasVariables?t("h2",{staticClass:"mb-20"},[t("t",{attrs:{k:"capi.provider.secret.title"}})],1):e._e(),e.needCredential?t("div",[t("h3",{staticClass:"mb-20"},[t("t",{attrs:{k:"capi.provider.cloudCredential.title"}})],1),t("SelectCredential",{staticClass:"mb-40",attrs:{mode:e.mode,provider:e.provider,cancel:e.cancelCredential,"showing-form":e.showForm},model:{value:e.value.spec.credentials.rancherCloudCredentialNamespaceName,callback:function(t){e.$set(e.value.spec.credentials,"rancherCloudCredentialNamespaceName",t)},expression:"value.spec.credentials.rancherCloudCredentialNamespaceName"}})],1):e._e(),e.waitingForCredential?e._e():t("div",[e.shouldShowBanner?t("Banner",{attrs:{color:"info"}},[e._v(" "+e._s(e.t("capi.provider.banner"))+" ")]):e._e(),e.hasFeatures?t("div",{staticClass:"mb-40"},[t("h3",{staticClass:"mb-20"},[t("t",{attrs:{k:"capi.provider.features.title"}})],1),t("Checkbox",{attrs:{mode:e.mode,label:e.t("capi.provider.features.clusterResourceSet")},model:{value:e.value.spec.features.clusterResourceSet,callback:function(t){e.$set(e.value.spec.features,"clusterResourceSet",t)},expression:"value.spec.features.clusterResourceSet"}}),t("Checkbox",{attrs:{mode:e.mode,label:e.t("capi.provider.features.clusterTopology")},model:{value:e.value.spec.features.clusterTopology,callback:function(t){e.$set(e.value.spec.features,"clusterTopology",t)},expression:"value.spec.features.clusterTopology"}}),t("Checkbox",{attrs:{mode:e.mode,label:e.t("capi.provider.features.machinePool")},model:{value:e.value.spec.features.machinePool,callback:function(t){e.$set(e.value.spec.features,"machinePool",t)},expression:"value.spec.features.machinePool"}})],1):e._e(),e.hasVariables?t("div",[t("h3",[t("t",{attrs:{k:"capi.provider.variables.title"}})],1),t("KeyValue",{attrs:{"add-label":e.t("capi.provider.variables.add"),mode:e.mode,"value-can-be-empty":!0,"handle-base64":!0,"value-trim":!1,"add-allowed":!0,"read-allowed":!0,"parse-lines-from-file":!0},model:{value:e.value.spec.variables,callback:function(t){e.$set(e.value.spec,"variables",t)},expression:"value.spec.variables"}})],1):e._e()],1)],1)},p=[],m=a("9ce4"),h=a("bddd"),b=a("907c"),f=a("15ca"),g=a("ab51"),y=a("ebab"),C=a("1032"),k=a("2cb5"),w=a("e24b"),x=a("3c8c"),_=a("a232"),O=a("e26b"),P=a("466b"),S=a("eb32"),j=a("a8b9"),N=a("bfe9");const $={clusterResourceSet:!0,clusterTopology:!0,machinePool:!0},R={},V={name:"",type:"infrastructure",configSecret:{name:""},credentials:{rancherCloudCredentialNamespaceName:""}},D={name:"",type:"infrastructure",configSecret:{name:""},credentials:{rancherCloudCredentialNamespaceName:""},fetchConfig:{url:""},version:""},q=["infrastructure","bootstrap","controlPlane"];var E=i.a.extend({components:{CruResource:n["a"],Loading:f["a"],NameNsDescription:x["a"],SelectCredential:g["a"],Checkbox:C["a"],KeyValue:_["a"],LabeledInput:O["a"],LabeledSelect:P["a"],Banner:S["a"]},mixins:[o["a"],y["a"]],props:{mode:{type:String,required:!0},value:{type:Object,required:!0},provider:{type:String,required:!0}},beforeMount(){this.getDependencies().then(e=>{this.allNamespaces=e.namespaces||[],this.coreProviderSecret=e.coreProviderSecret||{},this.initSpecs(),this.loading=!1}).catch(e=>{this.errors.push(e),this.initSpecs(),this.loading=!1})},data(){const e=d["e"].find(e=>e.id===this.provider)||{needCredentials:!1,disabled:!1,id:"0"};return{loading:!0,fvFormRuleSets:[{path:"metadata.name",rules:["required"]},{path:"spec.name",rules:["required"]},{path:"spec.version",rules:["version"]},{path:"spec.fetchConfig.url",rules:["required","url"]}],allNamespaces:[],needCredential:(null===e||void 0===e?void 0:e.needCredentials)||!1,typeOptions:q}},computed:{...Object(m["a"])(["namespaces"]),fvExtraRules(){return{version:Object(N["g"])(this.$store.getters["i18n/t"],this.isCustom),url:Object(N["h"])(this.$store.getters["i18n/t"])}},showForm(){return!!this.value.spec.credentials.rancherCloudCredentialNamespaceName||!this.needCredential},isCreate(){return this.mode===u["l"]},isEdit(){return this.mode===u["n"]},hasFeatures(){var e;return!(null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||!e.features)},hasVariables(){var e;return!(null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||!e.features)},isCustom(){return"custom"===this.provider},shouldShowBanner(){return this.isEdit&&(this.hasFeatures||this.hasVariables)},waitingForCredential(){return this.needCredential&&!this.value.spec.credentials.rancherCloudCredentialNamespaceName}},methods:{initSpecs(){if(!this.value.spec){const e=this.getSpecFromCoreSecret();"custom"!==this.provider?(Object(w["k"])(this.value,"spec",{...V,...e}),Object(w["k"])(this.value.spec,"name",this.provider)):Object(w["k"])(this.value,"spec",{...D,...e})}this.value.spec.configSecret.name||Object(w["k"])(this.value.spec.configSecret,"name",this.generateName(this.provider))},getSpecFromCoreSecret(){var e;const t=null===(e=this.coreProviderSecret)||void 0===e?void 0:e.data;if(t){const e=["EXP_CLUSTER_RESOURCE_SET","CLUSTER_TOPOLOGY","EXP_MACHINE_POOL"],a=Object(w["e"])(t);return e.forEach(e=>{delete a[e]}),{features:{clusterResourceSet:"dHJ1ZQ=="===t.EXP_CLUSTER_RESOURCE_SET,clusterTopology:"dHJ1ZQ=="===t.CLUSTER_TOPOLOGY,machinePool:"dHJ1ZQ=="===t.EXP_MACHINE_POOL},variables:a}}return{features:Object(w["e"])($),variables:Object(w["e"])(R)}},generateName(e){return e?`${e}-credentials-${Object(k["n"])(5).toLowerCase()}`:void 0},async getDependencies(){const e=this.$store.getters["currentStore"](b["n"]),{$store:t}=this,a={namespaces:t.dispatch(e+"/findAll",{type:b["n"]}),coreProviderSecret:t.dispatch("management/find",{type:b["y"],id:`${d["h"]}/${d["g"]}`,opt:{watch:!1,force:!0}})};return await Object(j["a"])(a)},async saveOverride(e){var t;this.errors&&Object(h["c"])(this.errors),this.needCredential||null!==(t=this.value.spec)&&void 0!==t&&null!==(t=t.credentials)&&void 0!==t&&t.rancherCloudCredentialNamespaceName||(this.value.spec.credentials=null);try{return await this.value.save(),this.done()}catch(a){this.errors.push(a),e(!1)}},cancelCredential(){this.$refs.cruresource&&this.$refs.cruresource.emitOrRoute()}}}),L=E,A=a("d802"),T=Object(A["a"])(L,v,p,!1,null,null,null),I=T.exports,F=i.a.extend({name:"CreateProvider",components:{CruResource:n["a"],SelectIconGrid:c["a"],ProviderConfig:I},mixins:[o["a"]],props:{value:{type:Object,default:null},componentTestid:{type:String,default:"capi-provider-create"}},beforeMount(){var e;null!==(e=this.value)&&void 0!==e&&null!==(e=e.spec)&&void 0!==e&&e.name&&this.selectType(this.value.spec.name)},data(){const e=this.$route.query[u["g"]]||null;return{subType:e}},computed:{subTypes(){const e=[],t=this.$store.getters;return null===d["e"]||void 0===d["e"]||d["e"].forEach(e=>{s(e.id,e.disabled)}),e;function s(s,l=!1){const r=t["i18n/withFallback"](`cluster.provider."${s}"`,null,s),i=t["i18n/withFallback"](`cluster.providerDescription."${s}"`,null,"");let o;try{o=a("499d")(`./${s}.svg`)}catch(c){try{o=a("3c84")(`./${s}.svg`)}catch(c){o=a("2de0")}}const n={id:s,label:r,description:i,icon:o,disabled:l};e.push(n)}}},methods:{clickedType(e){const t=e.id;this.$router.applyQuery({[u["g"]]:t}),this.selectType(t)},selectType(e){this.subType=e,this.$emit("set-subtype",this.$store.getters["i18n/withFallback"](`cluster.provider."${e}"`,null,e))}}}),M=F,B=(a("8db7"),Object(A["a"])(M,s,l,!1,null,null,null));t["default"]=B.exports},"3c84":function(e,t,a){var s={"./docker.svg":"7003","./vsphere-black.svg":"81be","./vsphere.svg":"8827"};function l(e){var t=r(e);return a(t)}function r(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}l.keys=function(){return Object.keys(s)},l.resolve=r,e.exports=l,l.id="3c84"},4369:function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".label[data-v-7407ec5d]{display:flex;flex-direction:column;margin-bottom:10px}.label .text-label[data-v-7407ec5d]{font-size:12px;line-height:18px;color:var(--darker)}.label .value[data-v-7407ec5d]{line-height:18px}",""]),e.exports=t},"471a":function(e,t,a){var s=a("653f");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("3bfc8dc4",s,!0,{sourceMap:!1,shadowMode:!1})},"4774b":function(e,t,a){"use strict";a("f954")},"499d":function(e,t,a){var s={"./aliyun-black.svg":"073d","./aliyun.svg":"817e","./aliyunecs-black.svg":"cfa4","./aliyunecs.svg":"6673","./amazonec2-black.svg":"1ca7","./amazonec2.svg":"b3fa","./amazoneks-black.svg":"b111","./amazoneks.svg":"a734","./aws.svg":"d1df","./azure-black.svg":"f9f9","./azure.svg":"ff0f","./azuread-black.svg":"34d3","./azuread.svg":"7c72","./azureaks-black.svg":"0dc3","./azureaks.svg":"89ef","./baidu-black.svg":"7c76","./baidu.svg":"8c46","./cloudca-black.svg":"0965","./cloudca.svg":"68b8","./cloudscale-black.svg":"bdf2","./cloudscale.svg":"05fa","./custom.svg":"ab8e","./digitalocean-black.svg":"460c","./digitalocean.svg":"11f4","./equinix-black.svg":"3e8d","./equinix.svg":"2e41","./exoscale.svg":"04e7","./gcp.svg":"2e3b","./gke-black.svg":"394b","./gke.svg":"d10d","./google.svg":"6de9","./googlegke-black.svg":"38e0","./googlegke.svg":"29f9","./harvester.svg":"481a","./huaweicce-black.svg":"d7b3","./huaweicce.svg":"03cb","./import.svg":"4eb1","./k3s-black.svg":"bf04","./k3s.svg":"fbfb","./kubernetes-black.svg":"7b99","./kubernetes.svg":"ecef","./linode.svg":"4f2d","./linodelke-black.svg":"d904","./linodelke.svg":"58dc","./local-cluster.svg":"a46f","./minikube-black.svg":"001a","./minikube.svg":"5abd","./nutanix.svg":"80b4","./oci-black.svg":"e518","./oci.svg":"6a48","./openstack-black.svg":"a409","./openstack.svg":"d8b2","./oracle.svg":"ce4d","./oracleoke-black.svg":"8ebd","./oracleoke.svg":"8faa","./otc-black.svg":"eae0","./otc.svg":"271c","./otccce.svg":"25b5","./outscale.svg":"f278","./ovhcloudmks.svg":"513f","./ovhcloudpubliccloud.svg":"8a44","./packet-black.svg":"798e","./packet.svg":"a67d","./pinganyunecs-black.svg":"c28c","./pinganyunecs.svg":"f63b","./pnap-black.svg":"5ad1","./pnap.svg":"0353","./rackspace-black.svg":"b20c","./rackspace.svg":"1b53","./rke.svg":"7a27","./rke2.svg":"43bd","./softlayer.svg":"da9b","./tencenttke-black.svg":"af66","./tencenttke.svg":"39ca","./vmwarevsphere-black.svg":"6cfe","./vmwarevsphere.svg":"0a79"};function l(e){var t=r(e);return a(t)}function r(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}l.keys=function(){return Object.keys(s)},l.resolve=r,e.exports=l,l.id="499d"},"52c9":function(e,t,a){"use strict";a("5ae4")},"52e0":function(e,t,a){var s=a("2adb");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("4784894c",s,!0,{sourceMap:!1,shadowMode:!1})},"5ae4":function(e,t,a){var s=a("ea19");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("02c39b9b",s,!0,{sourceMap:!1,shadowMode:!1})},"653f":function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".container[data-v-e4d7fae2]{display:grid;grid-template-columns:1fr 1fr 1fr}@media only screen and (max-width:992px){.container[data-v-e4d7fae2]{grid-template-columns:1fr 1fr}}@media only screen and (max-width:1281px){.container[data-v-e4d7fae2]{grid-template-columns:1fr}}",""]),e.exports=t},7003:function(e,t,a){e.exports=a.p+"img/docker.c06657b9.svg"},"81be":function(e,t,a){e.exports=a.p+"img/vsphere-black.2f9d3f1d.svg"},8827:function(e,t,a){e.exports=a.p+"img/vsphere.32594541.svg"},"89e5":function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".cluster-card-container[data-v-40d0155a]{display:flex;flex-basis:40%;margin:10px;min-height:100px;padding:10px 20px;height:90%;border:1px solid var(--border);border-radius:var(--border-radius)}.cluster-card-container.selected[data-v-40d0155a]{border:2px solid var(--app-rancher-accent)}.cluster-card-container[data-v-40d0155a]:hover{box-shadow:0 0 30px var(--shadow);transition:box-shadow .1s ease-in-out;cursor:pointer;text-decoration:none!important}.cluster-card-container.rancher .deploys-os-label[data-v-40d0155a],.cluster-card-container.rancher .side-label[data-v-40d0155a]{background-color:var(--app-rancher-accent)}.cluster-card-container.rancher .deploys-os-label label[data-v-40d0155a],.cluster-card-container.rancher .side-label label[data-v-40d0155a]{color:var(--app-rancher-accent-text)}.cluster-card-container.rancher[data-v-40d0155a]:hover{border-color:var(--app-rancher-accent)}.cluster-card-container.partner .deploys-os-label[data-v-40d0155a],.cluster-card-container.partner .side-label[data-v-40d0155a]{background-color:var(--app-partner-accent)}.cluster-card-container.partner .deploys-os-label label[data-v-40d0155a],.cluster-card-container.partner .side-label label[data-v-40d0155a]{color:var(--app-partner-accent-text)}.cluster-card-container.partner[data-v-40d0155a]:hover{border-color:var(--app-partner-accent)}.cluster-card-container .card-wrap[data-v-40d0155a]{width:100%}.name[data-v-40d0155a]{font-size:16px;font-weight:700;margin-bottom:10px}.description[data-v-40d0155a]{font-size:14px;margin-bottom:20px}.container[data-v-40d0155a]{display:grid;padding:0;grid-template-columns:1fr 1fr}@media only screen and (max-width:1281px){.container[data-v-40d0155a]{grid-template-columns:1fr}}.leftcol[data-v-40d0155a]{justify-self:start;margin-right:10px}.rightcol[data-v-40d0155a]{justify-self:end}@media only screen and (max-width:1281px){.rightcol[data-v-40d0155a]{justify-self:start}}",""]),e.exports=t},"8db7":function(e,t,a){"use strict";a("52e0")},"9b7b":function(e,t,a){"use strict";a("ef3f")},be3e:function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".variables[data-v-83817b0e]{display:flex;flex-direction:row;flex-wrap:wrap}.variables>*[data-v-83817b0e]{flex:0 1 23.25%;margin:0 1.75% 10px 0;max-width:23.25%}.variables[data-v-83817b0e]>.wider{flex:0 1 48.25%;max-width:48.25%}.variables>.force-newline[data-v-83817b0e]{flex:1 0 100%;max-width:none}",""]),e.exports=t},bfe9:function(e,t,a){"use strict";a.d(t,"e",(function(){return c})),a.d(t,"d",(function(){return v})),a.d(t,"i",(function(){return p})),a.d(t,"j",(function(){return m})),a.d(t,"c",(function(){return h})),a.d(t,"f",(function(){return b})),a.d(t,"b",(function(){return f})),a.d(t,"a",(function(){return g})),a.d(t,"h",(function(){return y})),a.d(t,"g",(function(){return C}));var s=a("330a"),l=a.n(s),r=a("2cb5"),i=a("c4c6"),o=a("760b"),n=a("7e89");const c=function(e,{key:t="Value"},a){const{exclusiveMinimum:s,exclusiveMaximum:l,maxItems:r,maxLength:i,maximum:o,minItems:n,minLength:c,minimum:v,pattern:p,uniqueItems:m,required:h,format:b}=a,f=[];return o&&(l?f.push(a=>Number(a)>=Number(o)?e("validation.exclusiveMaxValue",{key:t,maximum:o}):void 0):f.push(a=>Number(a)>Number(o)?e("validation.maxValue",{key:t,max:o}):void 0)),void 0!==v&&(s?f.push(a=>Number(a)<=Number(v)?e("validation.exclusiveMinValue",{key:t,minimum:v}):void 0):f.push(a=>Number(a)\n \n \n \n | \n |||
\n | \n |||
\n | \n |||
\n \n {{ groupedRows.ref }}\n \n | \n |||
\n {{ row.mainRowKey }} | \n \n \n | \n \n\n | \n \n | \n
\n | \n {{ row.row.stateDescription }}\n | \n
\n
\n
\n {{ description }}\n
\n \n