-
Notifications
You must be signed in to change notification settings - Fork 100
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
fixing issue with deployment to AKS #8249
Merged
brooke-hamilton
merged 4 commits into
radius-project:main
from
superbeeny:features/superbeeny/postgres-fix
Jan 22, 2025
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
2284f12
fixing issue with deployment to AKS
superbeeny f265c79
removing sql server tests and resources
superbeeny dc10ea9
Merge branch 'main' into features/superbeeny/postgres-fix
superbeeny c2a7d4b
Merge branch 'main' into features/superbeeny/postgres-fix
kachawla 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 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,13 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: database-secret | ||
namespace: "{{ .Release.Namespace }}" | ||
labels: | ||
control-plane: database | ||
app.kubernetes.io/name: database | ||
app.kubernetes.io/part-of: radius | ||
data: | ||
POSTGRES_DB: ps_db | ||
POSTGRES_USER: ps_user | ||
POSTGRES_PASSWORD: SecurePassword |
This file contains 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,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: database | ||
namespace: "{{ .Release.Namespace }}" | ||
labels: | ||
app.kubernetes.io/name: database | ||
app.kubernetes.io/part-of: radius | ||
spec: | ||
ports: | ||
- port: 5432 | ||
name: postgres | ||
protocol: TCP | ||
targetPort: 5432 | ||
selector: | ||
app.kubernetes.io/name: database |
This file contains 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,8 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: database | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app.kubernetes.io/name: database | ||
app.kubernetes.io/part-of: radius |
This file contains 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,56 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: database | ||
namespace: "{{ .Release.Namespace }}" | ||
labels: | ||
control-plane: database | ||
app.kubernetes.io/name: database | ||
app.kubernetes.io/part-of: radius | ||
spec: | ||
serviceName: "database" | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: database | ||
template: | ||
metadata: | ||
labels: | ||
control-plane: database | ||
app.kubernetes.io/name: database | ||
app.kubernetes.io/part-of: radius | ||
spec: | ||
serviceAccountName: database | ||
containers: | ||
- name: database | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
image: "{{ .Values.database.image }}:{{ .Values.database.tag }}" | ||
imagePullPolicy: IfNotPresent | ||
resources: | ||
requests: | ||
memory: "{{ .Values.database.resources.requests.memory }}" | ||
cpu: "{{ .Values.database.resources.requests.cpu }}" | ||
limits: | ||
memory: "{{ .Values.database.resources.limits.memory }}" | ||
cpu: "{{ .Values.database.resources.limits.cpu }}" | ||
envFrom: | ||
- configMapRef: | ||
name: database-secret | ||
ports: | ||
- containerPort: 5432 | ||
name: postgres | ||
volumeMounts: | ||
- name: database | ||
mountPath: /var/lib/postgresql/data | ||
subPath: postgres | ||
|
||
volumeClaimTemplates: | ||
- metadata: | ||
name: database | ||
spec: | ||
accessModes: ["ReadWriteOnce"] | ||
storageClassName: {{ .Values.database.storageClassName }} | ||
resources: | ||
requests: | ||
storage: {{ .Values.database.storageSize }} |
This file contains 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
118 changes: 0 additions & 118 deletions
118
test/functional-portable/datastoresrp/noncloud/resources/sql_test.go
This file was deleted.
Oops, something went wrong.
104 changes: 0 additions & 104 deletions
104
...rtable/datastoresrp/noncloud/resources/testdata/datastoresrp-resources-sqldb-manual.bicep
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a comment here what does setting it to empty do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do in my next commit :)