gcp

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The time in seconds in which IAM inconsistencies may occur.
	IamApiRetrySeconds = 600

	// Fast-fail timeout for expected failures
	IamApiFailFastRetrySeconds = 30
)
View Source
const (
	ModeAuto           = "auto"
	ModeManual         = "manual"
	ProviderGCP        = "gcp"
	ClusterArchClassic = "classic"
)

Variables

View Source
var (
	// CreateWifConfigOpts captures the options that affect creation of the workload identity configuration
	CreateWifConfigOpts = options{
		Mode:             ModeAuto,
		Name:             "",
		Project:          "",
		FederatedProject: "",
		RolePrefix:       "",
		TargetDir:        "",
		OpenshiftVersion: "",
	}
)
View Source
var (
	// DeleteWifConfigOpts captures the options that affect creation of the workload identity configuration
	DeleteWifConfigOpts = options{
		Mode:      ModeAuto,
		TargetDir: "",
	}
)
View Source
var GetWorkloadIdentityConfigurationOpts struct {
	// contains filtered or unexported fields
}
View Source
var ListDnsZoneOpts struct {
	// contains filtered or unexported fields
}
View Source
var ListFirewallRulesOpts struct {
	// contains filtered or unexported fields
}
View Source
var ListWorkloadIdentityConfigurationOpts struct {
	// contains filtered or unexported fields
}
View Source
var (
	UpdateWifConfigOpts = options{
		Mode:              ModeAuto,
		TargetDir:         "",
		OpenshiftVersion:  "",
		OpenshiftVersions: "",
		FederatedProject:  "",
	}
)

Functions

func NewCreateCmd

func NewCreateCmd() *cobra.Command

NewCreateCmd implements the "create" subcommand

func NewCreateDnsZone added in v1.0.12

func NewCreateDnsZone() *cobra.Command

NewCreateDnsZone provides the "gcp create dns-zone" subcommand

func NewCreateFirewallRules added in v1.0.17

func NewCreateFirewallRules() *cobra.Command

NewCreateFirewallRules provides the "gcp create firewall-rules" subcommand

func NewCreateWorkloadIdentityConfiguration

func NewCreateWorkloadIdentityConfiguration() *cobra.Command

NewCreateWorkloadIdentityConfiguration provides the "gcp create wif-config" subcommand

func NewDeleteCmd

func NewDeleteCmd() *cobra.Command

NewDeleteCmd implements the "delete" subcommand

func NewDeleteDnsZone added in v1.0.12

func NewDeleteDnsZone() *cobra.Command

NewDeleteDnsZone provides the "gcp delete dns-zone" subcommand

func NewDeleteFirewallRules added in v1.0.17

func NewDeleteFirewallRules() *cobra.Command

NewDeleteFirewallRules provides the "gcp delete firewall-rules" subcommand

func NewDeleteWorkloadIdentityConfiguration

func NewDeleteWorkloadIdentityConfiguration() *cobra.Command

NewDeleteWorkloadIdentityConfiguration provides the "gcp delete wif-config" subcommand

func NewDescribeCmd

func NewDescribeCmd() *cobra.Command

NewDescribeCmd implements the "describe" subcommand

func NewDescribeDnsZone added in v1.0.12

func NewDescribeDnsZone() *cobra.Command

NewDescribeDnsZone provides the "gcp describe dns-zone" subcommand

func NewDescribeFirewallRules added in v1.0.17

func NewDescribeFirewallRules() *cobra.Command

NewDescribeFirewallRules provides the "gcp describe firewall-rules" subcommand

func NewDescribeWorkloadIdentityConfiguration

func NewDescribeWorkloadIdentityConfiguration() *cobra.Command

NewDescribeWorkloadIdentityConfiguration provides the "gcp describe wif-config" subcommand

func NewGcpCmd

func NewGcpCmd() *cobra.Command

NewGcpCmd implements the "gcp" subcommand for the credentials provisioning

func NewGetCmd

func NewGetCmd() *cobra.Command

NewGetCmd implements the "get" subcommand

func NewGetDnsZone added in v1.0.12

func NewGetDnsZone() *cobra.Command

func NewGetWorkloadIdentityConfiguration

func NewGetWorkloadIdentityConfiguration() *cobra.Command

func NewListCmd

func NewListCmd() *cobra.Command

NewListCmd implements the "list" subcommand

func NewListDnsZone added in v1.0.12

func NewListDnsZone() *cobra.Command

NewListDnsZone provides the "gcp list dns-zone" subcommand

func NewListFirewallRules added in v1.0.17

func NewListFirewallRules() *cobra.Command

NewListFirewallRules provides the "gcp list firewall-rules" subcommand

func NewListWorkloadIdentityConfiguration

func NewListWorkloadIdentityConfiguration() *cobra.Command

NewListWorkloadIdentityConfiguration provides the "gcp list wif-config" subcommand

func NewUpdateCmd

func NewUpdateCmd() *cobra.Command

NewUpdateCmd implements the "update" subcommand

func NewUpdateFirewallRules added in v1.0.17

func NewUpdateFirewallRules() *cobra.Command

NewUpdateFirewallRules provides the "gcp update firewall-rules" subcommand

func NewUpdateWorkloadIdentityConfiguration

func NewUpdateWorkloadIdentityConfiguration() *cobra.Command

NewUpdateWorkloadIdentityConfiguration provides the "gcp update wif-config" subcommand

func NewVerifyCmd added in v1.0.3

func NewVerifyCmd() *cobra.Command

NewVerifyCmd implements the "verify" subcommand

func NewVerifyFirewallRules added in v1.0.17

func NewVerifyFirewallRules() *cobra.Command

NewVerifyFirewallRules provides the "gcp verify firewall-rules" subcommand

func NewVerifyWorkloadIdentityConfiguration added in v1.0.3

func NewVerifyWorkloadIdentityConfiguration() *cobra.Command

NewVerifyWorkloadIdentityConfiguration provides the "gcp verify wif-config" subcommand

Types

type Args added in v1.0.12

type Args struct {
	Interactive  bool
	DomainPrefix string
	ProjectId    string
	NetworkId    string
	// This is required only for creating dns-zone
	NetworkProjectId string
}

type CreateFirewallRulesArgs added in v1.0.17

type CreateFirewallRulesArgs struct {
	Mode        string
	Interactive bool
	Name        string
	Profile     string
	ProjectID   string
	VpcName     string
	MachineCidr string
	WifConfigID string
	OutputFile  string
}

type DeleteFirewallRulesArgs added in v1.0.17

type DeleteFirewallRulesArgs struct {
	Mode       string
	OutputFile string
}

type GcpClientWifConfigShim added in v0.1.76

type GcpClientWifConfigShim interface {
	CreateServiceAccounts(ctx context.Context, log *log.Logger) error
	CreateWorkloadIdentityPool(ctx context.Context, log *log.Logger) error
	CreateWorkloadIdentityProvider(ctx context.Context, log *log.Logger) error
	GrantSupportAccess(ctx context.Context, log *log.Logger) error

	DeleteServiceAccounts(ctx context.Context, log *log.Logger) error
	DeleteWorkloadIdentityPool(ctx context.Context, log *log.Logger) error
	UnbindServiceAccounts(ctx context.Context, log *log.Logger) error
}

All operations that modify cloud resources should be logged to the user. For this reason, all methods of this interface take a logger as a parameter.

func NewGcpClientWifConfigShim added in v0.1.76

func NewGcpClientWifConfigShim(spec GcpClientWifConfigShimSpec) GcpClientWifConfigShim

type GcpClientWifConfigShimSpec added in v0.1.76

type GcpClientWifConfigShimSpec struct {
	WifConfig *cmv1.WifConfig
	GcpClient gcp.GcpClient
	FailFast  bool
}

type GetDnsZoneArgs added in v1.0.12

type GetDnsZoneArgs struct {
	// contains filtered or unexported fields
}

type UpdateFirewallRulesArgs added in v1.0.17

type UpdateFirewallRulesArgs struct {
	Mode       string
	OutputFile string
}

Jump to

Keyboard shortcuts

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