Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:Including import credentials for project via secretRef #138

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

frkouokam
Copy link

Description of your changes

API definition for secretRef has been added in project_types.go.

Retrieving secret and adding it to the importUrl has been implemented in controller/project.go (WIP)

Fixes #48

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

apis/projects/v1alpha1/project_types.go Outdated Show resolved Hide resolved
pkg/controller/projects/projects/project.go Outdated Show resolved Hide resolved
pkg/controller/projects/projects/project.go Show resolved Hide resolved
Comment on lines +184 to +187
- password
- secretName
- secretNamespace
- username
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are username and password required values or should the provider support imports from public repos?

Copy link
Author

Choose a reason for hiding this comment

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

username and password are required only if importUrlSecretRef is not nil. And yes the provider should also support imports from public repos. @abacus3

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK, thank. I think the name importUrlSecretRef´ is a bit misleading. Can we change it to something more explicit like importCredentialsSecretRef`?

@MisterMX
Copy link
Collaborator

@frkouokam once this PR is ready to be merged can set it to "Ready for Review" and squash your changes into a single commit and sign it off?

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.

Support including import credentials for Project via secretRef
3 participants