Skip to content

Commit

Permalink
Fix bitwarden-sdk labels and selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
lentzi90 committed Feb 14, 2025
1 parent 1a8cd2f commit cff93c6
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/kind-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
uses: kyverno/action-install-chainsaw@v0.2.12
- name: Create Kind Cluster
uses: helm/kind-action@v1.12.0
with:
config: kind-config.yaml

- name: Chainsaw test
run: chainsaw test
Expand Down
9 changes: 1 addition & 8 deletions apps/kind/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ kind: Kustomization
namespace: argocd

resources:
# We cannot apply the app of apps when testing a PR, since it would make all the other apps point to main
# - apps-app.yaml
- apps-app.yaml
- argocd-app.yaml
- cert-manager-app.yaml
- cloudnative-pg-app.yaml
Expand All @@ -18,9 +17,3 @@ resources:
- nextcloud-app.yaml
- pi-hole-app.yaml
- wireguard-app.yaml
# In order to test PRs, patch the targetRevision
# patches:
# - target:
# version: v1alpha1
# kind: Application
# patch: pr-patch.yaml
3 changes: 0 additions & 3 deletions apps/kind/pr-patch.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: bitwarden-sdk-server
labels:
app.kubernetes.io/name: bitwarden-sdk-server
spec:
secretName: bitwarden-tls-certs
issuerRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: bitwarden-sdk-server
labels:
app.kubernetes.io/name: bitwarden-sdk-server
spec:
selector:
labels:
app.kubernetes.io/name: bitwarden-sdk-server
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: bitwarden-sdk-server
spec:
serviceAccountName: bitwarden-sdk-server
securityContext: {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/name: bitwarden-sdk-server
resources:
- deployment.yaml
- service.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: bitwarden-sdk-server
labels:
app.kubernetes.io/name: bitwarden-sdk-server

0 comments on commit cff93c6

Please sign in to comment.