Documentation ¶
Overview ¶
gcpauth holds the typed objects that define the schemas for default GCP auth of sources and channels.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigMapName ¶
func ConfigMapName() string
ConfigMapName returns the name of the configmap to read for default GCP auth settings.
Types ¶
type Config ¶
type Config struct {
GCPAuthDefaults *Defaults
}
Config holds the collection of configurations that we attach to contexts. +k8s:deepcopy-gen=false
func FromContext ¶
FromContext extracts a Config from the provided context.
func FromContextOrDefaults ¶
FromContextOrDefaults is like FromContext, but when no Config is attached it returns a Config populated with the defaults for each of the Config fields.
type Defaults ¶
type Defaults struct { // NamespaceDefaults are the GCP auth defaults to use in specific namespaces. The namespace is // the key, the value is the defaults. NamespaceDefaults map[string]ScopedDefaults `json:"namespaceDefaults,omitempty"` // ClusterDefaults are the GCP auth defaults to use for all namepaces that are not in // NamespaceDefaults. ClusterDefaults ScopedDefaults `json:"clusterDefaults,omitempty"` }
Defaults includes the default values to be populated by the Webhook.
func NewDefaultsConfigFromConfigMap ¶
NewDefaultsConfigFromConfigMap creates a Defaults from the supplied configMap.
func NewDefaultsConfigFromMap ¶
NewDefaultsConfigFromMap creates a Defaults from the supplied Map.
func (*Defaults) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Defaults.
func (*Defaults) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Defaults) WorkloadIdentityGSA ¶
type ScopedDefaults ¶
type ScopedDefaults struct { // ServiceAccountName is the Kubernetes Service Account to user for all data plane pieces. This // is expected to be used for Workload Identity workloads. ServiceAccountName string `json:"serviceAccountName,omitempty"` // Secret is the secret to default to, if one is not already in the CO's spec. Secret *corev1.SecretKeySelector `json:"secret,omitempty"` // WorkloadIdentityMapping is a mapping from Kubernetes Service Account to Google IAM Service // Account. If a GCP authable's spec.ServiceAccountName is in this map, then the controller will // attempt to setup Workload Identity between the two accounts. If it is unable to do so, then // the CO will not become ready. WorkloadIdentityMapping map[string]string `json:"workloadIdentityMapping,omitEmpty"` }
ScopedDefaults are the GCP auth defaults.
func (*ScopedDefaults) DeepCopy ¶
func (in *ScopedDefaults) DeepCopy() *ScopedDefaults
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedDefaults.
func (*ScopedDefaults) DeepCopyInto ¶
func (in *ScopedDefaults) DeepCopyInto(out *ScopedDefaults)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Store ¶
type Store struct {
*configmap.UntypedStore
}
Store is a typed wrapper around configmap.Untyped store to handle our ConfigMaps. +k8s:deepcopy-gen=false
func NewStore ¶
NewStore creates a new store of Configs and optionally calls functions when ConfigMaps are updated.
type StoreSingleton ¶
type StoreSingleton struct {
// contains filtered or unexported fields
}
+k8s:deepcopy-gen=false