cluster_name: _(Required)_ Name of the cluster for which to get credentials. This can be specified as
+- cluster_name: _(Required)_ Name of the cluster for which to get credentials. This can be specified as
a full resource name:
projects/location: _(Optional)_ Location (region or zone) in which the cluster resides. This value is
+- location: _(Optional)_ Location (region or zone) in which the cluster resides. This value is
required unless `cluster_name` is a full resource name.
-- project_id: _(Optional)_ Project ID where the cluster is deployed. If provided, this will override
+- project_id: _(Optional)_ Project ID where the cluster is deployed. If provided, this will override
the project configured by previous steps or environment variables. If not
provided, the project will be inferred from the environment, best-effort.
-- context_name: _(Optional)_ Name to use when creating the `kubectl` context. If not specified, the
+- context_name: _(Optional)_ Name to use when creating the `kubectl` context. If not specified, the
default value is `gke_namespace: _(Optional)_ Name of the Kubernetes namespace to use within the context.
+- namespace: _(Optional)_ Name of the Kubernetes namespace to use within the context.
-- use_auth_provider: _(Optional, default: `false`)_ Set this to true to use the Google Cloud auth plugin in `kubectl` instead
+- use_auth_provider: _(Optional, default: `false`)_ Set this to true to use the Google Cloud auth plugin in `kubectl` instead
of inserting a short-lived access token.
-- use_internal_ip: _(Optional, default: `false`)_ Set this to true to use the internal IP address for the cluster endpoint.
+- use_internal_ip: _(Optional, default: `false`)_ Set this to true to use the internal IP address for the cluster endpoint.
This is mostly used with private GKE clusters.
-- use_connect_gateway: _(Optional, default: `false`)_ Set this to true to use the [Connect Gateway
+- use_connect_gateway: _(Optional, default: `false`)_ Set this to true to use the [Connect Gateway
endpoint](https://cloud.google.com/anthos/multicluster-management/gateway)
to connect to cluster.
-- use_dns_based_endpoint: _(Optional, default: `false`)_ Set this true to use [DNS-based endpoint](https://cloud.google.com/kubernetes-engine/docs/concepts/network-isolation#dns-based_endpoint)
+- use_dns_based_endpoint: _(Optional, default: `false`)_ Set this true to use [DNS-based endpoint](https://cloud.google.com/kubernetes-engine/docs/concepts/network-isolation#dns-based_endpoint)
to connect to the cluster.
-- fleet_membership_name: _(Optional)_ Fleet membership name to use for generating Connect Gateway endpoint, of
+- fleet_membership_name: _(Optional)_ Fleet membership name to use for generating Connect Gateway endpoint, of
the form:
projects/quota_project_id: _(Optional)_ Project ID from which to pull quota. The caller must have
+- quota_project_id: _(Optional)_ Project ID from which to pull quota. The caller must have
`serviceusage.services.use` permission on the project. If unspecified,
this defaults to the project of the authenticated principle. This is an
advanced setting, most users should leave this blank.
@@ -122,7 +122,7 @@ Action produces the following outputs:
-- `kubeconfig_path`: Path on the local filesystem where the generated Kubernetes configuration
+- kubeconfig_path: Path on the local filesystem where the generated Kubernetes configuration
file resides.
diff --git a/dist/main/index.js b/dist/main/index.js
index 4b6c74f..030cce6 100644
--- a/dist/main/index.js
+++ b/dist/main/index.js
@@ -2,4 +2,4 @@
/*! safe-buffer. MIT License. Feross Aboukhadijeh {"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GCE_LINUX_BIOS_PATHS=void 0;t.isGoogleCloudServerless=isGoogleCloudServerless;t.isGoogleComputeEngineLinux=isGoogleComputeEngineLinux;t.isGoogleComputeEngineMACAddress=isGoogleComputeEngineMACAddress;t.isGoogleComputeEngine=isGoogleComputeEngine;t.detectGCPResidency=detectGCPResidency;const s=r(9896);const n=r(857);t.GCE_LINUX_BIOS_PATHS={BIOS_DATE:"/sys/class/dmi/id/bios_date",BIOS_VENDOR:"/sys/class/dmi/id/bios_vendor"};const A=/^42:01/;function isGoogleCloudServerless(){const e=process.env.CLOUD_RUN_JOB||process.env.FUNCTION_NAME||process.env.K_SERVICE;return!!e}function isGoogleComputeEngineLinux(){if((0,n.platform)()!=="linux")return false;try{(0,s.statSync)(t.GCE_LINUX_BIOS_PATHS.BIOS_DATE);const e=(0,s.readFileSync)(t.GCE_LINUX_BIOS_PATHS.BIOS_VENDOR,"utf8");return/Google/.test(e)}catch{return false}}function isGoogleComputeEngineMACAddress(){const e=(0,n.networkInterfaces)();for(const t of Object.values(e)){if(!t)continue;for(const{mac:e}of t){if(A.test(e)){return true}}}return false}function isGoogleComputeEngine(){return isGoogleComputeEngineLinux()||isGoogleComputeEngineMACAddress()}function detectGCPResidency(){return isGoogleCloudServerless()||isGoogleComputeEngine()}},9595:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,s,n)}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var A=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),A=0;A {"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GCE_LINUX_BIOS_PATHS=void 0;t.isGoogleCloudServerless=isGoogleCloudServerless;t.isGoogleComputeEngineLinux=isGoogleComputeEngineLinux;t.isGoogleComputeEngineMACAddress=isGoogleComputeEngineMACAddress;t.isGoogleComputeEngine=isGoogleComputeEngine;t.detectGCPResidency=detectGCPResidency;const s=r(9896);const n=r(857);t.GCE_LINUX_BIOS_PATHS={BIOS_DATE:"/sys/class/dmi/id/bios_date",BIOS_VENDOR:"/sys/class/dmi/id/bios_vendor"};const A=/^42:01/;function isGoogleCloudServerless(){const e=process.env.CLOUD_RUN_JOB||process.env.FUNCTION_NAME||process.env.K_SERVICE;return!!e}function isGoogleComputeEngineLinux(){if((0,n.platform)()!=="linux")return false;try{(0,s.statSync)(t.GCE_LINUX_BIOS_PATHS.BIOS_DATE);const e=(0,s.readFileSync)(t.GCE_LINUX_BIOS_PATHS.BIOS_VENDOR,"utf8");return/Google/.test(e)}catch{return false}}function isGoogleComputeEngineMACAddress(){const e=(0,n.networkInterfaces)();for(const t of Object.values(e)){if(!t)continue;for(const{mac:e}of t){if(A.test(e)){return true}}}return false}function isGoogleComputeEngine(){return isGoogleComputeEngineLinux()||isGoogleComputeEngineMACAddress()}function detectGCPResidency(){return isGoogleCloudServerless()||isGoogleComputeEngine()}},9595:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,s,n)}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var A=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),A=0;A{"use strict";var s=r(3301);var n=r(4475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const s=t-r;const n=e.length;if(n<=s)return false;for(let t=0,r=0;tv){n.parser.removeListener("part",onPart);n.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(_){const e=_;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(A){let u;let h;let I;let B;let y;let v;let N=0;if(A["content-type"]){I=a(A["content-type"][0]);if(I[0]){u=I[0].toLowerCase();for(r=0,s=I.length;rS){const s=S-N+e.length;if(s>0){r.push(e.slice(0,s))}r.truncated=true;r.bytesRead=S;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){n._pause=true}r.bytesRead=N};O=function(){M=undefined;r.push(null)}}else{if(L===D){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++L;++U;let r="";let s=false;_=t;F=function(e){if((N+=e.length)>k){const n=k-(N-e.length);r+=e.toString("binary",0,n);s=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};O=function(){_=undefined;if(r.length){r=c(r,"binary",B)}e.emit("field",h,r,false,s,y,u);--U;checkFinished()}}t._readableState.sync=false;t.on("data",F);t.on("end",O)})).on("error",(function(e){if(M){M.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){O=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){s.call(this,e);this.bytesRead=0;this.truncated=false}n(FileStream,s);FileStream.prototype._read=function(e){};e.exports=Multipart},855:(e,t,r)=>{"use strict";const s=r(1496);const n=r(2747);const A=r(2393);const a=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const n=t.parsedConType;this.boy=e;this.fieldSizeLimit=A(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=A(r,"fieldNameSize",100);this.fieldsLimit=A(r,"fields",Infinity);let c;for(var l=0,u=n.length;la){this._key+=this.decoder.write(e.toString("binary",a,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();a=r+1}else if(s!==undefined){++this._fields;let r;const A=this._keyTrunc;if(s>a){r=this._key+=this.decoder.write(e.toString("binary",a,s))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",n(r,"binary",this.charset),"",A,false)}a=s+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(A>a){this._key+=this.decoder.write(e.toString("binary",a,A))}a=A;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(a{"use strict";var s=r(3301);var n=r(4475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const s=t-r;const n=e.length;if(n<=s)return false;for(let t=0,r=0;t