tests

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestDescription = "test resource for capg-firewall-rule-operator"
	TestRegion      = "europe-west3"
)

Variables

This section is empty.

Functions

func CreateBackendService added in v0.5.0

func CreateBackendService(backendServices *compute.BackendServicesClient, gcpProject, name string) *computepb.BackendService

func CreateEmptyRouter added in v0.5.1

func CreateEmptyRouter(routers *compute.RoutersClient, network *computepb.Network, gcpProject, name string) *computepb.Router

func CreateIPAddress added in v0.5.0

func CreateIPAddress(addresses *compute.AddressesClient, gcpProject, name string) *computepb.Address

func CreateNATRouter added in v0.5.1

func CreateNATRouter(routers *compute.RoutersClient, address *computepb.Address, network *computepb.Network, gcpProject, name string) *computepb.Router

func DeleteBackendService added in v0.5.0

func DeleteBackendService(backendServices *compute.BackendServicesClient, gcpProject, name string)

func DeleteFirewall

func DeleteFirewall(firewalls *compute.FirewallsClient, gcpProject, firewallName string)

func DeleteIPAddress added in v0.5.0

func DeleteIPAddress(addresses *compute.AddressesClient, gcpProject, name string)

func DeleteRouter added in v0.5.0

func DeleteRouter(routers *compute.RoutersClient, gcpProject, name string)

func DeleteSecurityPolicy added in v0.5.0

func DeleteSecurityPolicy(securityPolicies *compute.SecurityPoliciesClient, gcpProject, name string)

func GenerateGUID

func GenerateGUID(prefix string) string

func GetDefaultNetwork added in v0.5.0

func GetDefaultNetwork(networks *compute.NetworksClient, gcpProject string) *computepb.Network

func GetEnvOrSkip

func GetEnvOrSkip(env string) string

func MapRulesByPriority added in v0.5.1

func MapRulesByPriority(rules []*computepb.SecurityPolicyRule) map[int32]*computepb.SecurityPolicyRule

func PatchClusterStatus

func PatchClusterStatus(k8sClient client.Client, cluster *capg.GCPCluster, status capg.GCPClusterStatus)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL