-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GCP Verifier Documentation (#266)
* add Terraform script to make GCP VPC with firewall * make minor changes to README * add minor change to README * Update README * Update README * Update README * remove optional Terraform options * changed cloud NAT use to private subnet only * increase nat ports for more reliable connection * update GCP verifier docs * update gcp entry_point.go comments * update dummy probe comments * update gcp.go comments * update comments for gcp_verifier.go
- Loading branch information
Showing
5 changed files
with
63 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ import ( | |
"github.com/openshift/osd-network-verifier/pkg/output" | ||
) | ||
|
||
// dummy.Probe is an implementation of the probes.Probe interface for testing / building the verifier client. | ||
// MachineID and UserData are hardcoded for testing purposes. | ||
|
||
type Probe struct{} | ||
|
||
const ( | ||
|
@@ -20,15 +23,15 @@ func (prb Probe) GetEndingToken() string { return endingToken } | |
|
||
// GetMachineImageID returns the string ID of the VM image to be used for the probe instance | ||
func (prb Probe) GetMachineImageID(string, cpu.Architecture, string) (string, error) { | ||
return "rhel-9", nil | ||
return "rhel-9-v20240709", nil | ||
} | ||
|
||
// GetExpandedUserData returns a bash-formatted userdata string | ||
func (prb Probe) GetExpandedUserData(map[string]string) (string, error) { | ||
return `#!/bin/sh | ||
systemctl mask --now [email protected] | ||
systemctl disable --now syslog.socket rsyslog.service | ||
sysctl -w kernel.printk="0 4 0 7"ss | ||
sysctl -w kernel.printk="0 4 0 7" | ||
echo DUMMY_START > /dev/ttyS0 | ||
echo "hello world" > /dev/ttyS0 | ||
echo DUMMY_END > /dev/ttyS0`, nil | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters