-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from projectsyn/feat/additional-root-apps
Generate config map `additional-root-apps`
- Loading branch information
Showing
16 changed files
with
250 additions
and
5 deletions.
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
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
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 |
---|---|---|
|
@@ -19,3 +19,4 @@ | |
/_public | ||
|
||
# Additional entries | ||
jsonnetfile.json |
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
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
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
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 @@ | ||
{ | ||
version: 1, | ||
dependencies: [ | ||
{ | ||
source: { | ||
git: { | ||
remote: 'https://github.com/projectsyn/jsonnet-libs', | ||
subdir: '', | ||
}, | ||
}, | ||
version: 'main', | ||
name: 'syn', | ||
}, | ||
], | ||
legacyImports: true, | ||
} |
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
11 changes: 11 additions & 0 deletions
11
tests/golden/defaults/steward/steward/20_additional_root_apps.yaml
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,11 @@ | ||
apiVersion: v1 | ||
data: | ||
teams: '[]' | ||
kind: ConfigMap | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/managed-by: syn | ||
app.kubernetes.io/name: steward | ||
name: additional-root-apps | ||
namespace: syn |
Empty file.
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,43 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: syn-admin | ||
name: syn-admin | ||
rules: | ||
- apiGroups: | ||
- '*' | ||
resources: | ||
- '*' | ||
verbs: | ||
- '*' | ||
- nonResourceURLs: | ||
- '*' | ||
verbs: | ||
- '*' | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: steward | ||
name: steward | ||
namespace: syn | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: syn-steward | ||
name: syn-steward | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: syn-admin | ||
subjects: | ||
- kind: ServiceAccount | ||
name: steward | ||
namespace: syn |
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 | ||
data: | ||
token: '' | ||
kind: Secret | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: steward | ||
name: steward | ||
namespace: syn | ||
stringData: | ||
token: t-silent-test-1234/c-green-test-1234/steward/token | ||
type: Opaque |
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,70 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/managed-by: syn | ||
app.kubernetes.io/name: steward | ||
name: steward | ||
namespace: syn | ||
spec: | ||
minReadySeconds: 30 | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/managed-by: syn | ||
app.kubernetes.io/name: steward | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/managed-by: syn | ||
app.kubernetes.io/name: steward | ||
spec: | ||
containers: | ||
- args: [] | ||
env: | ||
- name: STEWARD_API | ||
value: https://api.syn.vshn.net/ | ||
- name: STEWARD_ARGO_IMAGE | ||
value: quay.io/argoproj/argocd:v2.13.3@sha256:42a488667bc07b70b16a672f632a5d3f484a262ae5f66b5d161c5be2d905db2f | ||
- name: STEWARD_CLUSTER_ID | ||
value: c-green-test-1234 | ||
- name: STEWARD_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: metadata.namespace | ||
- name: STEWARD_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
key: token | ||
name: steward | ||
image: docker.io/projectsyn/steward:v0.11.1@sha256:dba13cfdfdf6c1db4ed7bbef109d44ab1d6b16fa70e1835c33b97b9ae64b1af9 | ||
imagePullPolicy: Always | ||
name: steward | ||
ports: [] | ||
resources: | ||
limits: | ||
cpu: 200m | ||
memory: 64Mi | ||
requests: | ||
cpu: 100m | ||
memory: 32Mi | ||
securityContext: | ||
runAsNonRoot: true | ||
stdin: false | ||
tty: false | ||
volumeMounts: [] | ||
imagePullSecrets: [] | ||
initContainers: [] | ||
priorityClassName: system-cluster-critical | ||
serviceAccountName: steward | ||
terminationGracePeriodSeconds: 30 | ||
volumes: [] |
10 changes: 10 additions & 0 deletions
10
tests/golden/syn-teams/steward/steward/20_additional_facts.yaml
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,10 @@ | ||
apiVersion: v1 | ||
data: {} | ||
kind: ConfigMap | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/managed-by: syn | ||
app.kubernetes.io/name: steward | ||
name: additional-facts | ||
namespace: syn |
11 changes: 11 additions & 0 deletions
11
tests/golden/syn-teams/steward/steward/20_additional_root_apps.yaml
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,11 @@ | ||
apiVersion: v1 | ||
data: | ||
teams: '["cool-glade","shy-thunder"]' | ||
kind: ConfigMap | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/managed-by: syn | ||
app.kubernetes.io/name: steward | ||
name: additional-root-apps | ||
namespace: syn |
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,26 @@ | ||
applications: | ||
- argocd | ||
- metallb | ||
- cert-manager | ||
- keycloak as keycloak-dev | ||
- keycloak as keycloak-prod | ||
- steward | ||
|
||
parameters: | ||
syn: | ||
owner: sparkling-sound | ||
teams: | ||
cool-glade: | ||
instances: | ||
- keycloak-dev | ||
- keycloak-prod | ||
purple-smoke: | ||
instances: | ||
- ~rook-ceph | ||
shy-thunder: | ||
instances: | ||
- cert-manager | ||
- metallb | ||
sparkling-sound: | ||
instances: | ||
- argocd |