Skip to content

Commit

Permalink
Remove InjectedIndentity
Browse files Browse the repository at this point in the history
Co-authored-by: Alper Ulucinar <[email protected]>
Signed-off-by: Zheng Xi Zhou <[email protected]>
  • Loading branch information
zzxwill and ulucinar committed Jul 2, 2021
1 parent e0b73b0 commit 732f5a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion apis/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type ProviderConfigSpec struct {
// ProviderCredentials required to authenticate.
type ProviderCredentials struct {
// Source of the provider credentials.
// +kubebuilder:validation:Enum=None;Secret;InjectedIdentity;Environment;Filesystem
// +kubebuilder:validation:Enum=None;Secret;Environment;Filesystem
Source xpv1.CredentialsSource `json:"source"`
xpv1.CommonCredentialSelectors `json:",inline"`
}
Expand Down
4 changes: 0 additions & 4 deletions pkg/controller/oss/oss_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ func (c *Connector) Connect(ctx context.Context, mg resource.Managed) (managed.E
return nil, errors.New(errNotBucket)
}

if err := c.Usage.Track(ctx, mg); err != nil {
return nil, errors.Wrap(err, errTrackUsage)
}

info, err := util.PrepareClient(ctx, mg, cr, c.Client, c.Usage, cr.Spec.ProviderConfigReference.Name)
if err != nil {
return nil, err
Expand Down

0 comments on commit 732f5a3

Please sign in to comment.