Skip to content

EXPERIMENT(Devconatiner): Adding devcontainer setup#365

Draft
SatabdiG wants to merge 14 commits intomainfrom
feat/devcontainer
Draft

EXPERIMENT(Devconatiner): Adding devcontainer setup#365
SatabdiG wants to merge 14 commits intomainfrom
feat/devcontainer

Conversation

@SatabdiG
Copy link
Contributor

@SatabdiG SatabdiG commented Oct 13, 2025

Experimental branch for devcontainer

@SatabdiG SatabdiG added the do-not-merge On PRs, this prevents merging through the status checks label Oct 13, 2025
@SatabdiG SatabdiG changed the title feat(Devconatiner): Adding devcontainer setup EXPERIMENT(Devconatiner): Adding devcontainer setup Oct 13, 2025
Copy link
Member

@sdischer-sap sdischer-sap left a comment

Choose a reason for hiding this comment

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

Thats super promising and a real nice addition to easing the onboarding.
I wasn't aware of this codespaces flow before. Do you mind showcasing this in the next dev sync?

Copy link
Member

Choose a reason for hiding this comment

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

Do we have a need for that? I never used the CLI. Just curious.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So my thinking for this was, maybe a user would like to do

kubectl crossplane install provider ghcr.io/sap/crossplane-provider-btp:latest

Then the cli needs to be there. Else, we can have the user create a examples/provider.yaml file and use kubectl apply -f, but I think the CLI command could be useful for someone who just wants to just take our provider for a spin.

Copy link
Member

Choose a reason for hiding this comment

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

Cool. Totally makes sense. I wasn't aware of that option.

@SatabdiG SatabdiG self-assigned this Oct 22, 2025
@SatabdiG
Copy link
Contributor Author

Thats super promising and a real nice addition to easing the onboarding. I wasn't aware of this codespaces flow before. Do you mind showcasing this in the next dev sync?

I would love to, if there is nothing pressing.

Copy link
Member

@sdischer-sap sdischer-sap left a comment

Choose a reason for hiding this comment

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

Really cool stuff here. Thanks for all the feedback. LGTM

Copy link
Member

Choose a reason for hiding this comment

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

Cool. Totally makes sense. I wasn't aware of that option.

@sap-email-compliance
Copy link

SAP employees are expected to use their SAP-email address for commits related to their work. Our compliance check has detected usage of an email other than a SAP one by a SAP employee. Please update your pull request accordingly.

If you thing this is wrong or need any assistance, please contact ospo@sap.com.

"\"password\":"
"credentials.*:.*{"
"BEGIN.*PRIVATE KEY"
"authentication.sap.hana.ondemand.com"
Copy link

Choose a reason for hiding this comment

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

escape the dots \.

# INSTALL CLI TOOLS
# =============================================================================

# kind
Copy link

Choose a reason for hiding this comment

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

Pin versions, maybe have checksums as well


if echo | timeout 10 openssl s_client -showcerts \
-connect authentication.sap.hana.ondemand.com:443 2>/dev/null | \
awk '/BEGIN CERTIFICATE/,/END CERTIFICATE/ {print}' > /tmp/sap-certs.pem 2>/dev/null && \
Copy link

Choose a reason for hiding this comment

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

Maybe create a log file for errors, for troubleshooting

configure_credentials() {
local namespace="default"

if [ -n "$BTP_TECHNICAL_USER" ] && [ -n "$CIS_CENTRAL_BINDING" ]; then
Copy link

Choose a reason for hiding this comment

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

Maybe check if these variables are valid jsons

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

Labels

do-not-merge On PRs, this prevents merging through the status checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments