Skip to content

Commit

Permalink
ARO-9263: Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
edisonLcardenas committed Sep 20, 2024
1 parent c4171bc commit e22da94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pkg/api/openshiftcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -743,9 +743,9 @@ type IngressProfile struct {
type RegistryProfile struct {
MissingFields

Name string `json:"name,omitempty"`
Username string `json:"username,omitempty"`
Password SecureString `json:"password,omitempty"`
Name string `json:"name,omitempty"`
Username string `json:"username,omitempty"`
Password SecureString `json:"password,omitempty"`
IssueDate *date.Time `json:"issueDate,omitempty"`
}

Expand Down
5 changes: 2 additions & 3 deletions pkg/util/acrtoken/acrtoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ func (m *manager) GetRegistryProfileFromSlice(registryProfiles []*api.RegistryPr
}

func (m *manager) NewRegistryProfile(oc *api.OpenShiftCluster) *api.RegistryProfile {

return &api.RegistryProfile{
Name: fmt.Sprintf("%s.%s", m.r.ResourceName, m.env.Environment().ContainerRegistryDNSSuffix),
Username: "token-" + uuid.DefaultGenerator.Generate(),
Name: fmt.Sprintf("%s.%s", m.r.ResourceName, m.env.Environment().ContainerRegistryDNSSuffix),
Username: "token-" + uuid.DefaultGenerator.Generate(),
IssueDate: &date.Time{Time: time.Now().UTC()},
}
}
Expand Down

0 comments on commit e22da94

Please sign in to comment.