Skip to content

Commit

Permalink
Changed debian-10 -> debian-11
Browse files Browse the repository at this point in the history
  • Loading branch information
gryczj committed Aug 22, 2024
1 parent 80f803d commit c936eb5
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions compute/createInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* https://cloud.google.com/sdk/gcloud/reference/compute/machine-types/list
* @param {string} sourceImage - Path the the disk image you want to use for your boot
* disk. This can be one of the public images
* (e.g. "projects/debian-cloud/global/images/family/debian-10")
* (e.g. "projects/debian-cloud/global/images/family/debian-11")
* or a private image you have access to.
* You can check the list of available public images using:
* $ gcloud compute images list
Expand All @@ -37,7 +37,7 @@ function main(
zone,
instanceName,
machineType = 'n1-standard-1',
sourceImage = 'projects/debian-cloud/global/images/family/debian-10',
sourceImage = 'projects/debian-cloud/global/images/family/debian-11',
networkName = 'global/networks/default'
) {
// [START compute_instances_create]
Expand All @@ -48,7 +48,7 @@ function main(
// const zone = 'europe-central2-b'
// const instanceName = 'YOUR_INSTANCE_NAME'
// const machineType = 'n1-standard-1';
// const sourceImage = 'projects/debian-cloud/global/images/family/debian-10';
// const sourceImage = 'projects/debian-cloud/global/images/family/debian-11';
// const networkName = 'global/networks/default';

const compute = require('@google-cloud/compute');
Expand Down
6 changes: 3 additions & 3 deletions compute/createInstanceFromTemplateWithOverrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* https://cloud.google.com/sdk/gcloud/reference/compute/machine-types/list
* @param {string} newDiskSourceImage - Path the the disk image you want to use for your new
* disk. This can be one of the public images
* (like "projects/debian-cloud/global/images/family/debian-10")
* (like "projects/debian-cloud/global/images/family/debian-11")
* or a private image you have access to.
* For a list of available public images, see the documentation:
* http://cloud.google.com/compute/docs/images
Expand All @@ -37,7 +37,7 @@ function main(
instanceName,
instanceTemplateName,
machineType = 'n1-standard-2',
newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-10'
newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-11'
) {
// [START compute_instances_create_from_template_with_overrides]
/**
Expand All @@ -48,7 +48,7 @@ function main(
// const instanceName = 'YOUR_INSTANCE_NAME';
// const instanceTemplateName = 'YOUR_INSTANCE_TEMPLATE_NAME';
// const machineType = 'n1-standard-1';
// const newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-10';
// const newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-11';

const compute = require('@google-cloud/compute');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function main(
instanceName,
hostname,
machineType = 'n1-standard-1',
sourceImage = 'projects/debian-cloud/global/images/family/debian-10',
sourceImage = 'projects/debian-cloud/global/images/family/debian-11',
networkName = 'global/networks/default'
) {
// [START compute_instances_create_custom_hostname]
Expand All @@ -52,7 +52,7 @@ function main(
// const instanceName = 'YOUR_INSTANCE_NAME'
// const hostname = 'host.example.com'
// const machineType = 'n1-standard-1';
// const sourceImage = 'projects/debian-cloud/global/images/family/debian-10';
// const sourceImage = 'projects/debian-cloud/global/images/family/debian-11';
// const networkName = 'global/networks/default';

const compute = require('@google-cloud/compute');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function main(projectId, zone, instanceName) {
// List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details.
const [newestDebian] = await imagesClient.getFromFamily({
project: 'debian-cloud',
family: 'debian-10',
family: 'debian-11',
});

const [response] = await instancesClient.insert({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function main(
// List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details.
const [newestDebian] = await imagesClient.getFromFamily({
project: 'debian-cloud',
family: 'debian-10',
family: 'debian-11',
});

const [response] = await instancesClient.insert({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function main(projectId, zone, instanceName, deleteProtection) {
initializeParams: {
diskSizeGb: '10',
sourceImage:
'projects/debian-cloud/global/images/family/debian-10',
'projects/debian-cloud/global/images/family/debian-11',
},
autoDelete: true,
boot: true,
Expand Down
2 changes: 1 addition & 1 deletion compute/test/createInstanceTemplates.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const createInstance = async (projectId, zone, instanceName) => {
{
initializeParams: {
diskSizeGb: '250',
sourceImage: 'projects/debian-cloud/global/images/family/debian-10',
sourceImage: 'projects/debian-cloud/global/images/family/debian-11',
},
autoDelete: true,
boot: true,
Expand Down
4 changes: 2 additions & 2 deletions compute/test/createStartInstance.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ describe('create start instance tests', () => {

const [newestDebian] = await imagesClient.getFromFamily({
project: 'debian-cloud',
family: 'debian-10',
family: 'debian-11',
});

await createDisk(projectId, zone, diskName, newestDebian.selfLink);
Expand Down Expand Up @@ -163,7 +163,7 @@ describe('create start instance tests', () => {

const [newestDebian] = await imagesClient.getFromFamily({
project: 'debian-cloud',
family: 'debian-10',
family: 'debian-11',
});

let output;
Expand Down
4 changes: 2 additions & 2 deletions compute/test/samples.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ describe('samples', () => {
initializeParams: {
diskSizeGb: '10',
sourceImage:
'projects/debian-cloud/global/images/family/debian-10',
'projects/debian-cloud/global/images/family/debian-11',
},
autoDelete: true,
boot: true,
Expand Down Expand Up @@ -447,7 +447,7 @@ describe('samples', () => {
initializeParams: {
diskSizeGb: '10',
sourceImage:
'projects/debian-cloud/global/images/family/debian-10',
'projects/debian-cloud/global/images/family/debian-11',
},
autoDelete: true,
boot: true,
Expand Down
2 changes: 1 addition & 1 deletion functions/v2/autoLabelInstance/test/system.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('functions_label_gce_instance', () => {
initializeParams: {
diskSizeGb: '10',
sourceImage:
'projects/debian-cloud/global/images/family/debian-10',
'projects/debian-cloud/global/images/family/debian-11',
},
boot: true,
autoDelete: true,
Expand Down

0 comments on commit c936eb5

Please sign in to comment.