Skip to content

Restrict PVC and secret creation in same namespace during provisioning#306

Open
Prachi030510 wants to merge 13 commits into
mainfrom
prachi
Open

Restrict PVC and secret creation in same namespace during provisioning#306
Prachi030510 wants to merge 13 commits into
mainfrom
prachi

Conversation

@Prachi030510

Copy link
Copy Markdown
Collaborator

Describe your changes

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • If it is a core feature, I have added thorough tests.
  • I have made sure existing UTs are not impacted
  • I have executed all necessary linter and made sure internal pipeline/travis is not broken

@mssachan mssachan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added minor comment. PTAL

Comment thread pkg/driver/controllerserver.go Outdated
@contsto

contsto commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

👍 Coverage remained same at 84.86%

@Prachi030510 Prachi030510 requested a review from mssachan April 9, 2026 09:21
Comment thread pkg/driver/controllerserver.go

@mssachan mssachan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes looks good. Added minor comment. PTAL

Comment thread pkg/driver/controllerserver_test.go Outdated
@contsto

contsto commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

👍 Coverage remained same at 84.86%

@Prachi030510 Prachi030510 requested a review from mssachan April 10, 2026 08:49

@mssachan mssachan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added minor comment. PTAL

secret, err := cs.Stats.GetSecret(customSecretName, secretNamespace)
if err != nil {
return nil, status.Error(codes.InvalidArgument, fmt.Sprintf("Secret resource not found %v", err))
return nil, status.Error(codes.InvalidArgument, fmt.Sprintf("error getting Secret: %v", err))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change, log message will look like as given below:
error getting Secret: error getting Secret: secrets "test-cos-secret1" not found
Please verify and make the changes accordingly.

@contsto

contsto commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator

👍 Coverage remained same at 84.86%

@Prachi030510 Prachi030510 requested a review from mssachan April 13, 2026 07:58
@contsto

contsto commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator

👍 Coverage remained same at 84.86%

@contsto

contsto commented May 24, 2026

Copy link
Copy Markdown
Collaborator

👍 Coverage remained same at 84.86%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants