Documentation
¶
Index ¶
- Constants
- Variables
- func NewCreateCmd() *cobra.Command
- func NewCreateDnsZone() *cobra.Command
- func NewCreateFirewallRules() *cobra.Command
- func NewCreateWorkloadIdentityConfiguration() *cobra.Command
- func NewDeleteCmd() *cobra.Command
- func NewDeleteDnsZone() *cobra.Command
- func NewDeleteFirewallRules() *cobra.Command
- func NewDeleteWorkloadIdentityConfiguration() *cobra.Command
- func NewDescribeCmd() *cobra.Command
- func NewDescribeDnsZone() *cobra.Command
- func NewDescribeFirewallRules() *cobra.Command
- func NewDescribeWorkloadIdentityConfiguration() *cobra.Command
- func NewGcpCmd() *cobra.Command
- func NewGetCmd() *cobra.Command
- func NewGetDnsZone() *cobra.Command
- func NewGetWorkloadIdentityConfiguration() *cobra.Command
- func NewListCmd() *cobra.Command
- func NewListDnsZone() *cobra.Command
- func NewListFirewallRules() *cobra.Command
- func NewListWorkloadIdentityConfiguration() *cobra.Command
- func NewUpdateCmd() *cobra.Command
- func NewUpdateFirewallRules() *cobra.Command
- func NewUpdateWorkloadIdentityConfiguration() *cobra.Command
- func NewVerifyCmd() *cobra.Command
- func NewVerifyFirewallRules() *cobra.Command
- func NewVerifyWorkloadIdentityConfiguration() *cobra.Command
- type Args
- type CreateFirewallRulesArgs
- type DeleteFirewallRulesArgs
- type GcpClientWifConfigShim
- type GcpClientWifConfigShimSpec
- type GetDnsZoneArgs
- type UpdateFirewallRulesArgs
Constants ¶
const ( // The time in seconds in which IAM inconsistencies may occur. IamApiRetrySeconds = 600 // Fast-fail timeout for expected failures IamApiFailFastRetrySeconds = 30 )
const ( ModeAuto = "auto" ModeManual = "manual" ProviderGCP = "gcp" ClusterArchClassic = "classic" )
Variables ¶
var ( // CreateWifConfigOpts captures the options that affect creation of the workload identity configuration CreateWifConfigOpts = options{ Mode: ModeAuto, Name: "", Project: "", FederatedProject: "", RolePrefix: "", TargetDir: "", OpenshiftVersion: "", } )
var ( // DeleteWifConfigOpts captures the options that affect creation of the workload identity configuration DeleteWifConfigOpts = options{ Mode: ModeAuto, TargetDir: "", } )
var GetWorkloadIdentityConfigurationOpts struct { // contains filtered or unexported fields }
var ListDnsZoneOpts struct { // contains filtered or unexported fields }
var ListFirewallRulesOpts struct { // contains filtered or unexported fields }
var ListWorkloadIdentityConfigurationOpts struct { // contains filtered or unexported fields }
var Modes = []string{ModeAuto, ModeManual}
var ( UpdateWifConfigOpts = options{ Mode: ModeAuto, TargetDir: "", OpenshiftVersion: "", OpenshiftVersions: "", FederatedProject: "", } )
Functions ¶
func NewCreateCmd ¶
NewCreateCmd implements the "create" subcommand
func NewCreateDnsZone ¶ added in v1.0.12
NewCreateDnsZone provides the "gcp create dns-zone" subcommand
func NewCreateFirewallRules ¶ added in v1.0.17
NewCreateFirewallRules provides the "gcp create firewall-rules" subcommand
func NewCreateWorkloadIdentityConfiguration ¶
NewCreateWorkloadIdentityConfiguration provides the "gcp create wif-config" subcommand
func NewDeleteCmd ¶
NewDeleteCmd implements the "delete" subcommand
func NewDeleteDnsZone ¶ added in v1.0.12
NewDeleteDnsZone provides the "gcp delete dns-zone" subcommand
func NewDeleteFirewallRules ¶ added in v1.0.17
NewDeleteFirewallRules provides the "gcp delete firewall-rules" subcommand
func NewDeleteWorkloadIdentityConfiguration ¶
NewDeleteWorkloadIdentityConfiguration provides the "gcp delete wif-config" subcommand
func NewDescribeCmd ¶
NewDescribeCmd implements the "describe" subcommand
func NewDescribeDnsZone ¶ added in v1.0.12
NewDescribeDnsZone provides the "gcp describe dns-zone" subcommand
func NewDescribeFirewallRules ¶ added in v1.0.17
NewDescribeFirewallRules provides the "gcp describe firewall-rules" subcommand
func NewDescribeWorkloadIdentityConfiguration ¶
NewDescribeWorkloadIdentityConfiguration provides the "gcp describe wif-config" subcommand
func NewGetDnsZone ¶ added in v1.0.12
func NewListDnsZone ¶ added in v1.0.12
NewListDnsZone provides the "gcp list dns-zone" subcommand
func NewListFirewallRules ¶ added in v1.0.17
NewListFirewallRules provides the "gcp list firewall-rules" subcommand
func NewListWorkloadIdentityConfiguration ¶
NewListWorkloadIdentityConfiguration provides the "gcp list wif-config" subcommand
func NewUpdateCmd ¶
NewUpdateCmd implements the "update" subcommand
func NewUpdateFirewallRules ¶ added in v1.0.17
NewUpdateFirewallRules provides the "gcp update firewall-rules" subcommand
func NewUpdateWorkloadIdentityConfiguration ¶
NewUpdateWorkloadIdentityConfiguration provides the "gcp update wif-config" subcommand
func NewVerifyCmd ¶ added in v1.0.3
NewVerifyCmd implements the "verify" subcommand
func NewVerifyFirewallRules ¶ added in v1.0.17
NewVerifyFirewallRules provides the "gcp verify firewall-rules" subcommand
func NewVerifyWorkloadIdentityConfiguration ¶ added in v1.0.3
NewVerifyWorkloadIdentityConfiguration provides the "gcp verify wif-config" subcommand
Types ¶
type CreateFirewallRulesArgs ¶ added in v1.0.17
type DeleteFirewallRulesArgs ¶ added in v1.0.17
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 GetDnsZoneArgs ¶ added in v1.0.12
type GetDnsZoneArgs struct {
// contains filtered or unexported fields
}
type UpdateFirewallRulesArgs ¶ added in v1.0.17
Source Files
¶
- create-dns-zone.go
- create-firewall-rules.go
- create-wif-config.go
- delete-dns-zone.go
- delete-firewall-rules.go
- delete-wif-config.go
- describe-dns-zone.go
- describe-firewall-rules.go
- describe-wif-config.go
- flag_descriptions.go
- gcp-client-shim.go
- gcp.go
- get-dns-zone.go
- get-wif-config.go
- helpers.go
- list-dns-zone.go
- list-firewall-rules.go
- list-wif-config.go
- scripting.go
- update-firewall-rules.go
- update-wif-config.go
- verify-firewall-rules.go
- verify-wif-config.go