-
Notifications
You must be signed in to change notification settings - Fork 7
feat(dis-cache-operator): scaffold self-service Azure Managed Redis #3472
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
Open
arealmaas
wants to merge
11
commits into
main
Choose a base branch
from
arealmaas/redis-operator-valkey
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
aeda999
feat(dis-redis-operator): scaffold self-service Azure Managed Redis o…
arealmaas cbc90a6
fix(dis-redis-operator): address review feedback
arealmaas 1e78749
refactor(dis-cache-operator): rename dis-redis-operator to dis-cache-…
arealmaas 32aed92
docs(dis-cache-operator): refresh PR description for rename and revie…
arealmaas 7cbc43f
chore: untrack local .omc session state
arealmaas 832ad60
chore: remove pr_description.md from repo
arealmaas 0bb46d0
fix(dis-cache-operator): address remaining review nits
arealmaas 0296eb2
fix(dis-cache-operator): unblock CI verify-deps and trivy scan
arealmaas 8238be5
fix(dis-cache-operator): pin golang base image and bump grpc
arealmaas 9f6e289
fix(dis-cache-operator): bump OTel to v1.43.0 to fix HIGH CVEs
arealmaas bce97a9
feat(dis-cache-operator): wire PrivateDnsZoneGroup and mirror pgsql D…
arealmaas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| name: Dis Redis Lint and Test | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - services/dis-cache-operator/** | ||
| - .github/workflows/dis-cache-lint-test.yml | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - services/dis-cache-operator/** | ||
| - .github/workflows/dis-cache-lint-test.yml | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| lint: | ||
| name: Run linter on Ubuntu | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: services/dis-cache-operator | ||
| steps: | ||
| - name: Clone the code | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Setup Go | ||
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | ||
| with: | ||
| go-version-file: "services/dis-cache-operator/go.mod" | ||
| cache-dependency-path: "services/dis-cache-operator/go.sum" | ||
|
|
||
| - name: Run linter | ||
| uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 | ||
| with: | ||
| version: v2.11.4 | ||
| working-directory: services/dis-cache-operator | ||
| test: | ||
| name: Run tests on Ubuntu | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: services/dis-cache-operator | ||
| steps: | ||
| - name: Clone the code | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Setup Go | ||
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | ||
| with: | ||
| go-version-file: "services/dis-cache-operator/go.mod" | ||
| cache-dependency-path: "services/dis-cache-operator/go.sum" | ||
|
|
||
| - name: Running Tests | ||
| run: | | ||
| make verify-deps | ||
| make test | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| name: Scan/Release Dis Redis Operator Image and Build Kustomize OCI Artifact | ||
|
|
||
| env: | ||
| FLUX_ARTIFACT_NAME: dis/kustomize/dis-cache-operator | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - .github/workflows/dis-cache-release.yml | ||
| - services/dis-cache-operator/** | ||
| - .github/workflows/reusable-image-scan-and-release-ghcr.yml | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - .github/workflows/dis-cache-release.yml | ||
| - services/dis-cache-operator/** | ||
| - .github/workflows/reusable-image-scan-and-release-ghcr.yml | ||
| tags: | ||
| - "dis-cache-v*" | ||
| workflow_dispatch: {} | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build-and-release-image: | ||
| name: Build, scan and release | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| uses: ./.github/workflows/reusable-image-scan-and-release-ghcr.yml | ||
| with: | ||
| release_latest: true | ||
| image_name: dis-cache-operator | ||
| tag_prefix: dis-cache-v | ||
| platforms: "linux/amd64" | ||
| workdir: ./services/dis-cache-operator | ||
| build-release-flux-oci-latest: | ||
| name: Build latest from main | ||
| if: github.ref == 'refs/heads/main' | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| id-token: write | ||
| defaults: | ||
| run: | ||
| working-directory: ./services/dis-cache-operator/config | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| with: | ||
| persist-credentials: false | ||
| - name: Push latest flux oci image from main | ||
| uses: ./actions/flux/build-push-image | ||
| with: | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| workdir: ./services/dis-cache-operator/config | ||
| image_name: ${{ env.FLUX_ARTIFACT_NAME }} | ||
| tag: latest | ||
| azure_subscription_id: ${{ secrets.AZURE_ALTINNACR_SUBSCRIPTION_ID }} | ||
| azure_app_id: ${{ secrets.AZURE_ALTINNACR_APP_ID }} | ||
| azure_tenant_id: ${{ secrets.AZURE_TENANT_ID }} | ||
| build-release-flux-oci-release: | ||
| name: Build release from tag | ||
| if: startsWith(github.ref, 'refs/tags/dis-cache-v') | ||
| environment: flux-release | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| id-token: write | ||
| defaults: | ||
| run: | ||
| working-directory: ./services/dis-cache-operator/config | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Setup vars | ||
| id: vars | ||
| run: | | ||
| tag="${GITHUB_REF/refs\/tags\/dis-cache-/}" | ||
| echo "tag=${tag}" >> ${GITHUB_OUTPUT} | ||
| - name: Push flux oci image from release tag | ||
| uses: ./actions/flux/build-push-image | ||
| with: | ||
| workdir: ./services/dis-cache-operator/config | ||
| image_name: ${{ env.FLUX_ARTIFACT_NAME }} | ||
| tag: ${{ steps.vars.outputs.tag }} | ||
| azure_subscription_id: ${{ secrets.AZURE_ALTINNACR_SUBSCRIPTION_ID }} | ||
| azure_app_id: ${{ secrets.AZURE_ALTINNACR_APP_ID }} | ||
| azure_tenant_id: ${{ secrets.AZURE_TENANT_ID }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,3 +61,6 @@ override.tf.json | |
| terraform.rc | ||
| go.work | ||
| go.work.sum | ||
|
|
||
| # Local oh-my-claudecode session state | ||
| .omc/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.