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

[registry-facade] Configure credentials for Redis Sentinel #9106

Merged
merged 3 commits into from
Apr 5, 2022

Conversation

aledbf
Copy link
Member

@aledbf aledbf commented Apr 4, 2022

Release Notes

[registry-facade] Configure credentials for Redis Sentinel

@roboquat roboquat added size/S and removed size/XS labels Apr 4, 2022
@aledbf aledbf changed the title [registry-facade] Override IPFSAddr value using the IPFS_HOST env var… [registry-facade] Override IPFSAddr using the IPFS_HOST env variable Apr 5, 2022
@aledbf aledbf marked this pull request as ready for review April 5, 2022 14:41
@aledbf aledbf requested a review from a team April 5, 2022 14:41
@aledbf aledbf requested a review from csweichel as a code owner April 5, 2022 14:41
@github-actions github-actions bot added the team: workspace Issue belongs to the Workspace team label Apr 5, 2022
@csweichel
Copy link
Contributor

csweichel commented Apr 5, 2022

The sentinel change makes 💯 sense.

I'm not sure I follow the need to override the config field value though. This strikes me as a less flexible way compared to what we have now. Also it's a departure from current behaviour where AFAIK we have no other place where env vars would take precedence over config values.

@aledbf
Copy link
Member Author

aledbf commented Apr 5, 2022

I'm not sure I follow the need to override the config field value though.

Ok. How do you propose to set the value? (I want to use the local node IPFS instance)

This is what I have in the installer yaml file

    registryFacade:
      ipfsCache:
        enabled: true
        redis:
          masterName: kumquat
          sentinelAddrs:
            - redis.storage.svc.cluster.local:26379
          username: default
          passwordSecret: redis-credentials

@csweichel
Copy link
Contributor

Ok. How do you propose to set the value? (I want to use the local node IPFS instance)

    registryFacade:
      ipfsCache:
        enabled: true
        ipfs: /ip4/$IPFS_HOST/tcp/5001
        redis:
          masterName: kumquat
          sentinelAddrs:
            - redis.storage.svc.cluster.local:26379
          username: default
          passwordSecret: redis-credentials

@aledbf aledbf changed the title [registry-facade] Override IPFSAddr using the IPFS_HOST env variable [registry-facade] Configure credentials for Redis Sentinel Apr 5, 2022
@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels Apr 5, 2022
Copy link
Contributor

@csweichel csweichel left a comment

Choose a reason for hiding this comment

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

LGTM

@roboquat roboquat merged commit da28f0c into main Apr 5, 2022
@roboquat roboquat deleted the aledbf/ipfs branch April 5, 2022 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note size/S team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants