diff --git a/.cspell.json b/.cspell.json index 5e1ce958..e3b00c91 100644 --- a/.cspell.json +++ b/.cspell.json @@ -10,6 +10,7 @@ "words": [ "admissionregistration", "akuity", + "anthos", "apiextensions", "applicationset", "appproject", diff --git a/argocd-application.cue b/argocd-application.cue index 7d211437..eb81fa3f 100644 --- a/argocd-application.cue +++ b/argocd-application.cue @@ -9,17 +9,33 @@ import ( #ComponentConfig: { Name: _ OutputBaseDir: _ - // Application resources are Cluster scoped. BuildPlan metadata.name values // are Project scoped. Construct a unique cluster scoped named to resolve // conflicts within ArgoCD. - let UniqueName = "\(ProjectName)-\(Name)" + _ArgoAppName: "\(ProjectName)-\(Name)" + + // Allow other aspects of the platform configuration to refer to + // `Component._ArgoApplication` to get a handle on the Application resource. + _ArgoApplication: app.#Application & { + metadata: name: _ArgoAppName + metadata: namespace: "argocd" + metadata: labels: Labels + spec: { + destination: server: "https://kubernetes.default.svc" + project: ProjectName + source: { + path: ResourcesPath + repoURL: Organization.RepoURL + targetRevision: string | *"main" + } + } + } let ArtifactPath = path.Join([OutputBaseDir, "gitops", "\(Name).application.gen.yaml"], path.Unix) let ResourcesPath = path.Join(["deploy", OutputBaseDir, "components", Name], path.Unix) // Add the argocd Application instance label to GitOps so resources are in sync. - KustomizeConfig: CommonLabels: "argocd.argoproj.io/instance": UniqueName + KustomizeConfig: CommonLabels: "argocd.argoproj.io/instance": _ArgoAppName // Labels for the Application itself. We filter the argocd application // instance label so ArgoCD doesn't think the Application resource manages @@ -37,20 +53,7 @@ import ( generators: [{ kind: "Resources" output: artifact - resources: Application: (UniqueName): app.#Application & { - metadata: name: UniqueName - metadata: namespace: "argocd" - metadata: labels: Labels - spec: { - destination: server: "https://kubernetes.default.svc" - project: ProjectName - source: { - path: ResourcesPath - repoURL: Organization.RepoURL - targetRevision: "main" - } - } - } + resources: Application: (_ArgoAppName): _ArgoApplication }] } } diff --git a/bank-projects.cue b/bank-projects.cue index 0a7d42c4..05c5f5c4 100644 --- a/bank-projects.cue +++ b/bank-projects.cue @@ -1,6 +1,10 @@ @if(!NoBank) package holos +let BankSecurity = "bank-security" +let BankBackend = "bank-backend" +let BankWeb = "bank-web" + // Platform wide configuration. BankOfHolos: #BankOfHolos & { Name: string | *"bank-of-holos" @@ -12,90 +16,209 @@ BankOfHolos: #BankOfHolos & { prod: tier: "prod" } - EnvironmentNamespaces: { - "bank-frontend": _ - "bank-backend": _ - "bank-security": _ + #BankProject: #Project & { + _kargo_cluster_projects: {[CLUSTER=string]: [NAME=string]: metadata: name: NAME} } -} -// Projects are security boundaries, so manage one project for each environment -// and team combination. -for ENV in BankOfHolos.configuration.environments { - Projects: "\(ENV.name)-bank-security": #ProjectBuilder & { - team: "security" - stack: BankOfHolos.Name - environment: ENV.name - // The security team manages namespaces for the whole stack. - namespaces: BankOfHolos.configuration.environments[ENV.name].namespaces - - _components: { - secrets: path: "projects/security/components/bank-secrets" - } - } + // TODO(jeff): Split into prod and nonprod project sets as Gary suggested. + Projects: { + (BankSecurity): #BankProject & { + name: _ + clusters: ClusterSets.workload.clusters + team: "security" + // And one special namespace for the Kargo Project for this Holos Project. + // https://docs.kargo.io/how-to-guides/working-with-projects#namespace-adoption + let KargoAdopt = {metadata: labels: "kargo.akuity.io/project": "true"} + namespaces: (BankSecurity): KargoAdopt + namespaces: (BankBackend): KargoAdopt + namespaces: (BankWeb): KargoAdopt + + // The security team manages the environment namespaces for the whole stack. + for CLUSTER in clusters { + _kargo_cluster_projects: (CLUSTER.name): (BankSecurity): _ + _kargo_cluster_projects: (CLUSTER.name): (BankBackend): _ + _kargo_cluster_projects: (CLUSTER.name): (BankWeb): _ + + let NAMESPACES = #SharedComponent & { + _component: "namespaces" + _project: name + _cluster: CLUSTER.name + _team: team + _stack: Name + } + components: (NAMESPACES.name): NAMESPACES.component + + // The projects component digs into Projects.foo._kargo_cluster_projects + // to configure Kargo Project resources. + let PROJECTS = #SharedComponent & { + _component: "projects" + _project: name + _cluster: CLUSTER.name + _team: team + _stack: Name + } + components: (PROJECTS.name): PROJECTS.component + + // The stages component digs into Projects.foo._kargo_cluster_projects + // to configure Kargo warehouses and stages for the project. + let STAGES = #ProjectClusterComponent & { + _component: "stages" + _project: name + _cluster: CLUSTER.name + _team: team + _stack: Name + } + components: (STAGES.name): STAGES.component - Projects: "\(ENV.name)-bank-backend": #ProjectBuilder & { - team: "backend" - stack: BankOfHolos.Name - environment: ENV.name - - _components: { - // Configuration - "config": path: "projects/bank-backend/components/bank-backend-config" - // Databases - "accounts-db": path: "projects/bank-backend/components/bank-accounts-db" - "ledger-db": path: "projects/bank-backend/components/bank-ledger-db" - // Services - "contacts": path: "projects/bank-backend/components/bank-contacts" - "balance-reader": path: "projects/bank-backend/components/bank-balance-reader" - "userservice": path: "projects/bank-backend/components/bank-userservice" - "ledger-writer": path: "projects/bank-backend/components/bank-ledger-writer" - "transaction-history": path: "projects/bank-backend/components/bank-transaction-history" + for ENV in Environments { + namespaces: BankOfHolos.configuration.environments[ENV.name].namespaces + + let BUILDER = #ProjectClusterComponent & { + _project: name + _cluster: CLUSTER.name + _environment: ENV.name + _team: team + _stack: Name + } + let SECRETS = BUILDER & { + _component: "\(ENV.name)-secrets" + component: path: "projects/security/components/bank-secrets" + } + components: (SECRETS.name): SECRETS.component + } + } } - } - Projects: "\(ENV.name)-bank-web": #ProjectBuilder & { - team: "frontend" - stack: BankOfHolos.Name - environment: ENV.name + (BankBackend): { + name: _ + clusters: ClusterSets.workload.clusters + team: "backend" + + for CLUSTER in clusters { + for ENV in Environments { + let BUILDER = #ProjectClusterComponent & { + _project: name + _cluster: CLUSTER.name + _environment: ENV.name + _team: team + _stack: Name + } + + // Configuration + let CONFIG = BUILDER & { + _component: "\(ENV.name)-bank-backend-config" + component: path: "projects/bank-backend/components/bank-backend-config" + } + components: (CONFIG.name): CONFIG.component + + // Databases + let ACCOUNTS_DB = BUILDER & { + _component: "\(ENV.name)-accounts-db" + component: path: "projects/bank-backend/components/bank-accounts-db" + } + components: (ACCOUNTS_DB.name): ACCOUNTS_DB.component + + let LEDGER_DB = BUILDER & { + _component: "\(ENV.name)-ledger-db" + component: path: "projects/bank-backend/components/bank-ledger-db" + } + components: (LEDGER_DB.name): LEDGER_DB.component + + // Services + let CONTACTS = BUILDER & { + _component: "\(ENV.name)-contacts" + component: path: "projects/bank-backend/components/bank-contacts" + } + components: (CONTACTS.name): CONTACTS.component - _components: { - frontend: path: "projects/bank-frontend/components/bank-frontend" + let BALANCE_READER = BUILDER & { + _component: "\(ENV.name)-balance-reader" + component: path: "projects/bank-backend/components/bank-balance-reader" + } + components: (BALANCE_READER.name): BALANCE_READER.component + + let USERSERVICE = BUILDER & { + _component: "\(ENV.name)-userservice" + component: path: "projects/bank-backend/components/bank-userservice" + } + components: (USERSERVICE.name): USERSERVICE.component + + let LEDGER_WRITER = BUILDER & { + _component: "\(ENV.name)-ledger-writer" + component: path: "projects/bank-backend/components/bank-ledger-writer" + } + components: (LEDGER_WRITER.name): LEDGER_WRITER.component + + let TRANSACTION_HISTORY = BUILDER & { + _component: "\(ENV.name)-transaction-history" + component: path: "projects/bank-backend/components/bank-transaction-history" + } + components: (TRANSACTION_HISTORY.name): TRANSACTION_HISTORY.component + } + } } - } - // Register the HTTPRoute to the backend Service - if ENV.name == "prod" { - HTTPRoutes: bank: _backendRefs: frontend: namespace: ENV.frontend.namespace - } - if ENV.name != "prod" { - HTTPRoutes: "\(ENV.name)-bank": _backendRefs: frontend: namespace: ENV.frontend.namespace + (BankWeb): { + name: _ + clusters: ClusterSets.workload.clusters + team: "frontend" + + for CLUSTER in clusters { + for ENV in Environments { + let BUILDER = #ProjectClusterComponent & { + _project: name + _cluster: CLUSTER.name + _environment: ENV.name + _team: team + _stack: Name + } + + // Web Frontend + let FRONTEND = BUILDER & { + _component: "\(ENV.name)-frontend" + component: path: "projects/bank-frontend/components/bank-frontend" + } + components: (FRONTEND.name): FRONTEND.component + } + } + } } } +// Register the bank projects with the platform. +Projects: BankOfHolos.Projects + +// prod httproutes +HTTPRoutes: bank: _backendRefs: frontend: namespace: BankOfHolos.configuration.environments.prod.frontend.namespace +// nonprod httproutes +HTTPRoutes: "dev-bank": _backendRefs: frontend: namespace: BankOfHolos.configuration.environments.dev.frontend.namespace +HTTPRoutes: "test-bank": _backendRefs: frontend: namespace: BankOfHolos.configuration.environments.test.frontend.namespace +HTTPRoutes: "stage-bank": _backendRefs: frontend: namespace: BankOfHolos.configuration.environments.test.frontend.namespace + // Platform wide schema definition. #BankOfHolos: { Name: string + // Holos Projects, oriented to Kargo Projects + Projects: #Projects - // Environments to manage. + // Environments to manage in each project. Environments: #Environments - // Namespaces to manage in each environment. - EnvironmentNamespaces: #NamedObjects // Configuration constructed from the above fields. configuration: { environments: [NAME=string]: { - name: NAME - namespaces: #Namespaces + name: NAME frontend: namespace: "\(NAME)-bank-frontend" backend: namespace: "\(NAME)-bank-backend" security: namespace: "\(NAME)-bank-security" + namespaces: #Namespaces & { + (frontend.namespace): _ + (backend.namespace): _ + (security.namespace): _ + } } - for ENV in Environments { - for NS in EnvironmentNamespaces { - environments: (ENV.name): namespaces: "\(ENV.name)-\(NS.metadata.name)": _ - } + environments: (ENV.name): _ } } } diff --git a/components/projects/projects.cue b/components/projects/projects.cue new file mode 100644 index 00000000..f307a453 --- /dev/null +++ b/components/projects/projects.cue @@ -0,0 +1,17 @@ +package holos + +// Produce a kubernetes objects build plan. +holos: Component.BuildPlan + +_project: string @tag(project) +_cluster: string @tag(cluster) + +Component: #Kubernetes & { + Resources: { + // The kargo.akuity.io/project label is the source of truth for what + // Projects should be managed. + for PROJECT in Projects[_project]._kargo_cluster_projects[_cluster] { + Project: (PROJECT.metadata.name): _ + } + } +} diff --git a/components/projects/readme.md b/components/projects/readme.md new file mode 100644 index 00000000..f3b71002 --- /dev/null +++ b/components/projects/readme.md @@ -0,0 +1,3 @@ +# Projects + +Like Namespaces, but for Kargo Project resources. diff --git a/deploy/clusters/management/projects/argocd/components/app-projects/app-projects.gen.yaml b/deploy/clusters/management/projects/argocd/components/app-projects/app-projects.gen.yaml index 448a8691..d2f7435b 100644 --- a/deploy/clusters/management/projects/argocd/components/app-projects/app-projects.gen.yaml +++ b/deploy/clusters/management/projects/argocd/components/app-projects/app-projects.gen.yaml @@ -29,7 +29,7 @@ metadata: app.holos.run/project.name: argocd app.holos.run/team.name: platform argocd.argoproj.io/instance: argocd-app-projects - name: dev-bank-backend + name: bank-backend namespace: argocd spec: clusterResourceWhitelist: @@ -51,7 +51,7 @@ metadata: app.holos.run/project.name: argocd app.holos.run/team.name: platform argocd.argoproj.io/instance: argocd-app-projects - name: dev-bank-security + name: bank-security namespace: argocd spec: clusterResourceWhitelist: @@ -73,7 +73,7 @@ metadata: app.holos.run/project.name: argocd app.holos.run/team.name: platform argocd.argoproj.io/instance: argocd-app-projects - name: dev-bank-web + name: bank-web namespace: argocd spec: clusterResourceWhitelist: @@ -110,72 +110,6 @@ spec: --- apiVersion: argoproj.io/v1alpha1 kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: prod-bank-backend - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: prod-bank-security - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: prod-bank-web - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject metadata: labels: app.holos.run/cluster.name: management @@ -195,135 +129,3 @@ spec: server: '*' sourceRepos: - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: stage-bank-backend - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: stage-bank-security - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: stage-bank-web - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: test-bank-backend - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: test-bank-security - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: test-bank-web - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' diff --git a/deploy/clusters/management/projects/argocd/components/kargo/kargo.gen.yaml b/deploy/clusters/management/projects/argocd/components/kargo/kargo.gen.yaml index 15a6037a..9be6308c 100644 --- a/deploy/clusters/management/projects/argocd/components/kargo/kargo.gen.yaml +++ b/deploy/clusters/management/projects/argocd/components/kargo/kargo.gen.yaml @@ -3521,6 +3521,14 @@ rules: verbs: - create - patch +- apiGroups: + - "" + resources: + - secrets + verbs: + - get + - list + - watch - apiGroups: - kargo.akuity.io resources: @@ -3597,32 +3605,6 @@ rules: --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: kargo - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - app.kubernetes.io/component: controller - app.kubernetes.io/instance: kargo - app.kubernetes.io/managed-by: Helm - app.kubernetes.io/name: kargo - app.kubernetes.io/version: v1.0.3 - argocd.argoproj.io/instance: argocd-kargo - helm.sh/chart: kargo-1.0.3 - name: kargo-controller-read-secrets -rules: -- apiGroups: - - "" - resources: - - secrets - verbs: - - get - - list - - watch ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole metadata: labels: app.holos.run/cluster.name: management @@ -4314,7 +4296,7 @@ data: GITCLIENT_EMAIL: no-reply@kargo.io GITCLIENT_NAME: Kargo GITCLIENT_SIGNING_KEY_TYPE: gpg - GLOBAL_CREDENTIALS_NAMESPACES: "" + GLOBAL_CREDENTIALS_NAMESPACES: kargo LOG_LEVEL: INFO ROLLOUTS_CONTROLLER_INSTANCE_ID: "" ROLLOUTS_INTEGRATION_ENABLED: "true" @@ -4364,6 +4346,7 @@ apiVersion: v1 data: KARGO_NAMESPACE: kargo LOG_LEVEL: INFO + MANAGE_CONTROLLER_ROLE_BINDINGS: "false" kind: ConfigMap metadata: labels: @@ -4558,7 +4541,7 @@ spec: template: metadata: annotations: - configmap/checksum: cf6d41daa5bd745a15bd173fdc5dcf48c25a6c74c4ddb8dca3a0d6045be7aae7 + configmap/checksum: 6b243732e7e4c920dda8395eb9f4d97c796850efc4916b7cd7a1c3be851ff4be labels: app.kubernetes.io/component: controller app.kubernetes.io/instance: kargo @@ -4609,7 +4592,7 @@ spec: template: metadata: annotations: - configmap/checksum: 09e2c02a7e3a377e96d59d1fd0a1e95757a1ad39024466f12c612d082962bc75 + configmap/checksum: d5c3143a94d57af29a3836414d147d76b5406bcb3cf780e3fd38acab01ee984f labels: app.kubernetes.io/component: management-controller app.kubernetes.io/instance: kargo diff --git a/deploy/clusters/management/projects/dev-bank-backend/components/accounts-db/accounts-db.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/components/accounts-db/accounts-db.gen.yaml deleted file mode 100644 index 18407097..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/components/accounts-db/accounts-db.gen.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: v1 -data: - ACCOUNTS_DB_URI: postgresql://accounts-admin:accounts-pwd@accounts-db:5432/accounts-db - POSTGRES_DB: accounts-db - POSTGRES_PASSWORD: accounts-pwd - POSTGRES_USER: accounts-admin -kind: ConfigMap -metadata: - labels: - app: accounts-db - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-accounts-db - environment: development - team: accounts - tier: db - name: accounts-db-config - namespace: dev-bank-backend ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-accounts-db - environment: development - team: accounts - tier: db - name: accounts-db - namespace: dev-bank-backend -spec: - ports: - - name: tcp - port: 5432 - protocol: TCP - targetPort: 5432 - selector: - app: accounts-db - application: bank-of-holos - environment: development - team: accounts - tier: db - type: ClusterIP ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-accounts-db - environment: development - team: accounts - tier: db - name: accounts-db - namespace: dev-bank-backend -spec: - replicas: 1 - selector: - matchLabels: - app: accounts-db - application: bank-of-holos - environment: development - team: accounts - tier: db - serviceName: accounts-db - template: - metadata: - labels: - app: accounts-db - application: bank-of-holos - environment: development - team: accounts - tier: db - spec: - containers: - - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: accounts-db-config - - configMapRef: - name: demo-data-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/accounts-db:v0.6.5@sha256:abb955756a82b115e0fd9c5fa1527ae1a744b398b357fd6d7a26348feccad181 - name: accounts-db - ports: - - containerPort: 5432 - resources: - limits: - cpu: 250m - memory: 512Mi - requests: - cpu: 100m - memory: 128Mi - volumeMounts: - - mountPath: /var/lib/postgresql/data - name: postgresdb - subPath: postgres - serviceAccount: bank-of-holos - serviceAccountName: bank-of-holos - volumes: - - emptyDir: {} - name: postgresdb diff --git a/deploy/clusters/management/projects/dev-bank-backend/components/balance-reader/balance-reader.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/components/balance-reader/balance-reader.gen.yaml deleted file mode 100644 index 87b746d6..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/components/balance-reader/balance-reader.gen.yaml +++ /dev/null @@ -1,152 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: balance-reader - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-balance-reader - environment: dev - team: ledger - tier: backend - name: balancereader - namespace: dev-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: balancereader - application: bank-of-holos - environment: dev - team: ledger - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: balance-reader - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-balance-reader - environment: dev - team: ledger - tier: backend - name: balancereader - namespace: dev-bank-backend -spec: - selector: - matchLabels: - app: balancereader - application: bank-of-holos - environment: dev - team: ledger - tier: backend - template: - metadata: - labels: - app: balancereader - application: bank-of-holos - environment: dev - team: ledger - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: ENABLE_METRICS - value: "false" - - name: POLL_MS - value: "100" - - name: CACHE_SIZE - value: "1000000" - - name: JVM_OPTS - value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - -Xms256m -Xmx512m - - name: LOG_LEVEL - value: info - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: ledger-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/balancereader:v0.6.5@sha256:de01f16554ae2d0b49ac85116e6307da8c0f8a35f50a0cf25e1e4a4fe18dca83 - livenessProbe: - httpGet: - path: /healthy - port: 8080 - initialDelaySeconds: 120 - periodSeconds: 5 - timeoutSeconds: 10 - name: balancereader - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.5Gi - memory: 512Mi - requests: - cpu: 100m - ephemeral-storage: 0.5Gi - memory: 256Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - startupProbe: - failureThreshold: 30 - httpGet: - path: /healthy - port: 8080 - periodSeconds: 10 - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/dev-bank-backend/components/config/config.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/components/config/config.gen.yaml deleted file mode 100644 index 68d05f25..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/components/config/config.gen.yaml +++ /dev/null @@ -1,162 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config - environment: dev - tier: backend - name: bank-of-holos - namespace: dev-bank-backend ---- -apiVersion: v1 -data: - DEMO_LOGIN_PASSWORD: bankofanthos - DEMO_LOGIN_USERNAME: testuser - USE_DEMO_DATA: "True" -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config - environment: dev - tier: backend - name: demo-data-config - namespace: dev-bank-backend ---- -apiVersion: v1 -data: - LOCAL_ROUTING_NUM: "883745000" - PUB_KEY_PATH: /tmp/.ssh/publickey -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config - environment: dev - tier: backend - name: environment-config - namespace: dev-bank-backend ---- -apiVersion: v1 -data: - BALANCES_API_ADDR: balancereader.dev-bank-backend.svc:8080 - CONTACTS_API_ADDR: contacts.dev-bank-backend.svc:8080 - HISTORY_API_ADDR: transactionhistory.dev-bank-backend.svc:8080 - TRANSACTIONS_API_ADDR: ledgerwriter.dev-bank-backend.svc:8080 - USERSERVICE_API_ADDR: userservice.dev-bank-backend.svc:8080 -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config - environment: dev - tier: backend - name: service-api-config - namespace: dev-bank-backend ---- -apiVersion: external-secrets.io/v1beta1 -kind: ExternalSecret -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config - environment: dev - tier: backend - name: jwt-key - namespace: dev-bank-backend -spec: - dataFrom: - - extract: - key: jwt-key - refreshInterval: 5s - secretStoreRef: - kind: SecretStore - name: dev-bank-security - target: - name: jwt-key ---- -apiVersion: external-secrets.io/v1beta1 -kind: SecretStore -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config - environment: dev - tier: backend - name: dev-bank-security - namespace: dev-bank-backend -spec: - provider: - kubernetes: - auth: - serviceAccount: - name: bank-of-holos - remoteNamespace: dev-bank-security - server: - caProvider: - key: ca.crt - name: kube-root-ca.crt - type: ConfigMap - url: https://kubernetes.default.svc ---- -apiVersion: gateway.networking.k8s.io/v1beta1 -kind: ReferenceGrant -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config - environment: dev - tier: backend - name: istio-ingress - namespace: dev-bank-backend -spec: - from: - - group: gateway.networking.k8s.io - kind: HTTPRoute - namespace: istio-ingress - to: - - group: "" - kind: Service diff --git a/deploy/clusters/management/projects/dev-bank-backend/components/contacts/contacts.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/components/contacts/contacts.gen.yaml deleted file mode 100644 index ea63ab08..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/components/contacts/contacts.gen.yaml +++ /dev/null @@ -1,126 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: contacts - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-contacts - environment: dev - team: accounts - tier: backend - name: contacts - namespace: dev-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: contacts - application: bank-of-holos - environment: dev - team: accounts - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: contacts - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-contacts - environment: dev - team: accounts - tier: backend - name: contacts - namespace: dev-bank-backend -spec: - selector: - matchLabels: - app: contacts - application: bank-of-holos - environment: dev - team: accounts - tier: backend - template: - metadata: - labels: - app: contacts - application: bank-of-holos - environment: dev - team: accounts - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: LOG_LEVEL - value: info - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: accounts-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/contacts:v0.6.5@sha256:e451dcac7d34a7bde979c7f02d4c7ebd83a77aff373e1131ce3a2bba2f7fdc1a - name: contacts - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 250m - ephemeral-storage: 0.25Gi - memory: 128Mi - requests: - cpu: 100m - ephemeral-storage: 0.25Gi - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/dev-bank-backend/components/ledger-db/ledger-db.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/components/ledger-db/ledger-db.gen.yaml deleted file mode 100644 index f67ca145..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/components/ledger-db/ledger-db.gen.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: v1 -data: - POSTGRES_DB: postgresdb - POSTGRES_PASSWORD: password - POSTGRES_USER: admin - SPRING_DATASOURCE_PASSWORD: password - SPRING_DATASOURCE_URL: jdbc:postgresql://ledger-db:5432/postgresdb - SPRING_DATASOURCE_USERNAME: admin -kind: ConfigMap -metadata: - labels: - app: ledger-db - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-ledger-db - environment: development - team: ledger - tier: db - name: ledger-db-config - namespace: dev-bank-backend ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-ledger-db - environment: development - team: ledger - tier: db - name: ledger-db - namespace: dev-bank-backend -spec: - ports: - - name: tcp - port: 5432 - targetPort: 5432 - selector: - app: ledger-db - application: bank-of-holos - environment: development - team: ledger - tier: db - type: ClusterIP ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-ledger-db - environment: development - team: ledger - tier: db - name: ledger-db - namespace: dev-bank-backend -spec: - replicas: 1 - selector: - matchLabels: - app: ledger-db - application: bank-of-holos - environment: development - team: ledger - tier: db - serviceName: ledger-db - template: - metadata: - labels: - app: ledger-db - application: bank-of-holos - environment: development - team: ledger - tier: db - spec: - containers: - - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: ledger-db-config - - configMapRef: - name: demo-data-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/ledger-db:v0.6.5@sha256:cc4fd25f301ab6d46b1312244d6931babc4c6cb66c5cb6d31d4a1adfa318a321 - name: postgres - ports: - - containerPort: 5432 - resources: - limits: - cpu: 250m - memory: 1Gi - requests: - cpu: 100m - memory: 512Mi - volumeMounts: - - mountPath: /var/lib/postgresql/data - name: postgresdb - subPath: postgres - serviceAccountName: bank-of-holos - volumes: - - emptyDir: {} - name: postgresdb diff --git a/deploy/clusters/management/projects/dev-bank-backend/components/ledger-writer/ledger-writer.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/components/ledger-writer/ledger-writer.gen.yaml deleted file mode 100644 index 65301f8d..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/components/ledger-writer/ledger-writer.gen.yaml +++ /dev/null @@ -1,143 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-ledger-writer - environment: dev - team: ledger - tier: backend - name: ledgerwriter - namespace: dev-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: ledgerwriter - application: bank-of-holos - environment: dev - team: ledger - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-ledger-writer - environment: dev - team: ledger - tier: backend - name: ledgerwriter - namespace: dev-bank-backend -spec: - selector: - matchLabels: - app: ledgerwriter - application: bank-of-holos - environment: dev - team: ledger - tier: backend - template: - metadata: - labels: - app: ledgerwriter - application: bank-of-holos - environment: dev - team: ledger - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: ENABLE_METRICS - value: "false" - - name: JVM_OPTS - value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - -Xms256m -Xmx512m - - name: LOG_LEVEL - value: info - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: service-api-config - - configMapRef: - name: ledger-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/ledgerwriter:v0.6.5@sha256:5b66d6888b87993c8ebe260fe33005c4e4bc2bdae4b5682874e1a078d37ff3b2 - name: ledgerwriter - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.5Gi - memory: 512Mi - requests: - cpu: 100m - ephemeral-storage: 0.5Gi - memory: 256Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - startupProbe: - failureThreshold: 30 - httpGet: - path: /ready - port: 8080 - periodSeconds: 10 - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/dev-bank-backend/components/transaction-history/transaction-history.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/components/transaction-history/transaction-history.gen.yaml deleted file mode 100644 index 7625d3a3..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/components/transaction-history/transaction-history.gen.yaml +++ /dev/null @@ -1,156 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-transaction-history - environment: dev - team: ledger - tier: backend - name: transactionhistory - namespace: dev-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: transactionhistory - application: bank-of-holos - environment: dev - team: ledger - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-transaction-history - environment: dev - team: ledger - tier: backend - name: transactionhistory - namespace: dev-bank-backend -spec: - selector: - matchLabels: - app: transactionhistory - application: bank-of-holos - environment: dev - team: ledger - tier: backend - template: - metadata: - labels: - app: transactionhistory - application: bank-of-holos - environment: dev - team: ledger - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: ENABLE_METRICS - value: "false" - - name: POLL_MS - value: "100" - - name: CACHE_SIZE - value: "1000" - - name: CACHE_MINUTES - value: "60" - - name: HISTORY_LIMIT - value: "100" - - name: JVM_OPTS - value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - -Xms256m -Xmx512m - - name: LOG_LEVEL - value: info - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: ledger-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/transactionhistory:v0.6.5@sha256:54a2b0866df44a50832e71b130f3e069fe8bbce71309fb6cf390b19f64d92c09 - livenessProbe: - httpGet: - path: /healthy - port: 8080 - initialDelaySeconds: 120 - periodSeconds: 5 - timeoutSeconds: 10 - name: transactionhistory - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.5Gi - memory: 512Mi - requests: - cpu: 100m - ephemeral-storage: 0.5Gi - memory: 256Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - startupProbe: - failureThreshold: 30 - httpGet: - path: /healthy - port: 8080 - periodSeconds: 10 - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/dev-bank-backend/components/userservice/userservice.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/components/userservice/userservice.gen.yaml deleted file mode 100644 index 4bea2edc..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/components/userservice/userservice.gen.yaml +++ /dev/null @@ -1,137 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: userservice - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-userservice - environment: dev - team: accounts - tier: backend - name: userservice - namespace: dev-bank-backend -spec: - ports: - - name: http - port: 8080 - protocol: TCP - targetPort: 8080 - selector: - app: userservice - application: bank-of-holos - environment: dev - team: accounts - tier: backend ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: userservice - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-userservice - environment: dev - team: accounts - tier: backend - name: userservice - namespace: dev-bank-backend -spec: - selector: - matchLabels: - app: userservice - application: bank-of-holos - environment: dev - team: accounts - tier: backend - template: - metadata: - labels: - app: userservice - application: bank-of-holos - environment: dev - team: accounts - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: LOG_LEVEL - value: info - - name: TOKEN_EXPIRY_SECONDS - value: "3600" - - name: PRIV_KEY_PATH - value: /tmp/.ssh/privatekey - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: accounts-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/userservice:v0.6.5@sha256:f91e0e5bd6cdb16f6b867b2e3e874b23dd01f11592de006776f1dfb136702941 - name: userservice - ports: - - containerPort: 8080 - name: http-server - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.25Gi - memory: 256Mi - requests: - cpu: 260m - ephemeral-storage: 0.25Gi - memory: 128Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: keys - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - seccompProfile: - type: RuntimeDefault - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: keys - secret: - items: - - key: jwtRS256.key - path: privatekey - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/dev-bank-backend/gitops/accounts-db.application.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/gitops/accounts-db.application.gen.yaml deleted file mode 100644 index 8c22adb2..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/gitops/accounts-db.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: dev-bank-backend-accounts-db - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-backend - source: - path: deploy/clusters/management/projects/dev-bank-backend/components/accounts-db - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/dev-bank-backend/gitops/balance-reader.application.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/gitops/balance-reader.application.gen.yaml deleted file mode 100644 index 020c3a03..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/gitops/balance-reader.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: balance-reader - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: dev-bank-backend-balance-reader - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-backend - source: - path: deploy/clusters/management/projects/dev-bank-backend/components/balance-reader - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/dev-bank-backend/gitops/config.application.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/gitops/config.application.gen.yaml deleted file mode 100644 index 321782f7..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/gitops/config.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: dev-bank-backend-config - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-backend - source: - path: deploy/clusters/management/projects/dev-bank-backend/components/config - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/dev-bank-backend/gitops/contacts.application.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/gitops/contacts.application.gen.yaml deleted file mode 100644 index 9cd8b944..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/gitops/contacts.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: contacts - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: dev-bank-backend-contacts - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-backend - source: - path: deploy/clusters/management/projects/dev-bank-backend/components/contacts - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/dev-bank-backend/gitops/ledger-db.application.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/gitops/ledger-db.application.gen.yaml deleted file mode 100644 index ea12d1c4..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/gitops/ledger-db.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: dev-bank-backend-ledger-db - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-backend - source: - path: deploy/clusters/management/projects/dev-bank-backend/components/ledger-db - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/dev-bank-backend/gitops/ledger-writer.application.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/gitops/ledger-writer.application.gen.yaml deleted file mode 100644 index 9648e182..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/gitops/ledger-writer.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: dev-bank-backend-ledger-writer - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-backend - source: - path: deploy/clusters/management/projects/dev-bank-backend/components/ledger-writer - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/dev-bank-backend/gitops/transaction-history.application.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/gitops/transaction-history.application.gen.yaml deleted file mode 100644 index 4175cd2f..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/gitops/transaction-history.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: dev-bank-backend-transaction-history - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-backend - source: - path: deploy/clusters/management/projects/dev-bank-backend/components/transaction-history - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/dev-bank-backend/gitops/userservice.application.gen.yaml b/deploy/clusters/management/projects/dev-bank-backend/gitops/userservice.application.gen.yaml deleted file mode 100644 index 13c045d1..00000000 --- a/deploy/clusters/management/projects/dev-bank-backend/gitops/userservice.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: userservice - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: dev-bank-backend-userservice - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-backend - source: - path: deploy/clusters/management/projects/dev-bank-backend/components/userservice - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/dev-bank-security/components/namespaces/namespaces.gen.yaml b/deploy/clusters/management/projects/dev-bank-security/components/namespaces/namespaces.gen.yaml deleted file mode 100644 index 52fbc5a7..00000000 --- a/deploy/clusters/management/projects/dev-bank-security/components/namespaces/namespaces.gen.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-namespaces - kubernetes.io/metadata.name: dev-bank-backend - name: dev-bank-backend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-namespaces - kubernetes.io/metadata.name: dev-bank-frontend - name: dev-bank-frontend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-namespaces - kubernetes.io/metadata.name: dev-bank-security - name: dev-bank-security diff --git a/deploy/clusters/management/projects/dev-bank-security/components/secrets/secrets.gen.yaml b/deploy/clusters/management/projects/dev-bank-security/components/secrets/secrets.gen.yaml deleted file mode 100644 index 1a62fe33..00000000 --- a/deploy/clusters/management/projects/dev-bank-security/components/secrets/secrets.gen.yaml +++ /dev/null @@ -1,202 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets - name: jwt-key-writer - namespace: dev-bank-security ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets - name: jwt-key-reader - namespace: dev-bank-security -rules: -- apiGroups: - - "" - resourceNames: - - jwt-key - resources: - - secrets - verbs: - - get ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets - name: jwt-key-writer - namespace: dev-bank-security -rules: -- apiGroups: - - "" - resources: - - secrets - verbs: - - create - - update - - patch ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets - name: jwt-key-reader - namespace: dev-bank-security -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: jwt-key-reader -subjects: -- kind: ServiceAccount - name: bank-of-holos - namespace: dev-bank-frontend -- kind: ServiceAccount - name: bank-of-holos - namespace: dev-bank-backend ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets - name: jwt-key-writer - namespace: dev-bank-security -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: jwt-key-writer -subjects: -- kind: ServiceAccount - name: jwt-key-writer - namespace: dev-bank-security ---- -apiVersion: v1 -data: - entrypoint: |- - #! /bin/bash - # - - tmpdir="$(mktemp -d)" - finish() { - status=$? - rm -rf "${tmpdir}" - return $status - } - trap finish EXIT - - set -euo pipefail - - cd "$tmpdir" - mkdir secret - cd secret - - echo "generating private key" >&2 - ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key -q -N "" -C bank-of-holos - echo "generating public key" >&2 - ssh-keygen -e -m PKCS8 -f jwtRS256.key > jwtRS256.key.pub - cd .. - - echo "copying secret into kubernetes manifest secret.yaml" >&2 - kubectl create secret generic jwt-key --from-file=secret --dry-run=client -o yaml > secret.yaml - - echo "applying secret.yaml" >&2 - kubectl apply --server-side=true -f secret.yaml - - echo "cleaning up" >&2 - rm -rf secret secret.yaml - - echo "ok done" >&2 -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets - name: jwt-key-writer - namespace: dev-bank-security ---- -apiVersion: batch/v1 -kind: Job -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets - name: jwt-key-writer - namespace: dev-bank-security -spec: - template: - spec: - containers: - - args: - - /config/entrypoint - command: - - /bin/bash - env: - - name: HOME - value: /tmp - image: quay.io/holos-run/toolkit:2024-09-16 - name: toolkit - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - volumeMounts: - - mountPath: /config - name: config - readOnly: true - restartPolicy: OnFailure - securityContext: - runAsNonRoot: true - runAsUser: 8192 - seccompProfile: - type: RuntimeDefault - serviceAccountName: jwt-key-writer - volumes: - - configMap: - name: jwt-key-writer - name: config diff --git a/deploy/clusters/management/projects/dev-bank-security/gitops/namespaces.application.gen.yaml b/deploy/clusters/management/projects/dev-bank-security/gitops/namespaces.application.gen.yaml deleted file mode 100644 index 88ee905f..00000000 --- a/deploy/clusters/management/projects/dev-bank-security/gitops/namespaces.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - name: dev-bank-security-namespaces - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-security - source: - path: deploy/clusters/management/projects/dev-bank-security/components/namespaces - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/dev-bank-security/gitops/secrets.application.gen.yaml b/deploy/clusters/management/projects/dev-bank-security/gitops/secrets.application.gen.yaml deleted file mode 100644 index f75840fc..00000000 --- a/deploy/clusters/management/projects/dev-bank-security/gitops/secrets.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - name: dev-bank-security-secrets - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-security - source: - path: deploy/clusters/management/projects/dev-bank-security/components/secrets - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/dev-bank-web/components/frontend/frontend.gen.yaml b/deploy/clusters/management/projects/dev-bank-web/components/frontend/frontend.gen.yaml deleted file mode 100644 index fbf5fb06..00000000 --- a/deploy/clusters/management/projects/dev-bank-web/components/frontend/frontend.gen.yaml +++ /dev/null @@ -1,300 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend - name: bank-of-holos - namespace: dev-bank-frontend ---- -apiVersion: v1 -data: - DEMO_LOGIN_PASSWORD: bankofanthos - DEMO_LOGIN_USERNAME: testuser - USE_DEMO_DATA: "True" -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend - name: demo-data-config - namespace: dev-bank-frontend ---- -apiVersion: v1 -data: - LOCAL_ROUTING_NUM: "883745000" - PUB_KEY_PATH: /tmp/.ssh/publickey -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend - name: environment-config - namespace: dev-bank-frontend ---- -apiVersion: v1 -data: - BALANCES_API_ADDR: balancereader.dev-bank-backend.svc:8080 - CONTACTS_API_ADDR: contacts.dev-bank-backend.svc:8080 - HISTORY_API_ADDR: transactionhistory.dev-bank-backend.svc:8080 - TRANSACTIONS_API_ADDR: ledgerwriter.dev-bank-backend.svc:8080 - USERSERVICE_API_ADDR: userservice.dev-bank-backend.svc:8080 -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend - name: service-api-config - namespace: dev-bank-frontend ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-web-frontend - environment: dev - team: frontend - tier: web - name: frontend - namespace: dev-bank-frontend -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: 8080 - selector: - app: frontend - application: bank-of-holos - environment: dev - tier: web ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-web-frontend - environment: dev - team: frontend - tier: web - name: frontend - namespace: dev-bank-frontend -spec: - selector: - matchLabels: - app: frontend - application: bank-of-holos - environment: dev - template: - metadata: - labels: - app: frontend - application: bank-of-holos - environment: dev - team: frontend - tier: web - spec: - containers: - - env: - - name: BANK_NAME - value: Bank of Holos - - name: ENV_PLATFORM - value: local - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: SCHEME - value: https - - name: LOG_LEVEL - value: info - - name: DEFAULT_USERNAME - valueFrom: - configMapKeyRef: - key: DEMO_LOGIN_USERNAME - name: demo-data-config - - name: DEFAULT_PASSWORD - valueFrom: - configMapKeyRef: - key: DEMO_LOGIN_PASSWORD - name: demo-data-config - - name: REGISTERED_OAUTH_CLIENT_ID - valueFrom: - configMapKeyRef: - key: DEMO_OAUTH_CLIENT_ID - name: oauth-config - optional: true - - name: ALLOWED_OAUTH_REDIRECT_URI - valueFrom: - configMapKeyRef: - key: DEMO_OAUTH_REDIRECT_URI - name: oauth-config - optional: true - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: service-api-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend:v0.6.5@sha256:d72050f70d12383e4434ad04d189b681dc625f696087ddf0b5df641645c9dafa - livenessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 15 - timeoutSeconds: 30 - name: front - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 250m - memory: 128Mi - requests: - cpu: 100m - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - seccompProfile: - type: RuntimeDefault - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key ---- -apiVersion: external-secrets.io/v1beta1 -kind: ExternalSecret -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend - name: jwt-key - namespace: dev-bank-frontend -spec: - dataFrom: - - extract: - key: jwt-key - refreshInterval: 5s - secretStoreRef: - kind: SecretStore - name: dev-bank-security - target: - name: jwt-key ---- -apiVersion: external-secrets.io/v1beta1 -kind: SecretStore -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend - name: dev-bank-security - namespace: dev-bank-frontend -spec: - provider: - kubernetes: - auth: - serviceAccount: - name: bank-of-holos - remoteNamespace: dev-bank-security - server: - caProvider: - key: ca.crt - name: kube-root-ca.crt - type: ConfigMap - url: https://kubernetes.default.svc ---- -apiVersion: gateway.networking.k8s.io/v1beta1 -kind: ReferenceGrant -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend - name: istio-ingress - namespace: dev-bank-frontend -spec: - from: - - group: gateway.networking.k8s.io - kind: HTTPRoute - namespace: istio-ingress - to: - - group: "" - kind: Service diff --git a/deploy/clusters/management/projects/dev-bank-web/gitops/frontend.application.gen.yaml b/deploy/clusters/management/projects/dev-bank-web/gitops/frontend.application.gen.yaml deleted file mode 100644 index d0bb65a6..00000000 --- a/deploy/clusters/management/projects/dev-bank-web/gitops/frontend.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - name: dev-bank-web-frontend - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-web - source: - path: deploy/clusters/management/projects/dev-bank-web/components/frontend - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/network/components/httproutes/httproutes.gen.yaml b/deploy/clusters/management/projects/network/components/httproutes/httproutes.gen.yaml index 5812e19e..a47afdc9 100644 --- a/deploy/clusters/management/projects/network/components/httproutes/httproutes.gen.yaml +++ b/deploy/clusters/management/projects/network/components/httproutes/httproutes.gen.yaml @@ -131,7 +131,7 @@ spec: rules: - backendRefs: - name: frontend - namespace: stage-bank-frontend + namespace: test-bank-frontend port: 80 matches: - path: diff --git a/deploy/clusters/management/projects/prod-bank-backend/components/accounts-db/accounts-db.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/components/accounts-db/accounts-db.gen.yaml deleted file mode 100644 index 0a08a4ed..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/components/accounts-db/accounts-db.gen.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: v1 -data: - ACCOUNTS_DB_URI: postgresql://accounts-admin:accounts-pwd@accounts-db:5432/accounts-db - POSTGRES_DB: accounts-db - POSTGRES_PASSWORD: accounts-pwd - POSTGRES_USER: accounts-admin -kind: ConfigMap -metadata: - labels: - app: accounts-db - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-accounts-db - environment: development - team: accounts - tier: db - name: accounts-db-config - namespace: prod-bank-backend ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-accounts-db - environment: development - team: accounts - tier: db - name: accounts-db - namespace: prod-bank-backend -spec: - ports: - - name: tcp - port: 5432 - protocol: TCP - targetPort: 5432 - selector: - app: accounts-db - application: bank-of-holos - environment: development - team: accounts - tier: db - type: ClusterIP ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-accounts-db - environment: development - team: accounts - tier: db - name: accounts-db - namespace: prod-bank-backend -spec: - replicas: 1 - selector: - matchLabels: - app: accounts-db - application: bank-of-holos - environment: development - team: accounts - tier: db - serviceName: accounts-db - template: - metadata: - labels: - app: accounts-db - application: bank-of-holos - environment: development - team: accounts - tier: db - spec: - containers: - - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: accounts-db-config - - configMapRef: - name: demo-data-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/accounts-db:v0.6.5@sha256:abb955756a82b115e0fd9c5fa1527ae1a744b398b357fd6d7a26348feccad181 - name: accounts-db - ports: - - containerPort: 5432 - resources: - limits: - cpu: 250m - memory: 512Mi - requests: - cpu: 100m - memory: 128Mi - volumeMounts: - - mountPath: /var/lib/postgresql/data - name: postgresdb - subPath: postgres - serviceAccount: bank-of-holos - serviceAccountName: bank-of-holos - volumes: - - emptyDir: {} - name: postgresdb diff --git a/deploy/clusters/management/projects/prod-bank-backend/components/balance-reader/balance-reader.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/components/balance-reader/balance-reader.gen.yaml deleted file mode 100644 index 5cb54ff2..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/components/balance-reader/balance-reader.gen.yaml +++ /dev/null @@ -1,152 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: balance-reader - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-balance-reader - environment: prod - team: ledger - tier: backend - name: balancereader - namespace: prod-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: balancereader - application: bank-of-holos - environment: prod - team: ledger - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: balance-reader - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-balance-reader - environment: prod - team: ledger - tier: backend - name: balancereader - namespace: prod-bank-backend -spec: - selector: - matchLabels: - app: balancereader - application: bank-of-holos - environment: prod - team: ledger - tier: backend - template: - metadata: - labels: - app: balancereader - application: bank-of-holos - environment: prod - team: ledger - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: ENABLE_METRICS - value: "false" - - name: POLL_MS - value: "100" - - name: CACHE_SIZE - value: "1000000" - - name: JVM_OPTS - value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - -Xms256m -Xmx512m - - name: LOG_LEVEL - value: info - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: ledger-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/balancereader:v0.6.5@sha256:de01f16554ae2d0b49ac85116e6307da8c0f8a35f50a0cf25e1e4a4fe18dca83 - livenessProbe: - httpGet: - path: /healthy - port: 8080 - initialDelaySeconds: 120 - periodSeconds: 5 - timeoutSeconds: 10 - name: balancereader - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.5Gi - memory: 512Mi - requests: - cpu: 100m - ephemeral-storage: 0.5Gi - memory: 256Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - startupProbe: - failureThreshold: 30 - httpGet: - path: /healthy - port: 8080 - periodSeconds: 10 - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/prod-bank-backend/components/config/config.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/components/config/config.gen.yaml deleted file mode 100644 index fa99b495..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/components/config/config.gen.yaml +++ /dev/null @@ -1,162 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config - environment: prod - tier: backend - name: bank-of-holos - namespace: prod-bank-backend ---- -apiVersion: v1 -data: - DEMO_LOGIN_PASSWORD: bankofanthos - DEMO_LOGIN_USERNAME: testuser - USE_DEMO_DATA: "True" -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config - environment: prod - tier: backend - name: demo-data-config - namespace: prod-bank-backend ---- -apiVersion: v1 -data: - LOCAL_ROUTING_NUM: "883745000" - PUB_KEY_PATH: /tmp/.ssh/publickey -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config - environment: prod - tier: backend - name: environment-config - namespace: prod-bank-backend ---- -apiVersion: v1 -data: - BALANCES_API_ADDR: balancereader.prod-bank-backend.svc:8080 - CONTACTS_API_ADDR: contacts.prod-bank-backend.svc:8080 - HISTORY_API_ADDR: transactionhistory.prod-bank-backend.svc:8080 - TRANSACTIONS_API_ADDR: ledgerwriter.prod-bank-backend.svc:8080 - USERSERVICE_API_ADDR: userservice.prod-bank-backend.svc:8080 -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config - environment: prod - tier: backend - name: service-api-config - namespace: prod-bank-backend ---- -apiVersion: external-secrets.io/v1beta1 -kind: ExternalSecret -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config - environment: prod - tier: backend - name: jwt-key - namespace: prod-bank-backend -spec: - dataFrom: - - extract: - key: jwt-key - refreshInterval: 5s - secretStoreRef: - kind: SecretStore - name: prod-bank-security - target: - name: jwt-key ---- -apiVersion: external-secrets.io/v1beta1 -kind: SecretStore -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config - environment: prod - tier: backend - name: prod-bank-security - namespace: prod-bank-backend -spec: - provider: - kubernetes: - auth: - serviceAccount: - name: bank-of-holos - remoteNamespace: prod-bank-security - server: - caProvider: - key: ca.crt - name: kube-root-ca.crt - type: ConfigMap - url: https://kubernetes.default.svc ---- -apiVersion: gateway.networking.k8s.io/v1beta1 -kind: ReferenceGrant -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config - environment: prod - tier: backend - name: istio-ingress - namespace: prod-bank-backend -spec: - from: - - group: gateway.networking.k8s.io - kind: HTTPRoute - namespace: istio-ingress - to: - - group: "" - kind: Service diff --git a/deploy/clusters/management/projects/prod-bank-backend/components/contacts/contacts.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/components/contacts/contacts.gen.yaml deleted file mode 100644 index f0f7af3c..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/components/contacts/contacts.gen.yaml +++ /dev/null @@ -1,126 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: contacts - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-contacts - environment: prod - team: accounts - tier: backend - name: contacts - namespace: prod-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: contacts - application: bank-of-holos - environment: prod - team: accounts - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: contacts - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-contacts - environment: prod - team: accounts - tier: backend - name: contacts - namespace: prod-bank-backend -spec: - selector: - matchLabels: - app: contacts - application: bank-of-holos - environment: prod - team: accounts - tier: backend - template: - metadata: - labels: - app: contacts - application: bank-of-holos - environment: prod - team: accounts - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: LOG_LEVEL - value: info - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: accounts-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/contacts:v0.6.5@sha256:e451dcac7d34a7bde979c7f02d4c7ebd83a77aff373e1131ce3a2bba2f7fdc1a - name: contacts - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 250m - ephemeral-storage: 0.25Gi - memory: 128Mi - requests: - cpu: 100m - ephemeral-storage: 0.25Gi - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/prod-bank-backend/components/ledger-db/ledger-db.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/components/ledger-db/ledger-db.gen.yaml deleted file mode 100644 index 8f6c5971..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/components/ledger-db/ledger-db.gen.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: v1 -data: - POSTGRES_DB: postgresdb - POSTGRES_PASSWORD: password - POSTGRES_USER: admin - SPRING_DATASOURCE_PASSWORD: password - SPRING_DATASOURCE_URL: jdbc:postgresql://ledger-db:5432/postgresdb - SPRING_DATASOURCE_USERNAME: admin -kind: ConfigMap -metadata: - labels: - app: ledger-db - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-ledger-db - environment: development - team: ledger - tier: db - name: ledger-db-config - namespace: prod-bank-backend ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-ledger-db - environment: development - team: ledger - tier: db - name: ledger-db - namespace: prod-bank-backend -spec: - ports: - - name: tcp - port: 5432 - targetPort: 5432 - selector: - app: ledger-db - application: bank-of-holos - environment: development - team: ledger - tier: db - type: ClusterIP ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-ledger-db - environment: development - team: ledger - tier: db - name: ledger-db - namespace: prod-bank-backend -spec: - replicas: 1 - selector: - matchLabels: - app: ledger-db - application: bank-of-holos - environment: development - team: ledger - tier: db - serviceName: ledger-db - template: - metadata: - labels: - app: ledger-db - application: bank-of-holos - environment: development - team: ledger - tier: db - spec: - containers: - - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: ledger-db-config - - configMapRef: - name: demo-data-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/ledger-db:v0.6.5@sha256:cc4fd25f301ab6d46b1312244d6931babc4c6cb66c5cb6d31d4a1adfa318a321 - name: postgres - ports: - - containerPort: 5432 - resources: - limits: - cpu: 250m - memory: 1Gi - requests: - cpu: 100m - memory: 512Mi - volumeMounts: - - mountPath: /var/lib/postgresql/data - name: postgresdb - subPath: postgres - serviceAccountName: bank-of-holos - volumes: - - emptyDir: {} - name: postgresdb diff --git a/deploy/clusters/management/projects/prod-bank-backend/components/ledger-writer/ledger-writer.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/components/ledger-writer/ledger-writer.gen.yaml deleted file mode 100644 index 4d007857..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/components/ledger-writer/ledger-writer.gen.yaml +++ /dev/null @@ -1,143 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-ledger-writer - environment: prod - team: ledger - tier: backend - name: ledgerwriter - namespace: prod-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: ledgerwriter - application: bank-of-holos - environment: prod - team: ledger - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-ledger-writer - environment: prod - team: ledger - tier: backend - name: ledgerwriter - namespace: prod-bank-backend -spec: - selector: - matchLabels: - app: ledgerwriter - application: bank-of-holos - environment: prod - team: ledger - tier: backend - template: - metadata: - labels: - app: ledgerwriter - application: bank-of-holos - environment: prod - team: ledger - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: ENABLE_METRICS - value: "false" - - name: JVM_OPTS - value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - -Xms256m -Xmx512m - - name: LOG_LEVEL - value: info - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: service-api-config - - configMapRef: - name: ledger-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/ledgerwriter:v0.6.5@sha256:5b66d6888b87993c8ebe260fe33005c4e4bc2bdae4b5682874e1a078d37ff3b2 - name: ledgerwriter - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.5Gi - memory: 512Mi - requests: - cpu: 100m - ephemeral-storage: 0.5Gi - memory: 256Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - startupProbe: - failureThreshold: 30 - httpGet: - path: /ready - port: 8080 - periodSeconds: 10 - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/prod-bank-backend/components/transaction-history/transaction-history.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/components/transaction-history/transaction-history.gen.yaml deleted file mode 100644 index 1d1f8693..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/components/transaction-history/transaction-history.gen.yaml +++ /dev/null @@ -1,156 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-transaction-history - environment: prod - team: ledger - tier: backend - name: transactionhistory - namespace: prod-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: transactionhistory - application: bank-of-holos - environment: prod - team: ledger - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-transaction-history - environment: prod - team: ledger - tier: backend - name: transactionhistory - namespace: prod-bank-backend -spec: - selector: - matchLabels: - app: transactionhistory - application: bank-of-holos - environment: prod - team: ledger - tier: backend - template: - metadata: - labels: - app: transactionhistory - application: bank-of-holos - environment: prod - team: ledger - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: ENABLE_METRICS - value: "false" - - name: POLL_MS - value: "100" - - name: CACHE_SIZE - value: "1000" - - name: CACHE_MINUTES - value: "60" - - name: HISTORY_LIMIT - value: "100" - - name: JVM_OPTS - value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - -Xms256m -Xmx512m - - name: LOG_LEVEL - value: info - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: ledger-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/transactionhistory:v0.6.5@sha256:54a2b0866df44a50832e71b130f3e069fe8bbce71309fb6cf390b19f64d92c09 - livenessProbe: - httpGet: - path: /healthy - port: 8080 - initialDelaySeconds: 120 - periodSeconds: 5 - timeoutSeconds: 10 - name: transactionhistory - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.5Gi - memory: 512Mi - requests: - cpu: 100m - ephemeral-storage: 0.5Gi - memory: 256Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - startupProbe: - failureThreshold: 30 - httpGet: - path: /healthy - port: 8080 - periodSeconds: 10 - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/prod-bank-backend/components/userservice/userservice.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/components/userservice/userservice.gen.yaml deleted file mode 100644 index 1534f2c2..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/components/userservice/userservice.gen.yaml +++ /dev/null @@ -1,137 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: userservice - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-userservice - environment: prod - team: accounts - tier: backend - name: userservice - namespace: prod-bank-backend -spec: - ports: - - name: http - port: 8080 - protocol: TCP - targetPort: 8080 - selector: - app: userservice - application: bank-of-holos - environment: prod - team: accounts - tier: backend ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: userservice - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-userservice - environment: prod - team: accounts - tier: backend - name: userservice - namespace: prod-bank-backend -spec: - selector: - matchLabels: - app: userservice - application: bank-of-holos - environment: prod - team: accounts - tier: backend - template: - metadata: - labels: - app: userservice - application: bank-of-holos - environment: prod - team: accounts - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: LOG_LEVEL - value: info - - name: TOKEN_EXPIRY_SECONDS - value: "3600" - - name: PRIV_KEY_PATH - value: /tmp/.ssh/privatekey - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: accounts-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/userservice:v0.6.5@sha256:f91e0e5bd6cdb16f6b867b2e3e874b23dd01f11592de006776f1dfb136702941 - name: userservice - ports: - - containerPort: 8080 - name: http-server - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.25Gi - memory: 256Mi - requests: - cpu: 260m - ephemeral-storage: 0.25Gi - memory: 128Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: keys - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - seccompProfile: - type: RuntimeDefault - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: keys - secret: - items: - - key: jwtRS256.key - path: privatekey - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/prod-bank-backend/gitops/accounts-db.application.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/gitops/accounts-db.application.gen.yaml deleted file mode 100644 index 96794a12..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/gitops/accounts-db.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: prod-bank-backend-accounts-db - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-backend - source: - path: deploy/clusters/management/projects/prod-bank-backend/components/accounts-db - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/prod-bank-backend/gitops/balance-reader.application.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/gitops/balance-reader.application.gen.yaml deleted file mode 100644 index 4c517bb2..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/gitops/balance-reader.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: balance-reader - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: prod-bank-backend-balance-reader - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-backend - source: - path: deploy/clusters/management/projects/prod-bank-backend/components/balance-reader - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/prod-bank-backend/gitops/config.application.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/gitops/config.application.gen.yaml deleted file mode 100644 index cbea34b5..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/gitops/config.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: prod-bank-backend-config - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-backend - source: - path: deploy/clusters/management/projects/prod-bank-backend/components/config - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/prod-bank-backend/gitops/contacts.application.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/gitops/contacts.application.gen.yaml deleted file mode 100644 index 410d06c4..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/gitops/contacts.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: contacts - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: prod-bank-backend-contacts - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-backend - source: - path: deploy/clusters/management/projects/prod-bank-backend/components/contacts - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/prod-bank-backend/gitops/ledger-db.application.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/gitops/ledger-db.application.gen.yaml deleted file mode 100644 index 7c726e8d..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/gitops/ledger-db.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: prod-bank-backend-ledger-db - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-backend - source: - path: deploy/clusters/management/projects/prod-bank-backend/components/ledger-db - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/prod-bank-backend/gitops/ledger-writer.application.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/gitops/ledger-writer.application.gen.yaml deleted file mode 100644 index 4cc12d49..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/gitops/ledger-writer.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: prod-bank-backend-ledger-writer - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-backend - source: - path: deploy/clusters/management/projects/prod-bank-backend/components/ledger-writer - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/prod-bank-backend/gitops/transaction-history.application.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/gitops/transaction-history.application.gen.yaml deleted file mode 100644 index ccb15643..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/gitops/transaction-history.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: prod-bank-backend-transaction-history - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-backend - source: - path: deploy/clusters/management/projects/prod-bank-backend/components/transaction-history - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/prod-bank-backend/gitops/userservice.application.gen.yaml b/deploy/clusters/management/projects/prod-bank-backend/gitops/userservice.application.gen.yaml deleted file mode 100644 index 053b2ae2..00000000 --- a/deploy/clusters/management/projects/prod-bank-backend/gitops/userservice.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: userservice - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: prod-bank-backend-userservice - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-backend - source: - path: deploy/clusters/management/projects/prod-bank-backend/components/userservice - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/prod-bank-security/components/namespaces/namespaces.gen.yaml b/deploy/clusters/management/projects/prod-bank-security/components/namespaces/namespaces.gen.yaml deleted file mode 100644 index fac835d3..00000000 --- a/deploy/clusters/management/projects/prod-bank-security/components/namespaces/namespaces.gen.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-namespaces - kubernetes.io/metadata.name: prod-bank-backend - name: prod-bank-backend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-namespaces - kubernetes.io/metadata.name: prod-bank-frontend - name: prod-bank-frontend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-namespaces - kubernetes.io/metadata.name: prod-bank-security - name: prod-bank-security diff --git a/deploy/clusters/management/projects/prod-bank-security/components/secrets/secrets.gen.yaml b/deploy/clusters/management/projects/prod-bank-security/components/secrets/secrets.gen.yaml deleted file mode 100644 index 8b663693..00000000 --- a/deploy/clusters/management/projects/prod-bank-security/components/secrets/secrets.gen.yaml +++ /dev/null @@ -1,202 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets - name: jwt-key-writer - namespace: prod-bank-security ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets - name: jwt-key-reader - namespace: prod-bank-security -rules: -- apiGroups: - - "" - resourceNames: - - jwt-key - resources: - - secrets - verbs: - - get ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets - name: jwt-key-writer - namespace: prod-bank-security -rules: -- apiGroups: - - "" - resources: - - secrets - verbs: - - create - - update - - patch ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets - name: jwt-key-reader - namespace: prod-bank-security -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: jwt-key-reader -subjects: -- kind: ServiceAccount - name: bank-of-holos - namespace: prod-bank-frontend -- kind: ServiceAccount - name: bank-of-holos - namespace: prod-bank-backend ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets - name: jwt-key-writer - namespace: prod-bank-security -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: jwt-key-writer -subjects: -- kind: ServiceAccount - name: jwt-key-writer - namespace: prod-bank-security ---- -apiVersion: v1 -data: - entrypoint: |- - #! /bin/bash - # - - tmpdir="$(mktemp -d)" - finish() { - status=$? - rm -rf "${tmpdir}" - return $status - } - trap finish EXIT - - set -euo pipefail - - cd "$tmpdir" - mkdir secret - cd secret - - echo "generating private key" >&2 - ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key -q -N "" -C bank-of-holos - echo "generating public key" >&2 - ssh-keygen -e -m PKCS8 -f jwtRS256.key > jwtRS256.key.pub - cd .. - - echo "copying secret into kubernetes manifest secret.yaml" >&2 - kubectl create secret generic jwt-key --from-file=secret --dry-run=client -o yaml > secret.yaml - - echo "applying secret.yaml" >&2 - kubectl apply --server-side=true -f secret.yaml - - echo "cleaning up" >&2 - rm -rf secret secret.yaml - - echo "ok done" >&2 -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets - name: jwt-key-writer - namespace: prod-bank-security ---- -apiVersion: batch/v1 -kind: Job -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets - name: jwt-key-writer - namespace: prod-bank-security -spec: - template: - spec: - containers: - - args: - - /config/entrypoint - command: - - /bin/bash - env: - - name: HOME - value: /tmp - image: quay.io/holos-run/toolkit:2024-09-16 - name: toolkit - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - volumeMounts: - - mountPath: /config - name: config - readOnly: true - restartPolicy: OnFailure - securityContext: - runAsNonRoot: true - runAsUser: 8192 - seccompProfile: - type: RuntimeDefault - serviceAccountName: jwt-key-writer - volumes: - - configMap: - name: jwt-key-writer - name: config diff --git a/deploy/clusters/management/projects/prod-bank-security/gitops/namespaces.application.gen.yaml b/deploy/clusters/management/projects/prod-bank-security/gitops/namespaces.application.gen.yaml deleted file mode 100644 index 0d7ff6d8..00000000 --- a/deploy/clusters/management/projects/prod-bank-security/gitops/namespaces.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - name: prod-bank-security-namespaces - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-security - source: - path: deploy/clusters/management/projects/prod-bank-security/components/namespaces - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/prod-bank-security/gitops/secrets.application.gen.yaml b/deploy/clusters/management/projects/prod-bank-security/gitops/secrets.application.gen.yaml deleted file mode 100644 index cdcac460..00000000 --- a/deploy/clusters/management/projects/prod-bank-security/gitops/secrets.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - name: prod-bank-security-secrets - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-security - source: - path: deploy/clusters/management/projects/prod-bank-security/components/secrets - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/prod-bank-web/components/frontend/frontend.gen.yaml b/deploy/clusters/management/projects/prod-bank-web/components/frontend/frontend.gen.yaml deleted file mode 100644 index 595f9566..00000000 --- a/deploy/clusters/management/projects/prod-bank-web/components/frontend/frontend.gen.yaml +++ /dev/null @@ -1,300 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend - name: bank-of-holos - namespace: prod-bank-frontend ---- -apiVersion: v1 -data: - DEMO_LOGIN_PASSWORD: bankofanthos - DEMO_LOGIN_USERNAME: testuser - USE_DEMO_DATA: "True" -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend - name: demo-data-config - namespace: prod-bank-frontend ---- -apiVersion: v1 -data: - LOCAL_ROUTING_NUM: "883745000" - PUB_KEY_PATH: /tmp/.ssh/publickey -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend - name: environment-config - namespace: prod-bank-frontend ---- -apiVersion: v1 -data: - BALANCES_API_ADDR: balancereader.prod-bank-backend.svc:8080 - CONTACTS_API_ADDR: contacts.prod-bank-backend.svc:8080 - HISTORY_API_ADDR: transactionhistory.prod-bank-backend.svc:8080 - TRANSACTIONS_API_ADDR: ledgerwriter.prod-bank-backend.svc:8080 - USERSERVICE_API_ADDR: userservice.prod-bank-backend.svc:8080 -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend - name: service-api-config - namespace: prod-bank-frontend ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-web-frontend - environment: prod - team: frontend - tier: web - name: frontend - namespace: prod-bank-frontend -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: 8080 - selector: - app: frontend - application: bank-of-holos - environment: prod - tier: web ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-web-frontend - environment: prod - team: frontend - tier: web - name: frontend - namespace: prod-bank-frontend -spec: - selector: - matchLabels: - app: frontend - application: bank-of-holos - environment: prod - template: - metadata: - labels: - app: frontend - application: bank-of-holos - environment: prod - team: frontend - tier: web - spec: - containers: - - env: - - name: BANK_NAME - value: Bank of Holos - - name: ENV_PLATFORM - value: local - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: SCHEME - value: https - - name: LOG_LEVEL - value: info - - name: DEFAULT_USERNAME - valueFrom: - configMapKeyRef: - key: DEMO_LOGIN_USERNAME - name: demo-data-config - - name: DEFAULT_PASSWORD - valueFrom: - configMapKeyRef: - key: DEMO_LOGIN_PASSWORD - name: demo-data-config - - name: REGISTERED_OAUTH_CLIENT_ID - valueFrom: - configMapKeyRef: - key: DEMO_OAUTH_CLIENT_ID - name: oauth-config - optional: true - - name: ALLOWED_OAUTH_REDIRECT_URI - valueFrom: - configMapKeyRef: - key: DEMO_OAUTH_REDIRECT_URI - name: oauth-config - optional: true - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: service-api-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend:v0.6.5@sha256:d72050f70d12383e4434ad04d189b681dc625f696087ddf0b5df641645c9dafa - livenessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 15 - timeoutSeconds: 30 - name: front - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 250m - memory: 128Mi - requests: - cpu: 100m - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - seccompProfile: - type: RuntimeDefault - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key ---- -apiVersion: external-secrets.io/v1beta1 -kind: ExternalSecret -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend - name: jwt-key - namespace: prod-bank-frontend -spec: - dataFrom: - - extract: - key: jwt-key - refreshInterval: 5s - secretStoreRef: - kind: SecretStore - name: prod-bank-security - target: - name: jwt-key ---- -apiVersion: external-secrets.io/v1beta1 -kind: SecretStore -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend - name: prod-bank-security - namespace: prod-bank-frontend -spec: - provider: - kubernetes: - auth: - serviceAccount: - name: bank-of-holos - remoteNamespace: prod-bank-security - server: - caProvider: - key: ca.crt - name: kube-root-ca.crt - type: ConfigMap - url: https://kubernetes.default.svc ---- -apiVersion: gateway.networking.k8s.io/v1beta1 -kind: ReferenceGrant -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend - name: istio-ingress - namespace: prod-bank-frontend -spec: - from: - - group: gateway.networking.k8s.io - kind: HTTPRoute - namespace: istio-ingress - to: - - group: "" - kind: Service diff --git a/deploy/clusters/management/projects/prod-bank-web/gitops/frontend.application.gen.yaml b/deploy/clusters/management/projects/prod-bank-web/gitops/frontend.application.gen.yaml deleted file mode 100644 index c4c5830f..00000000 --- a/deploy/clusters/management/projects/prod-bank-web/gitops/frontend.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - name: prod-bank-web-frontend - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-web - source: - path: deploy/clusters/management/projects/prod-bank-web/components/frontend - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/stage-bank-backend/components/accounts-db/accounts-db.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/components/accounts-db/accounts-db.gen.yaml deleted file mode 100644 index 528a01ba..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/components/accounts-db/accounts-db.gen.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: v1 -data: - ACCOUNTS_DB_URI: postgresql://accounts-admin:accounts-pwd@accounts-db:5432/accounts-db - POSTGRES_DB: accounts-db - POSTGRES_PASSWORD: accounts-pwd - POSTGRES_USER: accounts-admin -kind: ConfigMap -metadata: - labels: - app: accounts-db - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-accounts-db - environment: development - team: accounts - tier: db - name: accounts-db-config - namespace: stage-bank-backend ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-accounts-db - environment: development - team: accounts - tier: db - name: accounts-db - namespace: stage-bank-backend -spec: - ports: - - name: tcp - port: 5432 - protocol: TCP - targetPort: 5432 - selector: - app: accounts-db - application: bank-of-holos - environment: development - team: accounts - tier: db - type: ClusterIP ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-accounts-db - environment: development - team: accounts - tier: db - name: accounts-db - namespace: stage-bank-backend -spec: - replicas: 1 - selector: - matchLabels: - app: accounts-db - application: bank-of-holos - environment: development - team: accounts - tier: db - serviceName: accounts-db - template: - metadata: - labels: - app: accounts-db - application: bank-of-holos - environment: development - team: accounts - tier: db - spec: - containers: - - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: accounts-db-config - - configMapRef: - name: demo-data-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/accounts-db:v0.6.5@sha256:abb955756a82b115e0fd9c5fa1527ae1a744b398b357fd6d7a26348feccad181 - name: accounts-db - ports: - - containerPort: 5432 - resources: - limits: - cpu: 250m - memory: 512Mi - requests: - cpu: 100m - memory: 128Mi - volumeMounts: - - mountPath: /var/lib/postgresql/data - name: postgresdb - subPath: postgres - serviceAccount: bank-of-holos - serviceAccountName: bank-of-holos - volumes: - - emptyDir: {} - name: postgresdb diff --git a/deploy/clusters/management/projects/stage-bank-backend/components/balance-reader/balance-reader.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/components/balance-reader/balance-reader.gen.yaml deleted file mode 100644 index 97ff9db2..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/components/balance-reader/balance-reader.gen.yaml +++ /dev/null @@ -1,152 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: balance-reader - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-balance-reader - environment: stage - team: ledger - tier: backend - name: balancereader - namespace: stage-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: balancereader - application: bank-of-holos - environment: stage - team: ledger - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: balance-reader - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-balance-reader - environment: stage - team: ledger - tier: backend - name: balancereader - namespace: stage-bank-backend -spec: - selector: - matchLabels: - app: balancereader - application: bank-of-holos - environment: stage - team: ledger - tier: backend - template: - metadata: - labels: - app: balancereader - application: bank-of-holos - environment: stage - team: ledger - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: ENABLE_METRICS - value: "false" - - name: POLL_MS - value: "100" - - name: CACHE_SIZE - value: "1000000" - - name: JVM_OPTS - value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - -Xms256m -Xmx512m - - name: LOG_LEVEL - value: info - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: ledger-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/balancereader:v0.6.5@sha256:de01f16554ae2d0b49ac85116e6307da8c0f8a35f50a0cf25e1e4a4fe18dca83 - livenessProbe: - httpGet: - path: /healthy - port: 8080 - initialDelaySeconds: 120 - periodSeconds: 5 - timeoutSeconds: 10 - name: balancereader - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.5Gi - memory: 512Mi - requests: - cpu: 100m - ephemeral-storage: 0.5Gi - memory: 256Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - startupProbe: - failureThreshold: 30 - httpGet: - path: /healthy - port: 8080 - periodSeconds: 10 - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/stage-bank-backend/components/config/config.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/components/config/config.gen.yaml deleted file mode 100644 index 9fa83c39..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/components/config/config.gen.yaml +++ /dev/null @@ -1,162 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config - environment: stage - tier: backend - name: bank-of-holos - namespace: stage-bank-backend ---- -apiVersion: v1 -data: - DEMO_LOGIN_PASSWORD: bankofanthos - DEMO_LOGIN_USERNAME: testuser - USE_DEMO_DATA: "True" -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config - environment: stage - tier: backend - name: demo-data-config - namespace: stage-bank-backend ---- -apiVersion: v1 -data: - LOCAL_ROUTING_NUM: "883745000" - PUB_KEY_PATH: /tmp/.ssh/publickey -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config - environment: stage - tier: backend - name: environment-config - namespace: stage-bank-backend ---- -apiVersion: v1 -data: - BALANCES_API_ADDR: balancereader.stage-bank-backend.svc:8080 - CONTACTS_API_ADDR: contacts.stage-bank-backend.svc:8080 - HISTORY_API_ADDR: transactionhistory.stage-bank-backend.svc:8080 - TRANSACTIONS_API_ADDR: ledgerwriter.stage-bank-backend.svc:8080 - USERSERVICE_API_ADDR: userservice.stage-bank-backend.svc:8080 -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config - environment: stage - tier: backend - name: service-api-config - namespace: stage-bank-backend ---- -apiVersion: external-secrets.io/v1beta1 -kind: ExternalSecret -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config - environment: stage - tier: backend - name: jwt-key - namespace: stage-bank-backend -spec: - dataFrom: - - extract: - key: jwt-key - refreshInterval: 5s - secretStoreRef: - kind: SecretStore - name: stage-bank-security - target: - name: jwt-key ---- -apiVersion: external-secrets.io/v1beta1 -kind: SecretStore -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config - environment: stage - tier: backend - name: stage-bank-security - namespace: stage-bank-backend -spec: - provider: - kubernetes: - auth: - serviceAccount: - name: bank-of-holos - remoteNamespace: stage-bank-security - server: - caProvider: - key: ca.crt - name: kube-root-ca.crt - type: ConfigMap - url: https://kubernetes.default.svc ---- -apiVersion: gateway.networking.k8s.io/v1beta1 -kind: ReferenceGrant -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config - environment: stage - tier: backend - name: istio-ingress - namespace: stage-bank-backend -spec: - from: - - group: gateway.networking.k8s.io - kind: HTTPRoute - namespace: istio-ingress - to: - - group: "" - kind: Service diff --git a/deploy/clusters/management/projects/stage-bank-backend/components/contacts/contacts.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/components/contacts/contacts.gen.yaml deleted file mode 100644 index 2d22dc80..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/components/contacts/contacts.gen.yaml +++ /dev/null @@ -1,126 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: contacts - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-contacts - environment: stage - team: accounts - tier: backend - name: contacts - namespace: stage-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: contacts - application: bank-of-holos - environment: stage - team: accounts - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: contacts - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-contacts - environment: stage - team: accounts - tier: backend - name: contacts - namespace: stage-bank-backend -spec: - selector: - matchLabels: - app: contacts - application: bank-of-holos - environment: stage - team: accounts - tier: backend - template: - metadata: - labels: - app: contacts - application: bank-of-holos - environment: stage - team: accounts - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: LOG_LEVEL - value: info - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: accounts-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/contacts:v0.6.5@sha256:e451dcac7d34a7bde979c7f02d4c7ebd83a77aff373e1131ce3a2bba2f7fdc1a - name: contacts - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 250m - ephemeral-storage: 0.25Gi - memory: 128Mi - requests: - cpu: 100m - ephemeral-storage: 0.25Gi - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/stage-bank-backend/components/ledger-db/ledger-db.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/components/ledger-db/ledger-db.gen.yaml deleted file mode 100644 index 37eb614e..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/components/ledger-db/ledger-db.gen.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: v1 -data: - POSTGRES_DB: postgresdb - POSTGRES_PASSWORD: password - POSTGRES_USER: admin - SPRING_DATASOURCE_PASSWORD: password - SPRING_DATASOURCE_URL: jdbc:postgresql://ledger-db:5432/postgresdb - SPRING_DATASOURCE_USERNAME: admin -kind: ConfigMap -metadata: - labels: - app: ledger-db - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-ledger-db - environment: development - team: ledger - tier: db - name: ledger-db-config - namespace: stage-bank-backend ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-ledger-db - environment: development - team: ledger - tier: db - name: ledger-db - namespace: stage-bank-backend -spec: - ports: - - name: tcp - port: 5432 - targetPort: 5432 - selector: - app: ledger-db - application: bank-of-holos - environment: development - team: ledger - tier: db - type: ClusterIP ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-ledger-db - environment: development - team: ledger - tier: db - name: ledger-db - namespace: stage-bank-backend -spec: - replicas: 1 - selector: - matchLabels: - app: ledger-db - application: bank-of-holos - environment: development - team: ledger - tier: db - serviceName: ledger-db - template: - metadata: - labels: - app: ledger-db - application: bank-of-holos - environment: development - team: ledger - tier: db - spec: - containers: - - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: ledger-db-config - - configMapRef: - name: demo-data-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/ledger-db:v0.6.5@sha256:cc4fd25f301ab6d46b1312244d6931babc4c6cb66c5cb6d31d4a1adfa318a321 - name: postgres - ports: - - containerPort: 5432 - resources: - limits: - cpu: 250m - memory: 1Gi - requests: - cpu: 100m - memory: 512Mi - volumeMounts: - - mountPath: /var/lib/postgresql/data - name: postgresdb - subPath: postgres - serviceAccountName: bank-of-holos - volumes: - - emptyDir: {} - name: postgresdb diff --git a/deploy/clusters/management/projects/stage-bank-backend/components/ledger-writer/ledger-writer.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/components/ledger-writer/ledger-writer.gen.yaml deleted file mode 100644 index 317658bd..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/components/ledger-writer/ledger-writer.gen.yaml +++ /dev/null @@ -1,143 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-ledger-writer - environment: stage - team: ledger - tier: backend - name: ledgerwriter - namespace: stage-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: ledgerwriter - application: bank-of-holos - environment: stage - team: ledger - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-ledger-writer - environment: stage - team: ledger - tier: backend - name: ledgerwriter - namespace: stage-bank-backend -spec: - selector: - matchLabels: - app: ledgerwriter - application: bank-of-holos - environment: stage - team: ledger - tier: backend - template: - metadata: - labels: - app: ledgerwriter - application: bank-of-holos - environment: stage - team: ledger - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: ENABLE_METRICS - value: "false" - - name: JVM_OPTS - value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - -Xms256m -Xmx512m - - name: LOG_LEVEL - value: info - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: service-api-config - - configMapRef: - name: ledger-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/ledgerwriter:v0.6.5@sha256:5b66d6888b87993c8ebe260fe33005c4e4bc2bdae4b5682874e1a078d37ff3b2 - name: ledgerwriter - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.5Gi - memory: 512Mi - requests: - cpu: 100m - ephemeral-storage: 0.5Gi - memory: 256Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - startupProbe: - failureThreshold: 30 - httpGet: - path: /ready - port: 8080 - periodSeconds: 10 - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/stage-bank-backend/components/transaction-history/transaction-history.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/components/transaction-history/transaction-history.gen.yaml deleted file mode 100644 index a0855528..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/components/transaction-history/transaction-history.gen.yaml +++ /dev/null @@ -1,156 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-transaction-history - environment: stage - team: ledger - tier: backend - name: transactionhistory - namespace: stage-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: transactionhistory - application: bank-of-holos - environment: stage - team: ledger - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-transaction-history - environment: stage - team: ledger - tier: backend - name: transactionhistory - namespace: stage-bank-backend -spec: - selector: - matchLabels: - app: transactionhistory - application: bank-of-holos - environment: stage - team: ledger - tier: backend - template: - metadata: - labels: - app: transactionhistory - application: bank-of-holos - environment: stage - team: ledger - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: ENABLE_METRICS - value: "false" - - name: POLL_MS - value: "100" - - name: CACHE_SIZE - value: "1000" - - name: CACHE_MINUTES - value: "60" - - name: HISTORY_LIMIT - value: "100" - - name: JVM_OPTS - value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - -Xms256m -Xmx512m - - name: LOG_LEVEL - value: info - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: ledger-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/transactionhistory:v0.6.5@sha256:54a2b0866df44a50832e71b130f3e069fe8bbce71309fb6cf390b19f64d92c09 - livenessProbe: - httpGet: - path: /healthy - port: 8080 - initialDelaySeconds: 120 - periodSeconds: 5 - timeoutSeconds: 10 - name: transactionhistory - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.5Gi - memory: 512Mi - requests: - cpu: 100m - ephemeral-storage: 0.5Gi - memory: 256Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - startupProbe: - failureThreshold: 30 - httpGet: - path: /healthy - port: 8080 - periodSeconds: 10 - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/stage-bank-backend/components/userservice/userservice.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/components/userservice/userservice.gen.yaml deleted file mode 100644 index 6ecc7438..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/components/userservice/userservice.gen.yaml +++ /dev/null @@ -1,137 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: userservice - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-userservice - environment: stage - team: accounts - tier: backend - name: userservice - namespace: stage-bank-backend -spec: - ports: - - name: http - port: 8080 - protocol: TCP - targetPort: 8080 - selector: - app: userservice - application: bank-of-holos - environment: stage - team: accounts - tier: backend ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: userservice - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-userservice - environment: stage - team: accounts - tier: backend - name: userservice - namespace: stage-bank-backend -spec: - selector: - matchLabels: - app: userservice - application: bank-of-holos - environment: stage - team: accounts - tier: backend - template: - metadata: - labels: - app: userservice - application: bank-of-holos - environment: stage - team: accounts - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: LOG_LEVEL - value: info - - name: TOKEN_EXPIRY_SECONDS - value: "3600" - - name: PRIV_KEY_PATH - value: /tmp/.ssh/privatekey - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: accounts-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/userservice:v0.6.5@sha256:f91e0e5bd6cdb16f6b867b2e3e874b23dd01f11592de006776f1dfb136702941 - name: userservice - ports: - - containerPort: 8080 - name: http-server - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.25Gi - memory: 256Mi - requests: - cpu: 260m - ephemeral-storage: 0.25Gi - memory: 128Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: keys - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - seccompProfile: - type: RuntimeDefault - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: keys - secret: - items: - - key: jwtRS256.key - path: privatekey - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/stage-bank-backend/gitops/accounts-db.application.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/gitops/accounts-db.application.gen.yaml deleted file mode 100644 index 5ad01c5f..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/gitops/accounts-db.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: stage-bank-backend-accounts-db - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-backend - source: - path: deploy/clusters/management/projects/stage-bank-backend/components/accounts-db - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/stage-bank-backend/gitops/balance-reader.application.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/gitops/balance-reader.application.gen.yaml deleted file mode 100644 index 3e2fefdb..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/gitops/balance-reader.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: balance-reader - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: stage-bank-backend-balance-reader - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-backend - source: - path: deploy/clusters/management/projects/stage-bank-backend/components/balance-reader - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/stage-bank-backend/gitops/config.application.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/gitops/config.application.gen.yaml deleted file mode 100644 index 95f7eb7f..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/gitops/config.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: stage-bank-backend-config - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-backend - source: - path: deploy/clusters/management/projects/stage-bank-backend/components/config - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/stage-bank-backend/gitops/contacts.application.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/gitops/contacts.application.gen.yaml deleted file mode 100644 index ac3ebf1d..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/gitops/contacts.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: contacts - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: stage-bank-backend-contacts - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-backend - source: - path: deploy/clusters/management/projects/stage-bank-backend/components/contacts - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/stage-bank-backend/gitops/ledger-db.application.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/gitops/ledger-db.application.gen.yaml deleted file mode 100644 index f447cb44..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/gitops/ledger-db.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: stage-bank-backend-ledger-db - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-backend - source: - path: deploy/clusters/management/projects/stage-bank-backend/components/ledger-db - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/stage-bank-backend/gitops/ledger-writer.application.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/gitops/ledger-writer.application.gen.yaml deleted file mode 100644 index 7ce44d93..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/gitops/ledger-writer.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: stage-bank-backend-ledger-writer - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-backend - source: - path: deploy/clusters/management/projects/stage-bank-backend/components/ledger-writer - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/stage-bank-backend/gitops/transaction-history.application.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/gitops/transaction-history.application.gen.yaml deleted file mode 100644 index 0e870583..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/gitops/transaction-history.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: stage-bank-backend-transaction-history - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-backend - source: - path: deploy/clusters/management/projects/stage-bank-backend/components/transaction-history - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/stage-bank-backend/gitops/userservice.application.gen.yaml b/deploy/clusters/management/projects/stage-bank-backend/gitops/userservice.application.gen.yaml deleted file mode 100644 index 4a902988..00000000 --- a/deploy/clusters/management/projects/stage-bank-backend/gitops/userservice.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: userservice - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: stage-bank-backend-userservice - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-backend - source: - path: deploy/clusters/management/projects/stage-bank-backend/components/userservice - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/stage-bank-security/components/namespaces/namespaces.gen.yaml b/deploy/clusters/management/projects/stage-bank-security/components/namespaces/namespaces.gen.yaml deleted file mode 100644 index 0f45a4c8..00000000 --- a/deploy/clusters/management/projects/stage-bank-security/components/namespaces/namespaces.gen.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-namespaces - kubernetes.io/metadata.name: stage-bank-backend - name: stage-bank-backend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-namespaces - kubernetes.io/metadata.name: stage-bank-frontend - name: stage-bank-frontend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-namespaces - kubernetes.io/metadata.name: stage-bank-security - name: stage-bank-security diff --git a/deploy/clusters/management/projects/stage-bank-security/components/secrets/secrets.gen.yaml b/deploy/clusters/management/projects/stage-bank-security/components/secrets/secrets.gen.yaml deleted file mode 100644 index 24a97062..00000000 --- a/deploy/clusters/management/projects/stage-bank-security/components/secrets/secrets.gen.yaml +++ /dev/null @@ -1,202 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets - name: jwt-key-writer - namespace: stage-bank-security ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets - name: jwt-key-reader - namespace: stage-bank-security -rules: -- apiGroups: - - "" - resourceNames: - - jwt-key - resources: - - secrets - verbs: - - get ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets - name: jwt-key-writer - namespace: stage-bank-security -rules: -- apiGroups: - - "" - resources: - - secrets - verbs: - - create - - update - - patch ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets - name: jwt-key-reader - namespace: stage-bank-security -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: jwt-key-reader -subjects: -- kind: ServiceAccount - name: bank-of-holos - namespace: stage-bank-frontend -- kind: ServiceAccount - name: bank-of-holos - namespace: stage-bank-backend ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets - name: jwt-key-writer - namespace: stage-bank-security -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: jwt-key-writer -subjects: -- kind: ServiceAccount - name: jwt-key-writer - namespace: stage-bank-security ---- -apiVersion: v1 -data: - entrypoint: |- - #! /bin/bash - # - - tmpdir="$(mktemp -d)" - finish() { - status=$? - rm -rf "${tmpdir}" - return $status - } - trap finish EXIT - - set -euo pipefail - - cd "$tmpdir" - mkdir secret - cd secret - - echo "generating private key" >&2 - ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key -q -N "" -C bank-of-holos - echo "generating public key" >&2 - ssh-keygen -e -m PKCS8 -f jwtRS256.key > jwtRS256.key.pub - cd .. - - echo "copying secret into kubernetes manifest secret.yaml" >&2 - kubectl create secret generic jwt-key --from-file=secret --dry-run=client -o yaml > secret.yaml - - echo "applying secret.yaml" >&2 - kubectl apply --server-side=true -f secret.yaml - - echo "cleaning up" >&2 - rm -rf secret secret.yaml - - echo "ok done" >&2 -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets - name: jwt-key-writer - namespace: stage-bank-security ---- -apiVersion: batch/v1 -kind: Job -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets - name: jwt-key-writer - namespace: stage-bank-security -spec: - template: - spec: - containers: - - args: - - /config/entrypoint - command: - - /bin/bash - env: - - name: HOME - value: /tmp - image: quay.io/holos-run/toolkit:2024-09-16 - name: toolkit - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - volumeMounts: - - mountPath: /config - name: config - readOnly: true - restartPolicy: OnFailure - securityContext: - runAsNonRoot: true - runAsUser: 8192 - seccompProfile: - type: RuntimeDefault - serviceAccountName: jwt-key-writer - volumes: - - configMap: - name: jwt-key-writer - name: config diff --git a/deploy/clusters/management/projects/stage-bank-security/gitops/namespaces.application.gen.yaml b/deploy/clusters/management/projects/stage-bank-security/gitops/namespaces.application.gen.yaml deleted file mode 100644 index 2d86db5b..00000000 --- a/deploy/clusters/management/projects/stage-bank-security/gitops/namespaces.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - name: stage-bank-security-namespaces - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-security - source: - path: deploy/clusters/management/projects/stage-bank-security/components/namespaces - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/stage-bank-security/gitops/secrets.application.gen.yaml b/deploy/clusters/management/projects/stage-bank-security/gitops/secrets.application.gen.yaml deleted file mode 100644 index bfa3070f..00000000 --- a/deploy/clusters/management/projects/stage-bank-security/gitops/secrets.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - name: stage-bank-security-secrets - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-security - source: - path: deploy/clusters/management/projects/stage-bank-security/components/secrets - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/stage-bank-web/components/frontend/frontend.gen.yaml b/deploy/clusters/management/projects/stage-bank-web/components/frontend/frontend.gen.yaml deleted file mode 100644 index 1aa3c954..00000000 --- a/deploy/clusters/management/projects/stage-bank-web/components/frontend/frontend.gen.yaml +++ /dev/null @@ -1,300 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend - name: bank-of-holos - namespace: stage-bank-frontend ---- -apiVersion: v1 -data: - DEMO_LOGIN_PASSWORD: bankofanthos - DEMO_LOGIN_USERNAME: testuser - USE_DEMO_DATA: "True" -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend - name: demo-data-config - namespace: stage-bank-frontend ---- -apiVersion: v1 -data: - LOCAL_ROUTING_NUM: "883745000" - PUB_KEY_PATH: /tmp/.ssh/publickey -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend - name: environment-config - namespace: stage-bank-frontend ---- -apiVersion: v1 -data: - BALANCES_API_ADDR: balancereader.stage-bank-backend.svc:8080 - CONTACTS_API_ADDR: contacts.stage-bank-backend.svc:8080 - HISTORY_API_ADDR: transactionhistory.stage-bank-backend.svc:8080 - TRANSACTIONS_API_ADDR: ledgerwriter.stage-bank-backend.svc:8080 - USERSERVICE_API_ADDR: userservice.stage-bank-backend.svc:8080 -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend - name: service-api-config - namespace: stage-bank-frontend ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-web-frontend - environment: stage - team: frontend - tier: web - name: frontend - namespace: stage-bank-frontend -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: 8080 - selector: - app: frontend - application: bank-of-holos - environment: stage - tier: web ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-web-frontend - environment: stage - team: frontend - tier: web - name: frontend - namespace: stage-bank-frontend -spec: - selector: - matchLabels: - app: frontend - application: bank-of-holos - environment: stage - template: - metadata: - labels: - app: frontend - application: bank-of-holos - environment: stage - team: frontend - tier: web - spec: - containers: - - env: - - name: BANK_NAME - value: Bank of Holos - - name: ENV_PLATFORM - value: local - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: SCHEME - value: https - - name: LOG_LEVEL - value: info - - name: DEFAULT_USERNAME - valueFrom: - configMapKeyRef: - key: DEMO_LOGIN_USERNAME - name: demo-data-config - - name: DEFAULT_PASSWORD - valueFrom: - configMapKeyRef: - key: DEMO_LOGIN_PASSWORD - name: demo-data-config - - name: REGISTERED_OAUTH_CLIENT_ID - valueFrom: - configMapKeyRef: - key: DEMO_OAUTH_CLIENT_ID - name: oauth-config - optional: true - - name: ALLOWED_OAUTH_REDIRECT_URI - valueFrom: - configMapKeyRef: - key: DEMO_OAUTH_REDIRECT_URI - name: oauth-config - optional: true - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: service-api-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend:v0.6.5@sha256:d72050f70d12383e4434ad04d189b681dc625f696087ddf0b5df641645c9dafa - livenessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 15 - timeoutSeconds: 30 - name: front - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 250m - memory: 128Mi - requests: - cpu: 100m - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - seccompProfile: - type: RuntimeDefault - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key ---- -apiVersion: external-secrets.io/v1beta1 -kind: ExternalSecret -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend - name: jwt-key - namespace: stage-bank-frontend -spec: - dataFrom: - - extract: - key: jwt-key - refreshInterval: 5s - secretStoreRef: - kind: SecretStore - name: stage-bank-security - target: - name: jwt-key ---- -apiVersion: external-secrets.io/v1beta1 -kind: SecretStore -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend - name: stage-bank-security - namespace: stage-bank-frontend -spec: - provider: - kubernetes: - auth: - serviceAccount: - name: bank-of-holos - remoteNamespace: stage-bank-security - server: - caProvider: - key: ca.crt - name: kube-root-ca.crt - type: ConfigMap - url: https://kubernetes.default.svc ---- -apiVersion: gateway.networking.k8s.io/v1beta1 -kind: ReferenceGrant -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend - name: istio-ingress - namespace: stage-bank-frontend -spec: - from: - - group: gateway.networking.k8s.io - kind: HTTPRoute - namespace: istio-ingress - to: - - group: "" - kind: Service diff --git a/deploy/clusters/management/projects/stage-bank-web/gitops/frontend.application.gen.yaml b/deploy/clusters/management/projects/stage-bank-web/gitops/frontend.application.gen.yaml deleted file mode 100644 index ba8af2af..00000000 --- a/deploy/clusters/management/projects/stage-bank-web/gitops/frontend.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - name: stage-bank-web-frontend - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-web - source: - path: deploy/clusters/management/projects/stage-bank-web/components/frontend - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/test-bank-backend/components/accounts-db/accounts-db.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/components/accounts-db/accounts-db.gen.yaml deleted file mode 100644 index e6f53a41..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/components/accounts-db/accounts-db.gen.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: v1 -data: - ACCOUNTS_DB_URI: postgresql://accounts-admin:accounts-pwd@accounts-db:5432/accounts-db - POSTGRES_DB: accounts-db - POSTGRES_PASSWORD: accounts-pwd - POSTGRES_USER: accounts-admin -kind: ConfigMap -metadata: - labels: - app: accounts-db - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-accounts-db - environment: development - team: accounts - tier: db - name: accounts-db-config - namespace: test-bank-backend ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-accounts-db - environment: development - team: accounts - tier: db - name: accounts-db - namespace: test-bank-backend -spec: - ports: - - name: tcp - port: 5432 - protocol: TCP - targetPort: 5432 - selector: - app: accounts-db - application: bank-of-holos - environment: development - team: accounts - tier: db - type: ClusterIP ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-accounts-db - environment: development - team: accounts - tier: db - name: accounts-db - namespace: test-bank-backend -spec: - replicas: 1 - selector: - matchLabels: - app: accounts-db - application: bank-of-holos - environment: development - team: accounts - tier: db - serviceName: accounts-db - template: - metadata: - labels: - app: accounts-db - application: bank-of-holos - environment: development - team: accounts - tier: db - spec: - containers: - - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: accounts-db-config - - configMapRef: - name: demo-data-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/accounts-db:v0.6.5@sha256:abb955756a82b115e0fd9c5fa1527ae1a744b398b357fd6d7a26348feccad181 - name: accounts-db - ports: - - containerPort: 5432 - resources: - limits: - cpu: 250m - memory: 512Mi - requests: - cpu: 100m - memory: 128Mi - volumeMounts: - - mountPath: /var/lib/postgresql/data - name: postgresdb - subPath: postgres - serviceAccount: bank-of-holos - serviceAccountName: bank-of-holos - volumes: - - emptyDir: {} - name: postgresdb diff --git a/deploy/clusters/management/projects/test-bank-backend/components/balance-reader/balance-reader.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/components/balance-reader/balance-reader.gen.yaml deleted file mode 100644 index 44b69e7b..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/components/balance-reader/balance-reader.gen.yaml +++ /dev/null @@ -1,152 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: balance-reader - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-balance-reader - environment: test - team: ledger - tier: backend - name: balancereader - namespace: test-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: balancereader - application: bank-of-holos - environment: test - team: ledger - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: balance-reader - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-balance-reader - environment: test - team: ledger - tier: backend - name: balancereader - namespace: test-bank-backend -spec: - selector: - matchLabels: - app: balancereader - application: bank-of-holos - environment: test - team: ledger - tier: backend - template: - metadata: - labels: - app: balancereader - application: bank-of-holos - environment: test - team: ledger - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: ENABLE_METRICS - value: "false" - - name: POLL_MS - value: "100" - - name: CACHE_SIZE - value: "1000000" - - name: JVM_OPTS - value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - -Xms256m -Xmx512m - - name: LOG_LEVEL - value: info - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: ledger-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/balancereader:v0.6.5@sha256:de01f16554ae2d0b49ac85116e6307da8c0f8a35f50a0cf25e1e4a4fe18dca83 - livenessProbe: - httpGet: - path: /healthy - port: 8080 - initialDelaySeconds: 120 - periodSeconds: 5 - timeoutSeconds: 10 - name: balancereader - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.5Gi - memory: 512Mi - requests: - cpu: 100m - ephemeral-storage: 0.5Gi - memory: 256Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - startupProbe: - failureThreshold: 30 - httpGet: - path: /healthy - port: 8080 - periodSeconds: 10 - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/test-bank-backend/components/config/config.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/components/config/config.gen.yaml deleted file mode 100644 index 79cb8b87..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/components/config/config.gen.yaml +++ /dev/null @@ -1,162 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config - environment: test - tier: backend - name: bank-of-holos - namespace: test-bank-backend ---- -apiVersion: v1 -data: - DEMO_LOGIN_PASSWORD: bankofanthos - DEMO_LOGIN_USERNAME: testuser - USE_DEMO_DATA: "True" -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config - environment: test - tier: backend - name: demo-data-config - namespace: test-bank-backend ---- -apiVersion: v1 -data: - LOCAL_ROUTING_NUM: "883745000" - PUB_KEY_PATH: /tmp/.ssh/publickey -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config - environment: test - tier: backend - name: environment-config - namespace: test-bank-backend ---- -apiVersion: v1 -data: - BALANCES_API_ADDR: balancereader.test-bank-backend.svc:8080 - CONTACTS_API_ADDR: contacts.test-bank-backend.svc:8080 - HISTORY_API_ADDR: transactionhistory.test-bank-backend.svc:8080 - TRANSACTIONS_API_ADDR: ledgerwriter.test-bank-backend.svc:8080 - USERSERVICE_API_ADDR: userservice.test-bank-backend.svc:8080 -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config - environment: test - tier: backend - name: service-api-config - namespace: test-bank-backend ---- -apiVersion: external-secrets.io/v1beta1 -kind: ExternalSecret -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config - environment: test - tier: backend - name: jwt-key - namespace: test-bank-backend -spec: - dataFrom: - - extract: - key: jwt-key - refreshInterval: 5s - secretStoreRef: - kind: SecretStore - name: test-bank-security - target: - name: jwt-key ---- -apiVersion: external-secrets.io/v1beta1 -kind: SecretStore -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config - environment: test - tier: backend - name: test-bank-security - namespace: test-bank-backend -spec: - provider: - kubernetes: - auth: - serviceAccount: - name: bank-of-holos - remoteNamespace: test-bank-security - server: - caProvider: - key: ca.crt - name: kube-root-ca.crt - type: ConfigMap - url: https://kubernetes.default.svc ---- -apiVersion: gateway.networking.k8s.io/v1beta1 -kind: ReferenceGrant -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config - environment: test - tier: backend - name: istio-ingress - namespace: test-bank-backend -spec: - from: - - group: gateway.networking.k8s.io - kind: HTTPRoute - namespace: istio-ingress - to: - - group: "" - kind: Service diff --git a/deploy/clusters/management/projects/test-bank-backend/components/contacts/contacts.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/components/contacts/contacts.gen.yaml deleted file mode 100644 index 851b9d17..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/components/contacts/contacts.gen.yaml +++ /dev/null @@ -1,126 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: contacts - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-contacts - environment: test - team: accounts - tier: backend - name: contacts - namespace: test-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: contacts - application: bank-of-holos - environment: test - team: accounts - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: contacts - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-contacts - environment: test - team: accounts - tier: backend - name: contacts - namespace: test-bank-backend -spec: - selector: - matchLabels: - app: contacts - application: bank-of-holos - environment: test - team: accounts - tier: backend - template: - metadata: - labels: - app: contacts - application: bank-of-holos - environment: test - team: accounts - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: LOG_LEVEL - value: info - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: accounts-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/contacts:v0.6.5@sha256:e451dcac7d34a7bde979c7f02d4c7ebd83a77aff373e1131ce3a2bba2f7fdc1a - name: contacts - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 250m - ephemeral-storage: 0.25Gi - memory: 128Mi - requests: - cpu: 100m - ephemeral-storage: 0.25Gi - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/test-bank-backend/components/ledger-db/ledger-db.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/components/ledger-db/ledger-db.gen.yaml deleted file mode 100644 index 17cf6da3..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/components/ledger-db/ledger-db.gen.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: v1 -data: - POSTGRES_DB: postgresdb - POSTGRES_PASSWORD: password - POSTGRES_USER: admin - SPRING_DATASOURCE_PASSWORD: password - SPRING_DATASOURCE_URL: jdbc:postgresql://ledger-db:5432/postgresdb - SPRING_DATASOURCE_USERNAME: admin -kind: ConfigMap -metadata: - labels: - app: ledger-db - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-ledger-db - environment: development - team: ledger - tier: db - name: ledger-db-config - namespace: test-bank-backend ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-ledger-db - environment: development - team: ledger - tier: db - name: ledger-db - namespace: test-bank-backend -spec: - ports: - - name: tcp - port: 5432 - targetPort: 5432 - selector: - app: ledger-db - application: bank-of-holos - environment: development - team: ledger - tier: db - type: ClusterIP ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-ledger-db - environment: development - team: ledger - tier: db - name: ledger-db - namespace: test-bank-backend -spec: - replicas: 1 - selector: - matchLabels: - app: ledger-db - application: bank-of-holos - environment: development - team: ledger - tier: db - serviceName: ledger-db - template: - metadata: - labels: - app: ledger-db - application: bank-of-holos - environment: development - team: ledger - tier: db - spec: - containers: - - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: ledger-db-config - - configMapRef: - name: demo-data-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/ledger-db:v0.6.5@sha256:cc4fd25f301ab6d46b1312244d6931babc4c6cb66c5cb6d31d4a1adfa318a321 - name: postgres - ports: - - containerPort: 5432 - resources: - limits: - cpu: 250m - memory: 1Gi - requests: - cpu: 100m - memory: 512Mi - volumeMounts: - - mountPath: /var/lib/postgresql/data - name: postgresdb - subPath: postgres - serviceAccountName: bank-of-holos - volumes: - - emptyDir: {} - name: postgresdb diff --git a/deploy/clusters/management/projects/test-bank-backend/components/ledger-writer/ledger-writer.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/components/ledger-writer/ledger-writer.gen.yaml deleted file mode 100644 index 5da98161..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/components/ledger-writer/ledger-writer.gen.yaml +++ /dev/null @@ -1,143 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-ledger-writer - environment: test - team: ledger - tier: backend - name: ledgerwriter - namespace: test-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: ledgerwriter - application: bank-of-holos - environment: test - team: ledger - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-ledger-writer - environment: test - team: ledger - tier: backend - name: ledgerwriter - namespace: test-bank-backend -spec: - selector: - matchLabels: - app: ledgerwriter - application: bank-of-holos - environment: test - team: ledger - tier: backend - template: - metadata: - labels: - app: ledgerwriter - application: bank-of-holos - environment: test - team: ledger - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: ENABLE_METRICS - value: "false" - - name: JVM_OPTS - value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - -Xms256m -Xmx512m - - name: LOG_LEVEL - value: info - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: service-api-config - - configMapRef: - name: ledger-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/ledgerwriter:v0.6.5@sha256:5b66d6888b87993c8ebe260fe33005c4e4bc2bdae4b5682874e1a078d37ff3b2 - name: ledgerwriter - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.5Gi - memory: 512Mi - requests: - cpu: 100m - ephemeral-storage: 0.5Gi - memory: 256Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - startupProbe: - failureThreshold: 30 - httpGet: - path: /ready - port: 8080 - periodSeconds: 10 - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/test-bank-backend/components/transaction-history/transaction-history.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/components/transaction-history/transaction-history.gen.yaml deleted file mode 100644 index bdf96346..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/components/transaction-history/transaction-history.gen.yaml +++ /dev/null @@ -1,156 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-transaction-history - environment: test - team: ledger - tier: backend - name: transactionhistory - namespace: test-bank-backend -spec: - ports: - - name: http - port: 8080 - targetPort: 8080 - selector: - app: transactionhistory - application: bank-of-holos - environment: test - team: ledger - tier: backend - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-transaction-history - environment: test - team: ledger - tier: backend - name: transactionhistory - namespace: test-bank-backend -spec: - selector: - matchLabels: - app: transactionhistory - application: bank-of-holos - environment: test - team: ledger - tier: backend - template: - metadata: - labels: - app: transactionhistory - application: bank-of-holos - environment: test - team: ledger - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: ENABLE_METRICS - value: "false" - - name: POLL_MS - value: "100" - - name: CACHE_SIZE - value: "1000" - - name: CACHE_MINUTES - value: "60" - - name: HISTORY_LIMIT - value: "100" - - name: JVM_OPTS - value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - -Xms256m -Xmx512m - - name: LOG_LEVEL - value: info - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: ledger-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/transactionhistory:v0.6.5@sha256:54a2b0866df44a50832e71b130f3e069fe8bbce71309fb6cf390b19f64d92c09 - livenessProbe: - httpGet: - path: /healthy - port: 8080 - initialDelaySeconds: 120 - periodSeconds: 5 - timeoutSeconds: 10 - name: transactionhistory - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.5Gi - memory: 512Mi - requests: - cpu: 100m - ephemeral-storage: 0.5Gi - memory: 256Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - startupProbe: - failureThreshold: 30 - httpGet: - path: /healthy - port: 8080 - periodSeconds: 10 - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/test-bank-backend/components/userservice/userservice.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/components/userservice/userservice.gen.yaml deleted file mode 100644 index 4beceeaf..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/components/userservice/userservice.gen.yaml +++ /dev/null @@ -1,137 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: userservice - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-userservice - environment: test - team: accounts - tier: backend - name: userservice - namespace: test-bank-backend -spec: - ports: - - name: http - port: 8080 - protocol: TCP - targetPort: 8080 - selector: - app: userservice - application: bank-of-holos - environment: test - team: accounts - tier: backend ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: userservice - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-userservice - environment: test - team: accounts - tier: backend - name: userservice - namespace: test-bank-backend -spec: - selector: - matchLabels: - app: userservice - application: bank-of-holos - environment: test - team: accounts - tier: backend - template: - metadata: - labels: - app: userservice - application: bank-of-holos - environment: test - team: accounts - tier: backend - spec: - containers: - - env: - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: LOG_LEVEL - value: info - - name: TOKEN_EXPIRY_SECONDS - value: "3600" - - name: PRIV_KEY_PATH - value: /tmp/.ssh/privatekey - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: accounts-db-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/userservice:v0.6.5@sha256:f91e0e5bd6cdb16f6b867b2e3e874b23dd01f11592de006776f1dfb136702941 - name: userservice - ports: - - containerPort: 8080 - name: http-server - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - ephemeral-storage: 0.25Gi - memory: 256Mi - requests: - cpu: 260m - ephemeral-storage: 0.25Gi - memory: 128Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: keys - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - seccompProfile: - type: RuntimeDefault - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: keys - secret: - items: - - key: jwtRS256.key - path: privatekey - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key diff --git a/deploy/clusters/management/projects/test-bank-backend/gitops/accounts-db.application.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/gitops/accounts-db.application.gen.yaml deleted file mode 100644 index 2e359097..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/gitops/accounts-db.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: accounts-db - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: test-bank-backend-accounts-db - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-backend - source: - path: deploy/clusters/management/projects/test-bank-backend/components/accounts-db - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/test-bank-backend/gitops/balance-reader.application.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/gitops/balance-reader.application.gen.yaml deleted file mode 100644 index 0fc26c23..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/gitops/balance-reader.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: balance-reader - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: test-bank-backend-balance-reader - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-backend - source: - path: deploy/clusters/management/projects/test-bank-backend/components/balance-reader - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/test-bank-backend/gitops/config.application.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/gitops/config.application.gen.yaml deleted file mode 100644 index f6d1cac2..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/gitops/config.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: config - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: test-bank-backend-config - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-backend - source: - path: deploy/clusters/management/projects/test-bank-backend/components/config - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/test-bank-backend/gitops/contacts.application.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/gitops/contacts.application.gen.yaml deleted file mode 100644 index 64e1a1b6..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/gitops/contacts.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: contacts - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: test-bank-backend-contacts - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-backend - source: - path: deploy/clusters/management/projects/test-bank-backend/components/contacts - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/test-bank-backend/gitops/ledger-db.application.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/gitops/ledger-db.application.gen.yaml deleted file mode 100644 index fd2a6d97..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/gitops/ledger-db.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-db - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: test-bank-backend-ledger-db - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-backend - source: - path: deploy/clusters/management/projects/test-bank-backend/components/ledger-db - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/test-bank-backend/gitops/ledger-writer.application.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/gitops/ledger-writer.application.gen.yaml deleted file mode 100644 index c2b7d70c..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/gitops/ledger-writer.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: test-bank-backend-ledger-writer - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-backend - source: - path: deploy/clusters/management/projects/test-bank-backend/components/ledger-writer - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/test-bank-backend/gitops/transaction-history.application.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/gitops/transaction-history.application.gen.yaml deleted file mode 100644 index f92011f7..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/gitops/transaction-history.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: test-bank-backend-transaction-history - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-backend - source: - path: deploy/clusters/management/projects/test-bank-backend/components/transaction-history - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/test-bank-backend/gitops/userservice.application.gen.yaml b/deploy/clusters/management/projects/test-bank-backend/gitops/userservice.application.gen.yaml deleted file mode 100644 index e5db0f08..00000000 --- a/deploy/clusters/management/projects/test-bank-backend/gitops/userservice.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: userservice - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: test-bank-backend-userservice - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-backend - source: - path: deploy/clusters/management/projects/test-bank-backend/components/userservice - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/test-bank-security/components/namespaces/namespaces.gen.yaml b/deploy/clusters/management/projects/test-bank-security/components/namespaces/namespaces.gen.yaml deleted file mode 100644 index 9fadae8e..00000000 --- a/deploy/clusters/management/projects/test-bank-security/components/namespaces/namespaces.gen.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-namespaces - kubernetes.io/metadata.name: test-bank-backend - name: test-bank-backend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-namespaces - kubernetes.io/metadata.name: test-bank-frontend - name: test-bank-frontend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-namespaces - kubernetes.io/metadata.name: test-bank-security - name: test-bank-security diff --git a/deploy/clusters/management/projects/test-bank-security/components/secrets/secrets.gen.yaml b/deploy/clusters/management/projects/test-bank-security/components/secrets/secrets.gen.yaml deleted file mode 100644 index 14378b29..00000000 --- a/deploy/clusters/management/projects/test-bank-security/components/secrets/secrets.gen.yaml +++ /dev/null @@ -1,202 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets - name: jwt-key-writer - namespace: test-bank-security ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets - name: jwt-key-reader - namespace: test-bank-security -rules: -- apiGroups: - - "" - resourceNames: - - jwt-key - resources: - - secrets - verbs: - - get ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets - name: jwt-key-writer - namespace: test-bank-security -rules: -- apiGroups: - - "" - resources: - - secrets - verbs: - - create - - update - - patch ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets - name: jwt-key-reader - namespace: test-bank-security -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: jwt-key-reader -subjects: -- kind: ServiceAccount - name: bank-of-holos - namespace: test-bank-frontend -- kind: ServiceAccount - name: bank-of-holos - namespace: test-bank-backend ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets - name: jwt-key-writer - namespace: test-bank-security -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: jwt-key-writer -subjects: -- kind: ServiceAccount - name: jwt-key-writer - namespace: test-bank-security ---- -apiVersion: v1 -data: - entrypoint: |- - #! /bin/bash - # - - tmpdir="$(mktemp -d)" - finish() { - status=$? - rm -rf "${tmpdir}" - return $status - } - trap finish EXIT - - set -euo pipefail - - cd "$tmpdir" - mkdir secret - cd secret - - echo "generating private key" >&2 - ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key -q -N "" -C bank-of-holos - echo "generating public key" >&2 - ssh-keygen -e -m PKCS8 -f jwtRS256.key > jwtRS256.key.pub - cd .. - - echo "copying secret into kubernetes manifest secret.yaml" >&2 - kubectl create secret generic jwt-key --from-file=secret --dry-run=client -o yaml > secret.yaml - - echo "applying secret.yaml" >&2 - kubectl apply --server-side=true -f secret.yaml - - echo "cleaning up" >&2 - rm -rf secret secret.yaml - - echo "ok done" >&2 -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets - name: jwt-key-writer - namespace: test-bank-security ---- -apiVersion: batch/v1 -kind: Job -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets - name: jwt-key-writer - namespace: test-bank-security -spec: - template: - spec: - containers: - - args: - - /config/entrypoint - command: - - /bin/bash - env: - - name: HOME - value: /tmp - image: quay.io/holos-run/toolkit:2024-09-16 - name: toolkit - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - volumeMounts: - - mountPath: /config - name: config - readOnly: true - restartPolicy: OnFailure - securityContext: - runAsNonRoot: true - runAsUser: 8192 - seccompProfile: - type: RuntimeDefault - serviceAccountName: jwt-key-writer - volumes: - - configMap: - name: jwt-key-writer - name: config diff --git a/deploy/clusters/management/projects/test-bank-security/gitops/namespaces.application.gen.yaml b/deploy/clusters/management/projects/test-bank-security/gitops/namespaces.application.gen.yaml deleted file mode 100644 index c22606ab..00000000 --- a/deploy/clusters/management/projects/test-bank-security/gitops/namespaces.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: namespaces - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - name: test-bank-security-namespaces - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-security - source: - path: deploy/clusters/management/projects/test-bank-security/components/namespaces - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/test-bank-security/gitops/secrets.application.gen.yaml b/deploy/clusters/management/projects/test-bank-security/gitops/secrets.application.gen.yaml deleted file mode 100644 index a63bd0c0..00000000 --- a/deploy/clusters/management/projects/test-bank-security/gitops/secrets.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: secrets - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - name: test-bank-security-secrets - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-security - source: - path: deploy/clusters/management/projects/test-bank-security/components/secrets - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/management/projects/test-bank-web/components/frontend/frontend.gen.yaml b/deploy/clusters/management/projects/test-bank-web/components/frontend/frontend.gen.yaml deleted file mode 100644 index 1ce2e6e1..00000000 --- a/deploy/clusters/management/projects/test-bank-web/components/frontend/frontend.gen.yaml +++ /dev/null @@ -1,300 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend - name: bank-of-holos - namespace: test-bank-frontend ---- -apiVersion: v1 -data: - DEMO_LOGIN_PASSWORD: bankofanthos - DEMO_LOGIN_USERNAME: testuser - USE_DEMO_DATA: "True" -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend - name: demo-data-config - namespace: test-bank-frontend ---- -apiVersion: v1 -data: - LOCAL_ROUTING_NUM: "883745000" - PUB_KEY_PATH: /tmp/.ssh/publickey -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend - name: environment-config - namespace: test-bank-frontend ---- -apiVersion: v1 -data: - BALANCES_API_ADDR: balancereader.test-bank-backend.svc:8080 - CONTACTS_API_ADDR: contacts.test-bank-backend.svc:8080 - HISTORY_API_ADDR: transactionhistory.test-bank-backend.svc:8080 - TRANSACTIONS_API_ADDR: ledgerwriter.test-bank-backend.svc:8080 - USERSERVICE_API_ADDR: userservice.test-bank-backend.svc:8080 -kind: ConfigMap -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend - name: service-api-config - namespace: test-bank-frontend ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-web-frontend - environment: test - team: frontend - tier: web - name: frontend - namespace: test-bank-frontend -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: 8080 - selector: - app: frontend - application: bank-of-holos - environment: test - tier: web ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - application: bank-of-holos - argocd.argoproj.io/instance: test-bank-web-frontend - environment: test - team: frontend - tier: web - name: frontend - namespace: test-bank-frontend -spec: - selector: - matchLabels: - app: frontend - application: bank-of-holos - environment: test - template: - metadata: - labels: - app: frontend - application: bank-of-holos - environment: test - team: frontend - tier: web - spec: - containers: - - env: - - name: BANK_NAME - value: Bank of Holos - - name: ENV_PLATFORM - value: local - - name: VERSION - value: v0.6.5 - - name: PORT - value: "8080" - - name: ENABLE_TRACING - value: "false" - - name: SCHEME - value: https - - name: LOG_LEVEL - value: info - - name: DEFAULT_USERNAME - valueFrom: - configMapKeyRef: - key: DEMO_LOGIN_USERNAME - name: demo-data-config - - name: DEFAULT_PASSWORD - valueFrom: - configMapKeyRef: - key: DEMO_LOGIN_PASSWORD - name: demo-data-config - - name: REGISTERED_OAUTH_CLIENT_ID - valueFrom: - configMapKeyRef: - key: DEMO_OAUTH_CLIENT_ID - name: oauth-config - optional: true - - name: ALLOWED_OAUTH_REDIRECT_URI - valueFrom: - configMapKeyRef: - key: DEMO_OAUTH_REDIRECT_URI - name: oauth-config - optional: true - envFrom: - - configMapRef: - name: environment-config - - configMapRef: - name: service-api-config - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend:v0.6.5@sha256:d72050f70d12383e4434ad04d189b681dc625f696087ddf0b5df641645c9dafa - livenessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 15 - timeoutSeconds: 30 - name: front - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 10 - resources: - limits: - cpu: 250m - memory: 128Mi - requests: - cpu: 100m - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - all - privileged: false - readOnlyRootFilesystem: true - volumeMounts: - - mountPath: /tmp - name: tmp - - mountPath: /tmp/.ssh - name: publickey - readOnly: true - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - seccompProfile: - type: RuntimeDefault - serviceAccountName: bank-of-holos - terminationGracePeriodSeconds: 5 - volumes: - - emptyDir: {} - name: tmp - - name: publickey - secret: - items: - - key: jwtRS256.key.pub - path: publickey - secretName: jwt-key ---- -apiVersion: external-secrets.io/v1beta1 -kind: ExternalSecret -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend - name: jwt-key - namespace: test-bank-frontend -spec: - dataFrom: - - extract: - key: jwt-key - refreshInterval: 5s - secretStoreRef: - kind: SecretStore - name: test-bank-security - target: - name: jwt-key ---- -apiVersion: external-secrets.io/v1beta1 -kind: SecretStore -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend - name: test-bank-security - namespace: test-bank-frontend -spec: - provider: - kubernetes: - auth: - serviceAccount: - name: bank-of-holos - remoteNamespace: test-bank-security - server: - caProvider: - key: ca.crt - name: kube-root-ca.crt - type: ConfigMap - url: https://kubernetes.default.svc ---- -apiVersion: gateway.networking.k8s.io/v1beta1 -kind: ReferenceGrant -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend - name: istio-ingress - namespace: test-bank-frontend -spec: - from: - - group: gateway.networking.k8s.io - kind: HTTPRoute - namespace: istio-ingress - to: - - group: "" - kind: Service diff --git a/deploy/clusters/management/projects/test-bank-web/gitops/frontend.application.gen.yaml b/deploy/clusters/management/projects/test-bank-web/gitops/frontend.application.gen.yaml deleted file mode 100644 index 8de38fcd..00000000 --- a/deploy/clusters/management/projects/test-bank-web/gitops/frontend.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: management - app.holos.run/component.name: frontend - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: frontend - name: test-bank-web-frontend - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-web - source: - path: deploy/clusters/management/projects/test-bank-web/components/frontend - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/argocd/components/app-projects/app-projects.gen.yaml b/deploy/clusters/workload/projects/argocd/components/app-projects/app-projects.gen.yaml index d3fe65b5..b018f2fa 100644 --- a/deploy/clusters/workload/projects/argocd/components/app-projects/app-projects.gen.yaml +++ b/deploy/clusters/workload/projects/argocd/components/app-projects/app-projects.gen.yaml @@ -29,7 +29,7 @@ metadata: app.holos.run/project.name: argocd app.holos.run/team.name: platform argocd.argoproj.io/instance: argocd-app-projects - name: dev-bank-backend + name: bank-backend namespace: argocd spec: clusterResourceWhitelist: @@ -51,7 +51,7 @@ metadata: app.holos.run/project.name: argocd app.holos.run/team.name: platform argocd.argoproj.io/instance: argocd-app-projects - name: dev-bank-security + name: bank-security namespace: argocd spec: clusterResourceWhitelist: @@ -73,7 +73,7 @@ metadata: app.holos.run/project.name: argocd app.holos.run/team.name: platform argocd.argoproj.io/instance: argocd-app-projects - name: dev-bank-web + name: bank-web namespace: argocd spec: clusterResourceWhitelist: @@ -110,72 +110,6 @@ spec: --- apiVersion: argoproj.io/v1alpha1 kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: prod-bank-backend - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: prod-bank-security - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: prod-bank-web - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject metadata: labels: app.holos.run/cluster.name: workload @@ -195,135 +129,3 @@ spec: server: '*' sourceRepos: - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: stage-bank-backend - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: stage-bank-security - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: stage-bank-web - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: test-bank-backend - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: test-bank-security - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: app-projects - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - argocd.argoproj.io/instance: argocd-app-projects - name: test-bank-web - namespace: argocd -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: Holos managed AppProject - destinations: - - namespace: '*' - server: '*' - sourceRepos: - - '*' diff --git a/deploy/clusters/workload/projects/argocd/components/kargo/kargo.gen.yaml b/deploy/clusters/workload/projects/argocd/components/kargo/kargo.gen.yaml index d80e910d..40a60134 100644 --- a/deploy/clusters/workload/projects/argocd/components/kargo/kargo.gen.yaml +++ b/deploy/clusters/workload/projects/argocd/components/kargo/kargo.gen.yaml @@ -3521,6 +3521,14 @@ rules: verbs: - create - patch +- apiGroups: + - "" + resources: + - secrets + verbs: + - get + - list + - watch - apiGroups: - kargo.akuity.io resources: @@ -3597,32 +3605,6 @@ rules: --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: kargo - app.holos.run/project.name: argocd - app.holos.run/team.name: platform - app.kubernetes.io/component: controller - app.kubernetes.io/instance: kargo - app.kubernetes.io/managed-by: Helm - app.kubernetes.io/name: kargo - app.kubernetes.io/version: v1.0.3 - argocd.argoproj.io/instance: argocd-kargo - helm.sh/chart: kargo-1.0.3 - name: kargo-controller-read-secrets -rules: -- apiGroups: - - "" - resources: - - secrets - verbs: - - get - - list - - watch ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole metadata: labels: app.holos.run/cluster.name: workload @@ -4314,7 +4296,7 @@ data: GITCLIENT_EMAIL: no-reply@kargo.io GITCLIENT_NAME: Kargo GITCLIENT_SIGNING_KEY_TYPE: gpg - GLOBAL_CREDENTIALS_NAMESPACES: "" + GLOBAL_CREDENTIALS_NAMESPACES: kargo LOG_LEVEL: INFO ROLLOUTS_CONTROLLER_INSTANCE_ID: "" ROLLOUTS_INTEGRATION_ENABLED: "true" @@ -4364,6 +4346,7 @@ apiVersion: v1 data: KARGO_NAMESPACE: kargo LOG_LEVEL: INFO + MANAGE_CONTROLLER_ROLE_BINDINGS: "false" kind: ConfigMap metadata: labels: @@ -4558,7 +4541,7 @@ spec: template: metadata: annotations: - configmap/checksum: cf6d41daa5bd745a15bd173fdc5dcf48c25a6c74c4ddb8dca3a0d6045be7aae7 + configmap/checksum: 6b243732e7e4c920dda8395eb9f4d97c796850efc4916b7cd7a1c3be851ff4be labels: app.kubernetes.io/component: controller app.kubernetes.io/instance: kargo @@ -4609,7 +4592,7 @@ spec: template: metadata: annotations: - configmap/checksum: 09e2c02a7e3a377e96d59d1fd0a1e95757a1ad39024466f12c612d082962bc75 + configmap/checksum: d5c3143a94d57af29a3836414d147d76b5406bcb3cf780e3fd38acab01ee984f labels: app.kubernetes.io/component: management-controller app.kubernetes.io/instance: kargo diff --git a/deploy/clusters/workload/projects/dev-bank-backend/components/accounts-db/accounts-db.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/dev-accounts-db/dev-accounts-db.gen.yaml similarity index 79% rename from deploy/clusters/workload/projects/dev-bank-backend/components/accounts-db/accounts-db.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/dev-accounts-db/dev-accounts-db.gen.yaml index 259926b6..5c282d2f 100644 --- a/deploy/clusters/workload/projects/dev-bank-backend/components/accounts-db/accounts-db.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/dev-accounts-db/dev-accounts-db.gen.yaml @@ -9,14 +9,14 @@ metadata: labels: app: accounts-db app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: dev-accounts-db app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-accounts-db - environment: development + argocd.argoproj.io/instance: bank-backend-dev-accounts-db + environment: dev team: accounts tier: db name: accounts-db-config @@ -27,14 +27,14 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: dev-accounts-db app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-accounts-db - environment: development + argocd.argoproj.io/instance: bank-backend-dev-accounts-db + environment: dev team: accounts tier: db name: accounts-db @@ -48,7 +48,7 @@ spec: selector: app: accounts-db application: bank-of-holos - environment: development + environment: dev team: accounts tier: db type: ClusterIP @@ -58,14 +58,14 @@ kind: StatefulSet metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: dev-accounts-db app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-accounts-db - environment: development + argocd.argoproj.io/instance: bank-backend-dev-accounts-db + environment: dev team: accounts tier: db name: accounts-db @@ -76,7 +76,7 @@ spec: matchLabels: app: accounts-db application: bank-of-holos - environment: development + environment: dev team: accounts tier: db serviceName: accounts-db @@ -85,7 +85,7 @@ spec: labels: app: accounts-db application: bank-of-holos - environment: development + environment: dev team: accounts tier: db spec: diff --git a/deploy/clusters/workload/projects/dev-bank-backend/components/balance-reader/balance-reader.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/dev-balance-reader/dev-balance-reader.gen.yaml similarity index 91% rename from deploy/clusters/workload/projects/dev-bank-backend/components/balance-reader/balance-reader.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/dev-balance-reader/dev-balance-reader.gen.yaml index 8454517f..e360fdbf 100644 --- a/deploy/clusters/workload/projects/dev-bank-backend/components/balance-reader/balance-reader.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/dev-balance-reader/dev-balance-reader.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: balance-reader + app.holos.run/component.name: dev-balance-reader app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-balance-reader + argocd.argoproj.io/instance: bank-backend-dev-balance-reader environment: dev team: ledger tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: balance-reader + app.holos.run/component.name: dev-balance-reader app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-balance-reader + argocd.argoproj.io/instance: bank-backend-dev-balance-reader environment: dev team: ledger tier: backend diff --git a/deploy/clusters/workload/projects/dev-bank-backend/components/config/config.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/dev-bank-backend-config/dev-bank-backend-config.gen.yaml similarity index 74% rename from deploy/clusters/workload/projects/dev-bank-backend/components/config/config.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/dev-bank-backend-config/dev-bank-backend-config.gen.yaml index e7ca4b91..31775153 100644 --- a/deploy/clusters/workload/projects/dev-bank-backend/components/config/config.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/dev-bank-backend-config/dev-bank-backend-config.gen.yaml @@ -3,13 +3,13 @@ kind: ServiceAccount metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: dev-bank-backend-config app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config + argocd.argoproj.io/instance: bank-backend-dev-bank-backend-config environment: dev tier: backend name: bank-of-holos @@ -24,13 +24,13 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: dev-bank-backend-config app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config + argocd.argoproj.io/instance: bank-backend-dev-bank-backend-config environment: dev tier: backend name: demo-data-config @@ -44,13 +44,13 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: dev-bank-backend-config app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config + argocd.argoproj.io/instance: bank-backend-dev-bank-backend-config environment: dev tier: backend name: environment-config @@ -67,13 +67,13 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: dev-bank-backend-config app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config + argocd.argoproj.io/instance: bank-backend-dev-bank-backend-config environment: dev tier: backend name: service-api-config @@ -84,13 +84,13 @@ kind: ExternalSecret metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: dev-bank-backend-config app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config + argocd.argoproj.io/instance: bank-backend-dev-bank-backend-config environment: dev tier: backend name: jwt-key @@ -111,13 +111,13 @@ kind: SecretStore metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: dev-bank-backend-config app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config + argocd.argoproj.io/instance: bank-backend-dev-bank-backend-config environment: dev tier: backend name: dev-bank-security @@ -141,13 +141,13 @@ kind: ReferenceGrant metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: dev-bank-backend-config app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-config + argocd.argoproj.io/instance: bank-backend-dev-bank-backend-config environment: dev tier: backend name: istio-ingress diff --git a/deploy/clusters/workload/projects/dev-bank-backend/components/contacts/contacts.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/dev-contacts/dev-contacts.gen.yaml similarity index 90% rename from deploy/clusters/workload/projects/dev-bank-backend/components/contacts/contacts.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/dev-contacts/dev-contacts.gen.yaml index fb1bb9ab..ffe2e8e3 100644 --- a/deploy/clusters/workload/projects/dev-bank-backend/components/contacts/contacts.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/dev-contacts/dev-contacts.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: contacts + app.holos.run/component.name: dev-contacts app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-contacts + argocd.argoproj.io/instance: bank-backend-dev-contacts environment: dev team: accounts tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: contacts + app.holos.run/component.name: dev-contacts app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-contacts + argocd.argoproj.io/instance: bank-backend-dev-contacts environment: dev team: accounts tier: backend diff --git a/deploy/clusters/workload/projects/dev-bank-backend/components/ledger-db/ledger-db.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/dev-ledger-db/dev-ledger-db.gen.yaml similarity index 85% rename from deploy/clusters/workload/projects/dev-bank-backend/components/ledger-db/ledger-db.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/dev-ledger-db/dev-ledger-db.gen.yaml index 2e164818..f0eea0b6 100644 --- a/deploy/clusters/workload/projects/dev-bank-backend/components/ledger-db/ledger-db.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/dev-ledger-db/dev-ledger-db.gen.yaml @@ -11,13 +11,13 @@ metadata: labels: app: ledger-db app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: dev-ledger-db app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-ledger-db + argocd.argoproj.io/instance: bank-backend-dev-ledger-db environment: development team: ledger tier: db @@ -29,13 +29,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: dev-ledger-db app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-ledger-db + argocd.argoproj.io/instance: bank-backend-dev-ledger-db environment: development team: ledger tier: db @@ -59,13 +59,13 @@ kind: StatefulSet metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: dev-ledger-db app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-ledger-db + argocd.argoproj.io/instance: bank-backend-dev-ledger-db environment: development team: ledger tier: db diff --git a/deploy/clusters/workload/projects/dev-bank-backend/components/ledger-writer/ledger-writer.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/dev-ledger-writer/dev-ledger-writer.gen.yaml similarity index 91% rename from deploy/clusters/workload/projects/dev-bank-backend/components/ledger-writer/ledger-writer.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/dev-ledger-writer/dev-ledger-writer.gen.yaml index 6771d882..e36e618f 100644 --- a/deploy/clusters/workload/projects/dev-bank-backend/components/ledger-writer/ledger-writer.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/dev-ledger-writer/dev-ledger-writer.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-writer + app.holos.run/component.name: dev-ledger-writer app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-ledger-writer + argocd.argoproj.io/instance: bank-backend-dev-ledger-writer environment: dev team: ledger tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-writer + app.holos.run/component.name: dev-ledger-writer app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-ledger-writer + argocd.argoproj.io/instance: bank-backend-dev-ledger-writer environment: dev team: ledger tier: backend diff --git a/deploy/clusters/workload/projects/dev-bank-backend/components/transaction-history/transaction-history.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/dev-transaction-history/dev-transaction-history.gen.yaml similarity index 92% rename from deploy/clusters/workload/projects/dev-bank-backend/components/transaction-history/transaction-history.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/dev-transaction-history/dev-transaction-history.gen.yaml index 6f340793..6737719a 100644 --- a/deploy/clusters/workload/projects/dev-bank-backend/components/transaction-history/transaction-history.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/dev-transaction-history/dev-transaction-history.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: transaction-history + app.holos.run/component.name: dev-transaction-history app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-transaction-history + argocd.argoproj.io/instance: bank-backend-dev-transaction-history environment: dev team: ledger tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: transaction-history + app.holos.run/component.name: dev-transaction-history app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-transaction-history + argocd.argoproj.io/instance: bank-backend-dev-transaction-history environment: dev team: ledger tier: backend diff --git a/deploy/clusters/workload/projects/dev-bank-backend/components/userservice/userservice.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/dev-userservice/dev-userservice.gen.yaml similarity index 91% rename from deploy/clusters/workload/projects/dev-bank-backend/components/userservice/userservice.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/dev-userservice/dev-userservice.gen.yaml index 7ac55062..d2f598e0 100644 --- a/deploy/clusters/workload/projects/dev-bank-backend/components/userservice/userservice.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/dev-userservice/dev-userservice.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: userservice + app.holos.run/component.name: dev-userservice app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-userservice + argocd.argoproj.io/instance: bank-backend-dev-userservice environment: dev team: accounts tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: userservice + app.holos.run/component.name: dev-userservice app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-backend-userservice + argocd.argoproj.io/instance: bank-backend-dev-userservice environment: dev team: accounts tier: backend diff --git a/deploy/clusters/workload/projects/prod-bank-backend/components/accounts-db/accounts-db.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/prod-accounts-db/prod-accounts-db.gen.yaml similarity index 79% rename from deploy/clusters/workload/projects/prod-bank-backend/components/accounts-db/accounts-db.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/prod-accounts-db/prod-accounts-db.gen.yaml index 7fd787b2..696a5828 100644 --- a/deploy/clusters/workload/projects/prod-bank-backend/components/accounts-db/accounts-db.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/prod-accounts-db/prod-accounts-db.gen.yaml @@ -9,14 +9,14 @@ metadata: labels: app: accounts-db app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: prod-accounts-db app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-accounts-db - environment: development + argocd.argoproj.io/instance: bank-backend-prod-accounts-db + environment: prod team: accounts tier: db name: accounts-db-config @@ -27,14 +27,14 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: prod-accounts-db app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-accounts-db - environment: development + argocd.argoproj.io/instance: bank-backend-prod-accounts-db + environment: prod team: accounts tier: db name: accounts-db @@ -48,7 +48,7 @@ spec: selector: app: accounts-db application: bank-of-holos - environment: development + environment: prod team: accounts tier: db type: ClusterIP @@ -58,14 +58,14 @@ kind: StatefulSet metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: prod-accounts-db app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-accounts-db - environment: development + argocd.argoproj.io/instance: bank-backend-prod-accounts-db + environment: prod team: accounts tier: db name: accounts-db @@ -76,7 +76,7 @@ spec: matchLabels: app: accounts-db application: bank-of-holos - environment: development + environment: prod team: accounts tier: db serviceName: accounts-db @@ -85,7 +85,7 @@ spec: labels: app: accounts-db application: bank-of-holos - environment: development + environment: prod team: accounts tier: db spec: diff --git a/deploy/clusters/workload/projects/prod-bank-backend/components/balance-reader/balance-reader.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/prod-balance-reader/prod-balance-reader.gen.yaml similarity index 91% rename from deploy/clusters/workload/projects/prod-bank-backend/components/balance-reader/balance-reader.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/prod-balance-reader/prod-balance-reader.gen.yaml index 84b50c10..b4da7149 100644 --- a/deploy/clusters/workload/projects/prod-bank-backend/components/balance-reader/balance-reader.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/prod-balance-reader/prod-balance-reader.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: balance-reader + app.holos.run/component.name: prod-balance-reader app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-balance-reader + argocd.argoproj.io/instance: bank-backend-prod-balance-reader environment: prod team: ledger tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: balance-reader + app.holos.run/component.name: prod-balance-reader app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-balance-reader + argocd.argoproj.io/instance: bank-backend-prod-balance-reader environment: prod team: ledger tier: backend diff --git a/deploy/clusters/workload/projects/prod-bank-backend/components/config/config.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/prod-bank-backend-config/prod-bank-backend-config.gen.yaml similarity index 74% rename from deploy/clusters/workload/projects/prod-bank-backend/components/config/config.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/prod-bank-backend-config/prod-bank-backend-config.gen.yaml index 21049d91..d7b330f7 100644 --- a/deploy/clusters/workload/projects/prod-bank-backend/components/config/config.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/prod-bank-backend-config/prod-bank-backend-config.gen.yaml @@ -3,13 +3,13 @@ kind: ServiceAccount metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: prod-bank-backend-config app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config + argocd.argoproj.io/instance: bank-backend-prod-bank-backend-config environment: prod tier: backend name: bank-of-holos @@ -24,13 +24,13 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: prod-bank-backend-config app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config + argocd.argoproj.io/instance: bank-backend-prod-bank-backend-config environment: prod tier: backend name: demo-data-config @@ -44,13 +44,13 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: prod-bank-backend-config app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config + argocd.argoproj.io/instance: bank-backend-prod-bank-backend-config environment: prod tier: backend name: environment-config @@ -67,13 +67,13 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: prod-bank-backend-config app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config + argocd.argoproj.io/instance: bank-backend-prod-bank-backend-config environment: prod tier: backend name: service-api-config @@ -84,13 +84,13 @@ kind: ExternalSecret metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: prod-bank-backend-config app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config + argocd.argoproj.io/instance: bank-backend-prod-bank-backend-config environment: prod tier: backend name: jwt-key @@ -111,13 +111,13 @@ kind: SecretStore metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: prod-bank-backend-config app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config + argocd.argoproj.io/instance: bank-backend-prod-bank-backend-config environment: prod tier: backend name: prod-bank-security @@ -141,13 +141,13 @@ kind: ReferenceGrant metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: prod-bank-backend-config app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-config + argocd.argoproj.io/instance: bank-backend-prod-bank-backend-config environment: prod tier: backend name: istio-ingress diff --git a/deploy/clusters/workload/projects/prod-bank-backend/components/contacts/contacts.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/prod-contacts/prod-contacts.gen.yaml similarity index 90% rename from deploy/clusters/workload/projects/prod-bank-backend/components/contacts/contacts.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/prod-contacts/prod-contacts.gen.yaml index b79122f3..c13a97db 100644 --- a/deploy/clusters/workload/projects/prod-bank-backend/components/contacts/contacts.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/prod-contacts/prod-contacts.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: contacts + app.holos.run/component.name: prod-contacts app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-contacts + argocd.argoproj.io/instance: bank-backend-prod-contacts environment: prod team: accounts tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: contacts + app.holos.run/component.name: prod-contacts app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-contacts + argocd.argoproj.io/instance: bank-backend-prod-contacts environment: prod team: accounts tier: backend diff --git a/deploy/clusters/workload/projects/prod-bank-backend/components/ledger-db/ledger-db.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/prod-ledger-db/prod-ledger-db.gen.yaml similarity index 85% rename from deploy/clusters/workload/projects/prod-bank-backend/components/ledger-db/ledger-db.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/prod-ledger-db/prod-ledger-db.gen.yaml index d02b2b91..ac06a535 100644 --- a/deploy/clusters/workload/projects/prod-bank-backend/components/ledger-db/ledger-db.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/prod-ledger-db/prod-ledger-db.gen.yaml @@ -11,13 +11,13 @@ metadata: labels: app: ledger-db app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: prod-ledger-db app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-ledger-db + argocd.argoproj.io/instance: bank-backend-prod-ledger-db environment: development team: ledger tier: db @@ -29,13 +29,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: prod-ledger-db app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-ledger-db + argocd.argoproj.io/instance: bank-backend-prod-ledger-db environment: development team: ledger tier: db @@ -59,13 +59,13 @@ kind: StatefulSet metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: prod-ledger-db app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-ledger-db + argocd.argoproj.io/instance: bank-backend-prod-ledger-db environment: development team: ledger tier: db diff --git a/deploy/clusters/workload/projects/prod-bank-backend/components/ledger-writer/ledger-writer.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/prod-ledger-writer/prod-ledger-writer.gen.yaml similarity index 91% rename from deploy/clusters/workload/projects/prod-bank-backend/components/ledger-writer/ledger-writer.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/prod-ledger-writer/prod-ledger-writer.gen.yaml index 15b8d7ff..f89c1f87 100644 --- a/deploy/clusters/workload/projects/prod-bank-backend/components/ledger-writer/ledger-writer.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/prod-ledger-writer/prod-ledger-writer.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-writer + app.holos.run/component.name: prod-ledger-writer app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-ledger-writer + argocd.argoproj.io/instance: bank-backend-prod-ledger-writer environment: prod team: ledger tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-writer + app.holos.run/component.name: prod-ledger-writer app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-ledger-writer + argocd.argoproj.io/instance: bank-backend-prod-ledger-writer environment: prod team: ledger tier: backend diff --git a/deploy/clusters/workload/projects/prod-bank-backend/components/transaction-history/transaction-history.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/prod-transaction-history/prod-transaction-history.gen.yaml similarity index 92% rename from deploy/clusters/workload/projects/prod-bank-backend/components/transaction-history/transaction-history.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/prod-transaction-history/prod-transaction-history.gen.yaml index baa88c9a..1738c736 100644 --- a/deploy/clusters/workload/projects/prod-bank-backend/components/transaction-history/transaction-history.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/prod-transaction-history/prod-transaction-history.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: transaction-history + app.holos.run/component.name: prod-transaction-history app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-transaction-history + argocd.argoproj.io/instance: bank-backend-prod-transaction-history environment: prod team: ledger tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: transaction-history + app.holos.run/component.name: prod-transaction-history app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-transaction-history + argocd.argoproj.io/instance: bank-backend-prod-transaction-history environment: prod team: ledger tier: backend diff --git a/deploy/clusters/workload/projects/prod-bank-backend/components/userservice/userservice.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/prod-userservice/prod-userservice.gen.yaml similarity index 91% rename from deploy/clusters/workload/projects/prod-bank-backend/components/userservice/userservice.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/prod-userservice/prod-userservice.gen.yaml index a2a24ae8..52dc79e7 100644 --- a/deploy/clusters/workload/projects/prod-bank-backend/components/userservice/userservice.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/prod-userservice/prod-userservice.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: userservice + app.holos.run/component.name: prod-userservice app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-userservice + argocd.argoproj.io/instance: bank-backend-prod-userservice environment: prod team: accounts tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: userservice + app.holos.run/component.name: prod-userservice app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-backend-userservice + argocd.argoproj.io/instance: bank-backend-prod-userservice environment: prod team: accounts tier: backend diff --git a/deploy/clusters/workload/projects/stage-bank-backend/components/accounts-db/accounts-db.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/stage-accounts-db/stage-accounts-db.gen.yaml similarity index 79% rename from deploy/clusters/workload/projects/stage-bank-backend/components/accounts-db/accounts-db.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/stage-accounts-db/stage-accounts-db.gen.yaml index 130f41ff..dd63dc67 100644 --- a/deploy/clusters/workload/projects/stage-bank-backend/components/accounts-db/accounts-db.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/stage-accounts-db/stage-accounts-db.gen.yaml @@ -9,14 +9,14 @@ metadata: labels: app: accounts-db app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: stage-accounts-db app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-accounts-db - environment: development + argocd.argoproj.io/instance: bank-backend-stage-accounts-db + environment: stage team: accounts tier: db name: accounts-db-config @@ -27,14 +27,14 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: stage-accounts-db app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-accounts-db - environment: development + argocd.argoproj.io/instance: bank-backend-stage-accounts-db + environment: stage team: accounts tier: db name: accounts-db @@ -48,7 +48,7 @@ spec: selector: app: accounts-db application: bank-of-holos - environment: development + environment: stage team: accounts tier: db type: ClusterIP @@ -58,14 +58,14 @@ kind: StatefulSet metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: stage-accounts-db app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-accounts-db - environment: development + argocd.argoproj.io/instance: bank-backend-stage-accounts-db + environment: stage team: accounts tier: db name: accounts-db @@ -76,7 +76,7 @@ spec: matchLabels: app: accounts-db application: bank-of-holos - environment: development + environment: stage team: accounts tier: db serviceName: accounts-db @@ -85,7 +85,7 @@ spec: labels: app: accounts-db application: bank-of-holos - environment: development + environment: stage team: accounts tier: db spec: diff --git a/deploy/clusters/workload/projects/stage-bank-backend/components/balance-reader/balance-reader.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/stage-balance-reader/stage-balance-reader.gen.yaml similarity index 91% rename from deploy/clusters/workload/projects/stage-bank-backend/components/balance-reader/balance-reader.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/stage-balance-reader/stage-balance-reader.gen.yaml index c0e1624c..f72ab70a 100644 --- a/deploy/clusters/workload/projects/stage-bank-backend/components/balance-reader/balance-reader.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/stage-balance-reader/stage-balance-reader.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: balance-reader + app.holos.run/component.name: stage-balance-reader app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-balance-reader + argocd.argoproj.io/instance: bank-backend-stage-balance-reader environment: stage team: ledger tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: balance-reader + app.holos.run/component.name: stage-balance-reader app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-balance-reader + argocd.argoproj.io/instance: bank-backend-stage-balance-reader environment: stage team: ledger tier: backend diff --git a/deploy/clusters/workload/projects/stage-bank-backend/components/config/config.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/stage-bank-backend-config/stage-bank-backend-config.gen.yaml similarity index 74% rename from deploy/clusters/workload/projects/stage-bank-backend/components/config/config.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/stage-bank-backend-config/stage-bank-backend-config.gen.yaml index 09cde0ea..8f8ca3c1 100644 --- a/deploy/clusters/workload/projects/stage-bank-backend/components/config/config.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/stage-bank-backend-config/stage-bank-backend-config.gen.yaml @@ -3,13 +3,13 @@ kind: ServiceAccount metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: stage-bank-backend-config app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config + argocd.argoproj.io/instance: bank-backend-stage-bank-backend-config environment: stage tier: backend name: bank-of-holos @@ -24,13 +24,13 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: stage-bank-backend-config app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config + argocd.argoproj.io/instance: bank-backend-stage-bank-backend-config environment: stage tier: backend name: demo-data-config @@ -44,13 +44,13 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: stage-bank-backend-config app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config + argocd.argoproj.io/instance: bank-backend-stage-bank-backend-config environment: stage tier: backend name: environment-config @@ -67,13 +67,13 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: stage-bank-backend-config app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config + argocd.argoproj.io/instance: bank-backend-stage-bank-backend-config environment: stage tier: backend name: service-api-config @@ -84,13 +84,13 @@ kind: ExternalSecret metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: stage-bank-backend-config app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config + argocd.argoproj.io/instance: bank-backend-stage-bank-backend-config environment: stage tier: backend name: jwt-key @@ -111,13 +111,13 @@ kind: SecretStore metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: stage-bank-backend-config app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config + argocd.argoproj.io/instance: bank-backend-stage-bank-backend-config environment: stage tier: backend name: stage-bank-security @@ -141,13 +141,13 @@ kind: ReferenceGrant metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: stage-bank-backend-config app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-config + argocd.argoproj.io/instance: bank-backend-stage-bank-backend-config environment: stage tier: backend name: istio-ingress diff --git a/deploy/clusters/workload/projects/stage-bank-backend/components/contacts/contacts.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/stage-contacts/stage-contacts.gen.yaml similarity index 90% rename from deploy/clusters/workload/projects/stage-bank-backend/components/contacts/contacts.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/stage-contacts/stage-contacts.gen.yaml index c9a11627..83d97fea 100644 --- a/deploy/clusters/workload/projects/stage-bank-backend/components/contacts/contacts.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/stage-contacts/stage-contacts.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: contacts + app.holos.run/component.name: stage-contacts app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-contacts + argocd.argoproj.io/instance: bank-backend-stage-contacts environment: stage team: accounts tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: contacts + app.holos.run/component.name: stage-contacts app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-contacts + argocd.argoproj.io/instance: bank-backend-stage-contacts environment: stage team: accounts tier: backend diff --git a/deploy/clusters/workload/projects/stage-bank-backend/components/ledger-db/ledger-db.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/stage-ledger-db/stage-ledger-db.gen.yaml similarity index 85% rename from deploy/clusters/workload/projects/stage-bank-backend/components/ledger-db/ledger-db.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/stage-ledger-db/stage-ledger-db.gen.yaml index 04f6943d..9074211f 100644 --- a/deploy/clusters/workload/projects/stage-bank-backend/components/ledger-db/ledger-db.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/stage-ledger-db/stage-ledger-db.gen.yaml @@ -11,13 +11,13 @@ metadata: labels: app: ledger-db app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: stage-ledger-db app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-ledger-db + argocd.argoproj.io/instance: bank-backend-stage-ledger-db environment: development team: ledger tier: db @@ -29,13 +29,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: stage-ledger-db app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-ledger-db + argocd.argoproj.io/instance: bank-backend-stage-ledger-db environment: development team: ledger tier: db @@ -59,13 +59,13 @@ kind: StatefulSet metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: stage-ledger-db app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-ledger-db + argocd.argoproj.io/instance: bank-backend-stage-ledger-db environment: development team: ledger tier: db diff --git a/deploy/clusters/workload/projects/stage-bank-backend/components/ledger-writer/ledger-writer.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/stage-ledger-writer/stage-ledger-writer.gen.yaml similarity index 91% rename from deploy/clusters/workload/projects/stage-bank-backend/components/ledger-writer/ledger-writer.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/stage-ledger-writer/stage-ledger-writer.gen.yaml index 74901819..a1b0af0e 100644 --- a/deploy/clusters/workload/projects/stage-bank-backend/components/ledger-writer/ledger-writer.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/stage-ledger-writer/stage-ledger-writer.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-writer + app.holos.run/component.name: stage-ledger-writer app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-ledger-writer + argocd.argoproj.io/instance: bank-backend-stage-ledger-writer environment: stage team: ledger tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-writer + app.holos.run/component.name: stage-ledger-writer app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-ledger-writer + argocd.argoproj.io/instance: bank-backend-stage-ledger-writer environment: stage team: ledger tier: backend diff --git a/deploy/clusters/workload/projects/stage-bank-backend/components/transaction-history/transaction-history.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/stage-transaction-history/stage-transaction-history.gen.yaml similarity index 91% rename from deploy/clusters/workload/projects/stage-bank-backend/components/transaction-history/transaction-history.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/stage-transaction-history/stage-transaction-history.gen.yaml index e7e661d3..77693e2e 100644 --- a/deploy/clusters/workload/projects/stage-bank-backend/components/transaction-history/transaction-history.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/stage-transaction-history/stage-transaction-history.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: transaction-history + app.holos.run/component.name: stage-transaction-history app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-transaction-history + argocd.argoproj.io/instance: bank-backend-stage-transaction-history environment: stage team: ledger tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: transaction-history + app.holos.run/component.name: stage-transaction-history app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-transaction-history + argocd.argoproj.io/instance: bank-backend-stage-transaction-history environment: stage team: ledger tier: backend diff --git a/deploy/clusters/workload/projects/stage-bank-backend/components/userservice/userservice.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/stage-userservice/stage-userservice.gen.yaml similarity index 91% rename from deploy/clusters/workload/projects/stage-bank-backend/components/userservice/userservice.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/stage-userservice/stage-userservice.gen.yaml index 837788a2..0e83c311 100644 --- a/deploy/clusters/workload/projects/stage-bank-backend/components/userservice/userservice.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/stage-userservice/stage-userservice.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: userservice + app.holos.run/component.name: stage-userservice app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-userservice + argocd.argoproj.io/instance: bank-backend-stage-userservice environment: stage team: accounts tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: userservice + app.holos.run/component.name: stage-userservice app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-backend-userservice + argocd.argoproj.io/instance: bank-backend-stage-userservice environment: stage team: accounts tier: backend diff --git a/deploy/clusters/workload/projects/test-bank-backend/components/accounts-db/accounts-db.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/test-accounts-db/test-accounts-db.gen.yaml similarity index 79% rename from deploy/clusters/workload/projects/test-bank-backend/components/accounts-db/accounts-db.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/test-accounts-db/test-accounts-db.gen.yaml index e5d20414..50ad0ac0 100644 --- a/deploy/clusters/workload/projects/test-bank-backend/components/accounts-db/accounts-db.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/test-accounts-db/test-accounts-db.gen.yaml @@ -9,14 +9,14 @@ metadata: labels: app: accounts-db app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: test-accounts-db app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-accounts-db - environment: development + argocd.argoproj.io/instance: bank-backend-test-accounts-db + environment: test team: accounts tier: db name: accounts-db-config @@ -27,14 +27,14 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: test-accounts-db app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-accounts-db - environment: development + argocd.argoproj.io/instance: bank-backend-test-accounts-db + environment: test team: accounts tier: db name: accounts-db @@ -48,7 +48,7 @@ spec: selector: app: accounts-db application: bank-of-holos - environment: development + environment: test team: accounts tier: db type: ClusterIP @@ -58,14 +58,14 @@ kind: StatefulSet metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: test-accounts-db app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-accounts-db - environment: development + argocd.argoproj.io/instance: bank-backend-test-accounts-db + environment: test team: accounts tier: db name: accounts-db @@ -76,7 +76,7 @@ spec: matchLabels: app: accounts-db application: bank-of-holos - environment: development + environment: test team: accounts tier: db serviceName: accounts-db @@ -85,7 +85,7 @@ spec: labels: app: accounts-db application: bank-of-holos - environment: development + environment: test team: accounts tier: db spec: diff --git a/deploy/clusters/workload/projects/test-bank-backend/components/balance-reader/balance-reader.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/test-balance-reader/test-balance-reader.gen.yaml similarity index 91% rename from deploy/clusters/workload/projects/test-bank-backend/components/balance-reader/balance-reader.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/test-balance-reader/test-balance-reader.gen.yaml index 9ae0989e..142aa260 100644 --- a/deploy/clusters/workload/projects/test-bank-backend/components/balance-reader/balance-reader.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/test-balance-reader/test-balance-reader.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: balance-reader + app.holos.run/component.name: test-balance-reader app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-balance-reader + argocd.argoproj.io/instance: bank-backend-test-balance-reader environment: test team: ledger tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: balance-reader + app.holos.run/component.name: test-balance-reader app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-balance-reader + argocd.argoproj.io/instance: bank-backend-test-balance-reader environment: test team: ledger tier: backend diff --git a/deploy/clusters/workload/projects/test-bank-backend/components/config/config.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/test-bank-backend-config/test-bank-backend-config.gen.yaml similarity index 74% rename from deploy/clusters/workload/projects/test-bank-backend/components/config/config.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/test-bank-backend-config/test-bank-backend-config.gen.yaml index 873cf0e5..35088b47 100644 --- a/deploy/clusters/workload/projects/test-bank-backend/components/config/config.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/test-bank-backend-config/test-bank-backend-config.gen.yaml @@ -3,13 +3,13 @@ kind: ServiceAccount metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: test-bank-backend-config app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config + argocd.argoproj.io/instance: bank-backend-test-bank-backend-config environment: test tier: backend name: bank-of-holos @@ -24,13 +24,13 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: test-bank-backend-config app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config + argocd.argoproj.io/instance: bank-backend-test-bank-backend-config environment: test tier: backend name: demo-data-config @@ -44,13 +44,13 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: test-bank-backend-config app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config + argocd.argoproj.io/instance: bank-backend-test-bank-backend-config environment: test tier: backend name: environment-config @@ -67,13 +67,13 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: test-bank-backend-config app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config + argocd.argoproj.io/instance: bank-backend-test-bank-backend-config environment: test tier: backend name: service-api-config @@ -84,13 +84,13 @@ kind: ExternalSecret metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: test-bank-backend-config app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config + argocd.argoproj.io/instance: bank-backend-test-bank-backend-config environment: test tier: backend name: jwt-key @@ -111,13 +111,13 @@ kind: SecretStore metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: test-bank-backend-config app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config + argocd.argoproj.io/instance: bank-backend-test-bank-backend-config environment: test tier: backend name: test-bank-security @@ -141,13 +141,13 @@ kind: ReferenceGrant metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: test-bank-backend-config app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-config + argocd.argoproj.io/instance: bank-backend-test-bank-backend-config environment: test tier: backend name: istio-ingress diff --git a/deploy/clusters/workload/projects/test-bank-backend/components/contacts/contacts.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/test-contacts/test-contacts.gen.yaml similarity index 90% rename from deploy/clusters/workload/projects/test-bank-backend/components/contacts/contacts.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/test-contacts/test-contacts.gen.yaml index 47e46a45..feae9453 100644 --- a/deploy/clusters/workload/projects/test-bank-backend/components/contacts/contacts.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/test-contacts/test-contacts.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: contacts + app.holos.run/component.name: test-contacts app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-contacts + argocd.argoproj.io/instance: bank-backend-test-contacts environment: test team: accounts tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: contacts + app.holos.run/component.name: test-contacts app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-contacts + argocd.argoproj.io/instance: bank-backend-test-contacts environment: test team: accounts tier: backend diff --git a/deploy/clusters/workload/projects/test-bank-backend/components/ledger-db/ledger-db.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/test-ledger-db/test-ledger-db.gen.yaml similarity index 85% rename from deploy/clusters/workload/projects/test-bank-backend/components/ledger-db/ledger-db.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/test-ledger-db/test-ledger-db.gen.yaml index 0f377052..5e08f9bc 100644 --- a/deploy/clusters/workload/projects/test-bank-backend/components/ledger-db/ledger-db.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/test-ledger-db/test-ledger-db.gen.yaml @@ -11,13 +11,13 @@ metadata: labels: app: ledger-db app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: test-ledger-db app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-ledger-db + argocd.argoproj.io/instance: bank-backend-test-ledger-db environment: development team: ledger tier: db @@ -29,13 +29,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: test-ledger-db app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-ledger-db + argocd.argoproj.io/instance: bank-backend-test-ledger-db environment: development team: ledger tier: db @@ -59,13 +59,13 @@ kind: StatefulSet metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: test-ledger-db app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-ledger-db + argocd.argoproj.io/instance: bank-backend-test-ledger-db environment: development team: ledger tier: db diff --git a/deploy/clusters/workload/projects/test-bank-backend/components/ledger-writer/ledger-writer.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/test-ledger-writer/test-ledger-writer.gen.yaml similarity index 91% rename from deploy/clusters/workload/projects/test-bank-backend/components/ledger-writer/ledger-writer.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/test-ledger-writer/test-ledger-writer.gen.yaml index 5ea06dab..767abae3 100644 --- a/deploy/clusters/workload/projects/test-bank-backend/components/ledger-writer/ledger-writer.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/test-ledger-writer/test-ledger-writer.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-writer + app.holos.run/component.name: test-ledger-writer app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-ledger-writer + argocd.argoproj.io/instance: bank-backend-test-ledger-writer environment: test team: ledger tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-writer + app.holos.run/component.name: test-ledger-writer app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-ledger-writer + argocd.argoproj.io/instance: bank-backend-test-ledger-writer environment: test team: ledger tier: backend diff --git a/deploy/clusters/workload/projects/test-bank-backend/components/transaction-history/transaction-history.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/test-transaction-history/test-transaction-history.gen.yaml similarity index 92% rename from deploy/clusters/workload/projects/test-bank-backend/components/transaction-history/transaction-history.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/test-transaction-history/test-transaction-history.gen.yaml index 111efbfa..ee089d1e 100644 --- a/deploy/clusters/workload/projects/test-bank-backend/components/transaction-history/transaction-history.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/test-transaction-history/test-transaction-history.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: transaction-history + app.holos.run/component.name: test-transaction-history app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-transaction-history + argocd.argoproj.io/instance: bank-backend-test-transaction-history environment: test team: ledger tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: transaction-history + app.holos.run/component.name: test-transaction-history app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-transaction-history + argocd.argoproj.io/instance: bank-backend-test-transaction-history environment: test team: ledger tier: backend diff --git a/deploy/clusters/workload/projects/test-bank-backend/components/userservice/userservice.gen.yaml b/deploy/clusters/workload/projects/bank-backend/components/test-userservice/test-userservice.gen.yaml similarity index 91% rename from deploy/clusters/workload/projects/test-bank-backend/components/userservice/userservice.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/components/test-userservice/test-userservice.gen.yaml index dc2b5395..0339e758 100644 --- a/deploy/clusters/workload/projects/test-bank-backend/components/userservice/userservice.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/components/test-userservice/test-userservice.gen.yaml @@ -3,13 +3,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: userservice + app.holos.run/component.name: test-userservice app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-userservice + argocd.argoproj.io/instance: bank-backend-test-userservice environment: test team: accounts tier: backend @@ -33,13 +33,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: userservice + app.holos.run/component.name: test-userservice app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-backend-userservice + argocd.argoproj.io/instance: bank-backend-test-userservice environment: test team: accounts tier: backend diff --git a/deploy/clusters/workload/projects/dev-bank-backend/gitops/ledger-db.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/dev-accounts-db.application.gen.yaml similarity index 63% rename from deploy/clusters/workload/projects/dev-bank-backend/gitops/ledger-db.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/dev-accounts-db.application.gen.yaml index d0de048c..b7b99d58 100644 --- a/deploy/clusters/workload/projects/dev-bank-backend/gitops/ledger-db.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/dev-accounts-db.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: dev-accounts-db app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: dev-bank-backend-ledger-db + name: bank-backend-dev-accounts-db namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: dev-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/dev-bank-backend/components/ledger-db + path: deploy/clusters/workload/projects/bank-backend/components/dev-accounts-db repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-backend/gitops/dev-balance-reader.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/dev-balance-reader.application.gen.yaml new file mode 100644 index 00000000..b42c2526 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-backend/gitops/dev-balance-reader.application.gen.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: dev-balance-reader + app.holos.run/environment.name: dev + app.holos.run/project.name: bank-backend + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: backend + name: bank-backend-dev-balance-reader + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-backend + source: + path: deploy/clusters/workload/projects/bank-backend/components/dev-balance-reader + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/dev-bank-backend/gitops/balance-reader.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/dev-bank-backend-config.application.gen.yaml similarity index 61% rename from deploy/clusters/workload/projects/dev-bank-backend/gitops/balance-reader.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/dev-bank-backend-config.application.gen.yaml index 3a5616f0..099e4584 100644 --- a/deploy/clusters/workload/projects/dev-bank-backend/gitops/balance-reader.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/dev-bank-backend-config.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: balance-reader + app.holos.run/component.name: dev-bank-backend-config app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: dev-bank-backend-balance-reader + name: bank-backend-dev-bank-backend-config namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: dev-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/dev-bank-backend/components/balance-reader + path: deploy/clusters/workload/projects/bank-backend/components/dev-bank-backend-config repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/dev-bank-backend/gitops/config.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/dev-contacts.application.gen.yaml similarity index 64% rename from deploy/clusters/workload/projects/dev-bank-backend/gitops/config.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/dev-contacts.application.gen.yaml index b1ebf2d7..87b054d0 100644 --- a/deploy/clusters/workload/projects/dev-bank-backend/gitops/config.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/dev-contacts.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: dev-contacts app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: dev-bank-backend-config + name: bank-backend-dev-contacts namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: dev-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/dev-bank-backend/components/config + path: deploy/clusters/workload/projects/bank-backend/components/dev-contacts repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/dev-bank-backend/gitops/contacts.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/dev-ledger-db.application.gen.yaml similarity index 64% rename from deploy/clusters/workload/projects/dev-bank-backend/gitops/contacts.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/dev-ledger-db.application.gen.yaml index 7b668aee..a5ecc20a 100644 --- a/deploy/clusters/workload/projects/dev-bank-backend/gitops/contacts.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/dev-ledger-db.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: contacts + app.holos.run/component.name: dev-ledger-db app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: dev-bank-backend-contacts + name: bank-backend-dev-ledger-db namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: dev-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/dev-bank-backend/components/contacts + path: deploy/clusters/workload/projects/bank-backend/components/dev-ledger-db repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-backend/gitops/dev-ledger-writer.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/dev-ledger-writer.application.gen.yaml new file mode 100644 index 00000000..29d13316 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-backend/gitops/dev-ledger-writer.application.gen.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: dev-ledger-writer + app.holos.run/environment.name: dev + app.holos.run/project.name: bank-backend + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: backend + name: bank-backend-dev-ledger-writer + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-backend + source: + path: deploy/clusters/workload/projects/bank-backend/components/dev-ledger-writer + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-backend/gitops/dev-transaction-history.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/dev-transaction-history.application.gen.yaml new file mode 100644 index 00000000..6afc6a51 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-backend/gitops/dev-transaction-history.application.gen.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: dev-transaction-history + app.holos.run/environment.name: dev + app.holos.run/project.name: bank-backend + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: backend + name: bank-backend-dev-transaction-history + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-backend + source: + path: deploy/clusters/workload/projects/bank-backend/components/dev-transaction-history + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/dev-bank-backend/gitops/accounts-db.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/dev-userservice.application.gen.yaml similarity index 63% rename from deploy/clusters/workload/projects/dev-bank-backend/gitops/accounts-db.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/dev-userservice.application.gen.yaml index f575067b..72419289 100644 --- a/deploy/clusters/workload/projects/dev-bank-backend/gitops/accounts-db.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/dev-userservice.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: dev-userservice app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: dev-bank-backend-accounts-db + name: bank-backend-dev-userservice namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: dev-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/dev-bank-backend/components/accounts-db + path: deploy/clusters/workload/projects/bank-backend/components/dev-userservice repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/prod-bank-backend/gitops/ledger-db.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/prod-accounts-db.application.gen.yaml similarity index 63% rename from deploy/clusters/workload/projects/prod-bank-backend/gitops/ledger-db.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/prod-accounts-db.application.gen.yaml index 27b81546..8d13e00a 100644 --- a/deploy/clusters/workload/projects/prod-bank-backend/gitops/ledger-db.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/prod-accounts-db.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: prod-accounts-db app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: prod-bank-backend-ledger-db + name: bank-backend-prod-accounts-db namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: prod-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/prod-bank-backend/components/ledger-db + path: deploy/clusters/workload/projects/bank-backend/components/prod-accounts-db repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-backend/gitops/prod-balance-reader.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/prod-balance-reader.application.gen.yaml new file mode 100644 index 00000000..659dc3a9 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-backend/gitops/prod-balance-reader.application.gen.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: prod-balance-reader + app.holos.run/environment.name: prod + app.holos.run/project.name: bank-backend + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: backend + name: bank-backend-prod-balance-reader + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-backend + source: + path: deploy/clusters/workload/projects/bank-backend/components/prod-balance-reader + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/prod-bank-backend/gitops/balance-reader.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/prod-bank-backend-config.application.gen.yaml similarity index 61% rename from deploy/clusters/workload/projects/prod-bank-backend/gitops/balance-reader.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/prod-bank-backend-config.application.gen.yaml index 2aa296bd..60914016 100644 --- a/deploy/clusters/workload/projects/prod-bank-backend/gitops/balance-reader.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/prod-bank-backend-config.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: balance-reader + app.holos.run/component.name: prod-bank-backend-config app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: prod-bank-backend-balance-reader + name: bank-backend-prod-bank-backend-config namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: prod-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/prod-bank-backend/components/balance-reader + path: deploy/clusters/workload/projects/bank-backend/components/prod-bank-backend-config repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/prod-bank-backend/gitops/config.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/prod-contacts.application.gen.yaml similarity index 64% rename from deploy/clusters/workload/projects/prod-bank-backend/gitops/config.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/prod-contacts.application.gen.yaml index b6262b53..3c2332fb 100644 --- a/deploy/clusters/workload/projects/prod-bank-backend/gitops/config.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/prod-contacts.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: prod-contacts app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: prod-bank-backend-config + name: bank-backend-prod-contacts namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: prod-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/prod-bank-backend/components/config + path: deploy/clusters/workload/projects/bank-backend/components/prod-contacts repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/prod-bank-backend/gitops/contacts.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/prod-ledger-db.application.gen.yaml similarity index 63% rename from deploy/clusters/workload/projects/prod-bank-backend/gitops/contacts.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/prod-ledger-db.application.gen.yaml index 85242829..616d770d 100644 --- a/deploy/clusters/workload/projects/prod-bank-backend/gitops/contacts.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/prod-ledger-db.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: contacts + app.holos.run/component.name: prod-ledger-db app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: prod-bank-backend-contacts + name: bank-backend-prod-ledger-db namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: prod-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/prod-bank-backend/components/contacts + path: deploy/clusters/workload/projects/bank-backend/components/prod-ledger-db repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-backend/gitops/prod-ledger-writer.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/prod-ledger-writer.application.gen.yaml new file mode 100644 index 00000000..e6e17458 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-backend/gitops/prod-ledger-writer.application.gen.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: prod-ledger-writer + app.holos.run/environment.name: prod + app.holos.run/project.name: bank-backend + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: backend + name: bank-backend-prod-ledger-writer + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-backend + source: + path: deploy/clusters/workload/projects/bank-backend/components/prod-ledger-writer + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-backend/gitops/prod-transaction-history.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/prod-transaction-history.application.gen.yaml new file mode 100644 index 00000000..11682740 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-backend/gitops/prod-transaction-history.application.gen.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: prod-transaction-history + app.holos.run/environment.name: prod + app.holos.run/project.name: bank-backend + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: backend + name: bank-backend-prod-transaction-history + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-backend + source: + path: deploy/clusters/workload/projects/bank-backend/components/prod-transaction-history + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/prod-bank-backend/gitops/accounts-db.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/prod-userservice.application.gen.yaml similarity index 62% rename from deploy/clusters/workload/projects/prod-bank-backend/gitops/accounts-db.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/prod-userservice.application.gen.yaml index cc992f1c..b1e0362c 100644 --- a/deploy/clusters/workload/projects/prod-bank-backend/gitops/accounts-db.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/prod-userservice.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: prod-userservice app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: prod-bank-backend-accounts-db + name: bank-backend-prod-userservice namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: prod-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/prod-bank-backend/components/accounts-db + path: deploy/clusters/workload/projects/bank-backend/components/prod-userservice repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/stage-bank-backend/gitops/ledger-db.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/stage-accounts-db.application.gen.yaml similarity index 63% rename from deploy/clusters/workload/projects/stage-bank-backend/gitops/ledger-db.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/stage-accounts-db.application.gen.yaml index 263790b0..90f378b5 100644 --- a/deploy/clusters/workload/projects/stage-bank-backend/gitops/ledger-db.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/stage-accounts-db.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: stage-accounts-db app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: stage-bank-backend-ledger-db + name: bank-backend-stage-accounts-db namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: stage-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/stage-bank-backend/components/ledger-db + path: deploy/clusters/workload/projects/bank-backend/components/stage-accounts-db repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-backend/gitops/stage-balance-reader.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/stage-balance-reader.application.gen.yaml new file mode 100644 index 00000000..dbf1ffb8 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-backend/gitops/stage-balance-reader.application.gen.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: stage-balance-reader + app.holos.run/environment.name: stage + app.holos.run/project.name: bank-backend + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: backend + name: bank-backend-stage-balance-reader + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-backend + source: + path: deploy/clusters/workload/projects/bank-backend/components/stage-balance-reader + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/stage-bank-backend/gitops/balance-reader.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/stage-bank-backend-config.application.gen.yaml similarity index 61% rename from deploy/clusters/workload/projects/stage-bank-backend/gitops/balance-reader.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/stage-bank-backend-config.application.gen.yaml index 964b32ad..7c142219 100644 --- a/deploy/clusters/workload/projects/stage-bank-backend/gitops/balance-reader.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/stage-bank-backend-config.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: balance-reader + app.holos.run/component.name: stage-bank-backend-config app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: stage-bank-backend-balance-reader + name: bank-backend-stage-bank-backend-config namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: stage-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/stage-bank-backend/components/balance-reader + path: deploy/clusters/workload/projects/bank-backend/components/stage-bank-backend-config repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/stage-bank-backend/gitops/config.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/stage-contacts.application.gen.yaml similarity index 64% rename from deploy/clusters/workload/projects/stage-bank-backend/gitops/config.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/stage-contacts.application.gen.yaml index f9f69b5d..894882d6 100644 --- a/deploy/clusters/workload/projects/stage-bank-backend/gitops/config.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/stage-contacts.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: stage-contacts app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: stage-bank-backend-config + name: bank-backend-stage-contacts namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: stage-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/stage-bank-backend/components/config + path: deploy/clusters/workload/projects/bank-backend/components/stage-contacts repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/stage-bank-backend/gitops/contacts.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/stage-ledger-db.application.gen.yaml similarity index 63% rename from deploy/clusters/workload/projects/stage-bank-backend/gitops/contacts.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/stage-ledger-db.application.gen.yaml index 65eb4d41..f728af6c 100644 --- a/deploy/clusters/workload/projects/stage-bank-backend/gitops/contacts.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/stage-ledger-db.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: contacts + app.holos.run/component.name: stage-ledger-db app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: stage-bank-backend-contacts + name: bank-backend-stage-ledger-db namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: stage-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/stage-bank-backend/components/contacts + path: deploy/clusters/workload/projects/bank-backend/components/stage-ledger-db repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/stage-bank-backend/gitops/accounts-db.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/stage-ledger-writer.application.gen.yaml similarity index 62% rename from deploy/clusters/workload/projects/stage-bank-backend/gitops/accounts-db.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/stage-ledger-writer.application.gen.yaml index 755c0708..9aec93e0 100644 --- a/deploy/clusters/workload/projects/stage-bank-backend/gitops/accounts-db.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/stage-ledger-writer.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: stage-ledger-writer app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: stage-bank-backend-accounts-db + name: bank-backend-stage-ledger-writer namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: stage-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/stage-bank-backend/components/accounts-db + path: deploy/clusters/workload/projects/bank-backend/components/stage-ledger-writer repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-backend/gitops/stage-transaction-history.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/stage-transaction-history.application.gen.yaml new file mode 100644 index 00000000..630a30c1 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-backend/gitops/stage-transaction-history.application.gen.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: stage-transaction-history + app.holos.run/environment.name: stage + app.holos.run/project.name: bank-backend + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: backend + name: bank-backend-stage-transaction-history + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-backend + source: + path: deploy/clusters/workload/projects/bank-backend/components/stage-transaction-history + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-backend/gitops/stage-userservice.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/stage-userservice.application.gen.yaml new file mode 100644 index 00000000..b9bf48f8 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-backend/gitops/stage-userservice.application.gen.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: stage-userservice + app.holos.run/environment.name: stage + app.holos.run/project.name: bank-backend + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: backend + name: bank-backend-stage-userservice + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-backend + source: + path: deploy/clusters/workload/projects/bank-backend/components/stage-userservice + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/test-bank-backend/gitops/ledger-db.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/test-accounts-db.application.gen.yaml similarity index 63% rename from deploy/clusters/workload/projects/test-bank-backend/gitops/ledger-db.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/test-accounts-db.application.gen.yaml index 25b69c01..5187c0e3 100644 --- a/deploy/clusters/workload/projects/test-bank-backend/gitops/ledger-db.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/test-accounts-db.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-db + app.holos.run/component.name: test-accounts-db app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: test-bank-backend-ledger-db + name: bank-backend-test-accounts-db namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: test-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/test-bank-backend/components/ledger-db + path: deploy/clusters/workload/projects/bank-backend/components/test-accounts-db repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-backend/gitops/test-balance-reader.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/test-balance-reader.application.gen.yaml new file mode 100644 index 00000000..685ae157 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-backend/gitops/test-balance-reader.application.gen.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: test-balance-reader + app.holos.run/environment.name: test + app.holos.run/project.name: bank-backend + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: backend + name: bank-backend-test-balance-reader + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-backend + source: + path: deploy/clusters/workload/projects/bank-backend/components/test-balance-reader + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/test-bank-backend/gitops/balance-reader.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/test-bank-backend-config.application.gen.yaml similarity index 61% rename from deploy/clusters/workload/projects/test-bank-backend/gitops/balance-reader.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/test-bank-backend-config.application.gen.yaml index cd4f9d48..bfeb577f 100644 --- a/deploy/clusters/workload/projects/test-bank-backend/gitops/balance-reader.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/test-bank-backend-config.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: balance-reader + app.holos.run/component.name: test-bank-backend-config app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: test-bank-backend-balance-reader + name: bank-backend-test-bank-backend-config namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: test-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/test-bank-backend/components/balance-reader + path: deploy/clusters/workload/projects/bank-backend/components/test-bank-backend-config repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/test-bank-backend/gitops/config.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/test-contacts.application.gen.yaml similarity index 64% rename from deploy/clusters/workload/projects/test-bank-backend/gitops/config.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/test-contacts.application.gen.yaml index 32393180..61cf2ff1 100644 --- a/deploy/clusters/workload/projects/test-bank-backend/gitops/config.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/test-contacts.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: config + app.holos.run/component.name: test-contacts app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: test-bank-backend-config + name: bank-backend-test-contacts namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: test-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/test-bank-backend/components/config + path: deploy/clusters/workload/projects/bank-backend/components/test-contacts repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/test-bank-backend/gitops/contacts.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/test-ledger-db.application.gen.yaml similarity index 63% rename from deploy/clusters/workload/projects/test-bank-backend/gitops/contacts.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/test-ledger-db.application.gen.yaml index eb76e74c..1179ec10 100644 --- a/deploy/clusters/workload/projects/test-bank-backend/gitops/contacts.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/test-ledger-db.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: contacts + app.holos.run/component.name: test-ledger-db app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: test-bank-backend-contacts + name: bank-backend-test-ledger-db namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: test-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/test-bank-backend/components/contacts + path: deploy/clusters/workload/projects/bank-backend/components/test-ledger-db repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-backend/gitops/test-ledger-writer.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/test-ledger-writer.application.gen.yaml new file mode 100644 index 00000000..f5c0b48c --- /dev/null +++ b/deploy/clusters/workload/projects/bank-backend/gitops/test-ledger-writer.application.gen.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: test-ledger-writer + app.holos.run/environment.name: test + app.holos.run/project.name: bank-backend + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: backend + name: bank-backend-test-ledger-writer + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-backend + source: + path: deploy/clusters/workload/projects/bank-backend/components/test-ledger-writer + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-backend/gitops/test-transaction-history.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/test-transaction-history.application.gen.yaml new file mode 100644 index 00000000..8d27dfd2 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-backend/gitops/test-transaction-history.application.gen.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: test-transaction-history + app.holos.run/environment.name: test + app.holos.run/project.name: bank-backend + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: backend + name: bank-backend-test-transaction-history + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-backend + source: + path: deploy/clusters/workload/projects/bank-backend/components/test-transaction-history + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/test-bank-backend/gitops/accounts-db.application.gen.yaml b/deploy/clusters/workload/projects/bank-backend/gitops/test-userservice.application.gen.yaml similarity index 62% rename from deploy/clusters/workload/projects/test-bank-backend/gitops/accounts-db.application.gen.yaml rename to deploy/clusters/workload/projects/bank-backend/gitops/test-userservice.application.gen.yaml index 5071bc8c..fec3c2b0 100644 --- a/deploy/clusters/workload/projects/test-bank-backend/gitops/accounts-db.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-backend/gitops/test-userservice.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: accounts-db + app.holos.run/component.name: test-userservice app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend + app.holos.run/project.name: bank-backend app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: backend - name: test-bank-backend-accounts-db + name: bank-backend-test-userservice namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: test-bank-backend + project: bank-backend source: - path: deploy/clusters/workload/projects/test-bank-backend/components/accounts-db + path: deploy/clusters/workload/projects/bank-backend/components/test-userservice repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/dev-bank-security/components/secrets/secrets.gen.yaml b/deploy/clusters/workload/projects/bank-security/components/dev-secrets/dev-secrets.gen.yaml similarity index 79% rename from deploy/clusters/workload/projects/dev-bank-security/components/secrets/secrets.gen.yaml rename to deploy/clusters/workload/projects/bank-security/components/dev-secrets/dev-secrets.gen.yaml index f104bf13..f381272d 100644 --- a/deploy/clusters/workload/projects/dev-bank-security/components/secrets/secrets.gen.yaml +++ b/deploy/clusters/workload/projects/bank-security/components/dev-secrets/dev-secrets.gen.yaml @@ -3,12 +3,12 @@ kind: ServiceAccount metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: dev-secrets app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets + argocd.argoproj.io/instance: bank-security-dev-secrets name: jwt-key-writer namespace: dev-bank-security --- @@ -17,12 +17,12 @@ kind: Role metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: dev-secrets app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets + argocd.argoproj.io/instance: bank-security-dev-secrets name: jwt-key-reader namespace: dev-bank-security rules: @@ -40,12 +40,12 @@ kind: Role metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: dev-secrets app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets + argocd.argoproj.io/instance: bank-security-dev-secrets name: jwt-key-writer namespace: dev-bank-security rules: @@ -63,12 +63,12 @@ kind: RoleBinding metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: dev-secrets app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets + argocd.argoproj.io/instance: bank-security-dev-secrets name: jwt-key-reader namespace: dev-bank-security roleRef: @@ -88,12 +88,12 @@ kind: RoleBinding metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: dev-secrets app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets + argocd.argoproj.io/instance: bank-security-dev-secrets name: jwt-key-writer namespace: dev-bank-security roleRef: @@ -145,12 +145,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: dev-secrets app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets + argocd.argoproj.io/instance: bank-security-dev-secrets name: jwt-key-writer namespace: dev-bank-security --- @@ -159,12 +159,12 @@ kind: Job metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: dev-secrets app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-secrets + argocd.argoproj.io/instance: bank-security-dev-secrets name: jwt-key-writer namespace: dev-bank-security spec: diff --git a/deploy/clusters/workload/projects/bank-security/components/namespaces/namespaces.gen.yaml b/deploy/clusters/workload/projects/bank-security/components/namespaces/namespaces.gen.yaml new file mode 100644 index 00000000..4ec9bb63 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-security/components/namespaces/namespaces.gen.yaml @@ -0,0 +1,197 @@ +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kargo.akuity.io/project: "true" + kubernetes.io/metadata.name: bank-backend + name: bank-backend +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kargo.akuity.io/project: "true" + kubernetes.io/metadata.name: bank-security + name: bank-security +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kargo.akuity.io/project: "true" + kubernetes.io/metadata.name: bank-web + name: bank-web +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kubernetes.io/metadata.name: dev-bank-backend + name: dev-bank-backend +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kubernetes.io/metadata.name: dev-bank-frontend + name: dev-bank-frontend +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kubernetes.io/metadata.name: dev-bank-security + name: dev-bank-security +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kubernetes.io/metadata.name: prod-bank-backend + name: prod-bank-backend +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kubernetes.io/metadata.name: prod-bank-frontend + name: prod-bank-frontend +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kubernetes.io/metadata.name: prod-bank-security + name: prod-bank-security +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kubernetes.io/metadata.name: stage-bank-backend + name: stage-bank-backend +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kubernetes.io/metadata.name: stage-bank-frontend + name: stage-bank-frontend +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kubernetes.io/metadata.name: stage-bank-security + name: stage-bank-security +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kubernetes.io/metadata.name: test-bank-backend + name: test-bank-backend +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kubernetes.io/metadata.name: test-bank-frontend + name: test-bank-frontend +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: namespaces + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-namespaces + kubernetes.io/metadata.name: test-bank-security + name: test-bank-security diff --git a/deploy/clusters/workload/projects/prod-bank-security/components/secrets/secrets.gen.yaml b/deploy/clusters/workload/projects/bank-security/components/prod-secrets/prod-secrets.gen.yaml similarity index 79% rename from deploy/clusters/workload/projects/prod-bank-security/components/secrets/secrets.gen.yaml rename to deploy/clusters/workload/projects/bank-security/components/prod-secrets/prod-secrets.gen.yaml index 2d85f47c..c0fcee67 100644 --- a/deploy/clusters/workload/projects/prod-bank-security/components/secrets/secrets.gen.yaml +++ b/deploy/clusters/workload/projects/bank-security/components/prod-secrets/prod-secrets.gen.yaml @@ -3,12 +3,12 @@ kind: ServiceAccount metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: prod-secrets app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets + argocd.argoproj.io/instance: bank-security-prod-secrets name: jwt-key-writer namespace: prod-bank-security --- @@ -17,12 +17,12 @@ kind: Role metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: prod-secrets app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets + argocd.argoproj.io/instance: bank-security-prod-secrets name: jwt-key-reader namespace: prod-bank-security rules: @@ -40,12 +40,12 @@ kind: Role metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: prod-secrets app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets + argocd.argoproj.io/instance: bank-security-prod-secrets name: jwt-key-writer namespace: prod-bank-security rules: @@ -63,12 +63,12 @@ kind: RoleBinding metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: prod-secrets app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets + argocd.argoproj.io/instance: bank-security-prod-secrets name: jwt-key-reader namespace: prod-bank-security roleRef: @@ -88,12 +88,12 @@ kind: RoleBinding metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: prod-secrets app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets + argocd.argoproj.io/instance: bank-security-prod-secrets name: jwt-key-writer namespace: prod-bank-security roleRef: @@ -145,12 +145,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: prod-secrets app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets + argocd.argoproj.io/instance: bank-security-prod-secrets name: jwt-key-writer namespace: prod-bank-security --- @@ -159,12 +159,12 @@ kind: Job metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: prod-secrets app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-secrets + argocd.argoproj.io/instance: bank-security-prod-secrets name: jwt-key-writer namespace: prod-bank-security spec: diff --git a/deploy/clusters/workload/projects/bank-security/components/projects/projects.gen.yaml b/deploy/clusters/workload/projects/bank-security/components/projects/projects.gen.yaml new file mode 100644 index 00000000..a03f4b7a --- /dev/null +++ b/deploy/clusters/workload/projects/bank-security/components/projects/projects.gen.yaml @@ -0,0 +1,38 @@ +apiVersion: kargo.akuity.io/v1alpha1 +kind: Project +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: projects + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-projects + name: bank-backend +spec: {} +--- +apiVersion: kargo.akuity.io/v1alpha1 +kind: Project +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: projects + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-projects + name: bank-security +spec: {} +--- +apiVersion: kargo.akuity.io/v1alpha1 +kind: Project +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: projects + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-projects + name: bank-web +spec: {} diff --git a/deploy/clusters/workload/projects/stage-bank-security/components/secrets/secrets.gen.yaml b/deploy/clusters/workload/projects/bank-security/components/stage-secrets/stage-secrets.gen.yaml similarity index 79% rename from deploy/clusters/workload/projects/stage-bank-security/components/secrets/secrets.gen.yaml rename to deploy/clusters/workload/projects/bank-security/components/stage-secrets/stage-secrets.gen.yaml index b4ea84b4..c28bb15a 100644 --- a/deploy/clusters/workload/projects/stage-bank-security/components/secrets/secrets.gen.yaml +++ b/deploy/clusters/workload/projects/bank-security/components/stage-secrets/stage-secrets.gen.yaml @@ -3,12 +3,12 @@ kind: ServiceAccount metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: stage-secrets app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets + argocd.argoproj.io/instance: bank-security-stage-secrets name: jwt-key-writer namespace: stage-bank-security --- @@ -17,12 +17,12 @@ kind: Role metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: stage-secrets app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets + argocd.argoproj.io/instance: bank-security-stage-secrets name: jwt-key-reader namespace: stage-bank-security rules: @@ -40,12 +40,12 @@ kind: Role metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: stage-secrets app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets + argocd.argoproj.io/instance: bank-security-stage-secrets name: jwt-key-writer namespace: stage-bank-security rules: @@ -63,12 +63,12 @@ kind: RoleBinding metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: stage-secrets app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets + argocd.argoproj.io/instance: bank-security-stage-secrets name: jwt-key-reader namespace: stage-bank-security roleRef: @@ -88,12 +88,12 @@ kind: RoleBinding metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: stage-secrets app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets + argocd.argoproj.io/instance: bank-security-stage-secrets name: jwt-key-writer namespace: stage-bank-security roleRef: @@ -145,12 +145,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: stage-secrets app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets + argocd.argoproj.io/instance: bank-security-stage-secrets name: jwt-key-writer namespace: stage-bank-security --- @@ -159,12 +159,12 @@ kind: Job metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: stage-secrets app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-secrets + argocd.argoproj.io/instance: bank-security-stage-secrets name: jwt-key-writer namespace: stage-bank-security spec: diff --git a/deploy/clusters/workload/projects/bank-security/components/stages/stages.gen.yaml b/deploy/clusters/workload/projects/bank-security/components/stages/stages.gen.yaml new file mode 100644 index 00000000..e9a3e185 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-security/components/stages/stages.gen.yaml @@ -0,0 +1,264 @@ +apiVersion: kargo.akuity.io/v1alpha1 +kind: Stage +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: stages + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-stages + name: dev-frontend + namespace: bank-security +spec: + promotionTemplate: + spec: + steps: + - config: + checkout: + - branch: main + path: ./src + - branch: stage/dev + path: ./out + repoURL: https://github.com/holos-run/bank-of-holos.git + uses: git-clone + - config: + path: ./out + uses: git-clear + - as: update-image + config: + images: + - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend + path: ./src/deploy/clusters/workload/projects/bank-web/components/dev-frontend + uses: kustomize-set-image + - config: + outPath: ./out/deploy/clusters/workload/projects/bank-web/components/dev-frontend/dev-frontend.gen.yaml + path: ./src/deploy/clusters/workload/projects/bank-web/components/dev-frontend + uses: kustomize-build + - as: commit + config: + messageFromSteps: + - update-image + path: ./out + uses: git-commit + - config: + path: ./out + targetBranch: stage/dev + uses: git-push + - config: + apps: + - name: bank-web-dev-frontend + sources: + - desiredCommitFromStep: commit + repoURL: https://github.com/holos-run/bank-of-holos.git + uses: argocd-update + requestedFreight: + - origin: + kind: Warehouse + name: frontend + sources: + direct: true +--- +apiVersion: kargo.akuity.io/v1alpha1 +kind: Stage +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: stages + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-stages + name: prod-frontend + namespace: bank-security +spec: + promotionTemplate: + spec: + steps: + - config: + checkout: + - branch: main + path: ./src + - branch: stage/prod + path: ./out + repoURL: https://github.com/holos-run/bank-of-holos.git + uses: git-clone + - config: + path: ./out + uses: git-clear + - as: update-image + config: + images: + - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend + path: ./src/deploy/clusters/workload/projects/bank-web/components/prod-frontend + uses: kustomize-set-image + - config: + outPath: ./out/deploy/clusters/workload/projects/bank-web/components/prod-frontend/prod-frontend.gen.yaml + path: ./src/deploy/clusters/workload/projects/bank-web/components/prod-frontend + uses: kustomize-build + - as: commit + config: + messageFromSteps: + - update-image + path: ./out + uses: git-commit + - config: + path: ./out + targetBranch: stage/prod + uses: git-push + - config: + apps: + - name: bank-web-prod-frontend + sources: + - desiredCommitFromStep: commit + repoURL: https://github.com/holos-run/bank-of-holos.git + uses: argocd-update + requestedFreight: + - origin: + kind: Warehouse + name: frontend + sources: + direct: true +--- +apiVersion: kargo.akuity.io/v1alpha1 +kind: Stage +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: stages + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-stages + name: stage-frontend + namespace: bank-security +spec: + promotionTemplate: + spec: + steps: + - config: + checkout: + - branch: main + path: ./src + - branch: stage/stage + path: ./out + repoURL: https://github.com/holos-run/bank-of-holos.git + uses: git-clone + - config: + path: ./out + uses: git-clear + - as: update-image + config: + images: + - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend + path: ./src/deploy/clusters/workload/projects/bank-web/components/stage-frontend + uses: kustomize-set-image + - config: + outPath: ./out/deploy/clusters/workload/projects/bank-web/components/stage-frontend/stage-frontend.gen.yaml + path: ./src/deploy/clusters/workload/projects/bank-web/components/stage-frontend + uses: kustomize-build + - as: commit + config: + messageFromSteps: + - update-image + path: ./out + uses: git-commit + - config: + path: ./out + targetBranch: stage/stage + uses: git-push + - config: + apps: + - name: bank-web-stage-frontend + sources: + - desiredCommitFromStep: commit + repoURL: https://github.com/holos-run/bank-of-holos.git + uses: argocd-update + requestedFreight: + - origin: + kind: Warehouse + name: frontend + sources: + direct: true +--- +apiVersion: kargo.akuity.io/v1alpha1 +kind: Stage +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: stages + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-stages + name: test-frontend + namespace: bank-security +spec: + promotionTemplate: + spec: + steps: + - config: + checkout: + - branch: main + path: ./src + - branch: stage/test + path: ./out + repoURL: https://github.com/holos-run/bank-of-holos.git + uses: git-clone + - config: + path: ./out + uses: git-clear + - as: update-image + config: + images: + - image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend + path: ./src/deploy/clusters/workload/projects/bank-web/components/test-frontend + uses: kustomize-set-image + - config: + outPath: ./out/deploy/clusters/workload/projects/bank-web/components/test-frontend/test-frontend.gen.yaml + path: ./src/deploy/clusters/workload/projects/bank-web/components/test-frontend + uses: kustomize-build + - as: commit + config: + messageFromSteps: + - update-image + path: ./out + uses: git-commit + - config: + path: ./out + targetBranch: stage/test + uses: git-push + - config: + apps: + - name: bank-web-test-frontend + sources: + - desiredCommitFromStep: commit + repoURL: https://github.com/holos-run/bank-of-holos.git + uses: argocd-update + requestedFreight: + - origin: + kind: Warehouse + name: frontend + sources: + direct: true +--- +apiVersion: kargo.akuity.io/v1alpha1 +kind: Warehouse +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: stages + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + argocd.argoproj.io/instance: bank-security-stages + name: frontend + namespace: bank-security +spec: + interval: 5m0s + subscriptions: + - image: + discoveryLimit: 5 + repoURL: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend + semverConstraint: ^v0.6.5 + strictSemvers: true diff --git a/deploy/clusters/workload/projects/test-bank-security/components/secrets/secrets.gen.yaml b/deploy/clusters/workload/projects/bank-security/components/test-secrets/test-secrets.gen.yaml similarity index 79% rename from deploy/clusters/workload/projects/test-bank-security/components/secrets/secrets.gen.yaml rename to deploy/clusters/workload/projects/bank-security/components/test-secrets/test-secrets.gen.yaml index bbdc49d1..6b09df37 100644 --- a/deploy/clusters/workload/projects/test-bank-security/components/secrets/secrets.gen.yaml +++ b/deploy/clusters/workload/projects/bank-security/components/test-secrets/test-secrets.gen.yaml @@ -3,12 +3,12 @@ kind: ServiceAccount metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: test-secrets app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets + argocd.argoproj.io/instance: bank-security-test-secrets name: jwt-key-writer namespace: test-bank-security --- @@ -17,12 +17,12 @@ kind: Role metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: test-secrets app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets + argocd.argoproj.io/instance: bank-security-test-secrets name: jwt-key-reader namespace: test-bank-security rules: @@ -40,12 +40,12 @@ kind: Role metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: test-secrets app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets + argocd.argoproj.io/instance: bank-security-test-secrets name: jwt-key-writer namespace: test-bank-security rules: @@ -63,12 +63,12 @@ kind: RoleBinding metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: test-secrets app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets + argocd.argoproj.io/instance: bank-security-test-secrets name: jwt-key-reader namespace: test-bank-security roleRef: @@ -88,12 +88,12 @@ kind: RoleBinding metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: test-secrets app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets + argocd.argoproj.io/instance: bank-security-test-secrets name: jwt-key-writer namespace: test-bank-security roleRef: @@ -145,12 +145,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: test-secrets app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets + argocd.argoproj.io/instance: bank-security-test-secrets name: jwt-key-writer namespace: test-bank-security --- @@ -159,12 +159,12 @@ kind: Job metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: test-secrets app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-secrets + argocd.argoproj.io/instance: bank-security-test-secrets name: jwt-key-writer namespace: test-bank-security spec: diff --git a/deploy/clusters/workload/projects/dev-bank-security/gitops/secrets.application.gen.yaml b/deploy/clusters/workload/projects/bank-security/gitops/dev-secrets.application.gen.yaml similarity index 64% rename from deploy/clusters/workload/projects/dev-bank-security/gitops/secrets.application.gen.yaml rename to deploy/clusters/workload/projects/bank-security/gitops/dev-secrets.application.gen.yaml index 90d5a052..e8d50f2b 100644 --- a/deploy/clusters/workload/projects/dev-bank-security/gitops/secrets.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-security/gitops/dev-secrets.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: dev-secrets app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - name: dev-bank-security-secrets + name: bank-security-dev-secrets namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: dev-bank-security + project: bank-security source: - path: deploy/clusters/workload/projects/dev-bank-security/components/secrets + path: deploy/clusters/workload/projects/bank-security/components/dev-secrets repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/dev-bank-security/gitops/namespaces.application.gen.yaml b/deploy/clusters/workload/projects/bank-security/gitops/namespaces.application.gen.yaml similarity index 63% rename from deploy/clusters/workload/projects/dev-bank-security/gitops/namespaces.application.gen.yaml rename to deploy/clusters/workload/projects/bank-security/gitops/namespaces.application.gen.yaml index 9226158e..b327548c 100644 --- a/deploy/clusters/workload/projects/dev-bank-security/gitops/namespaces.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-security/gitops/namespaces.application.gen.yaml @@ -4,17 +4,16 @@ metadata: labels: app.holos.run/cluster.name: workload app.holos.run/component.name: namespaces - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - name: dev-bank-security-namespaces + name: bank-security-namespaces namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: dev-bank-security + project: bank-security source: - path: deploy/clusters/workload/projects/dev-bank-security/components/namespaces + path: deploy/clusters/workload/projects/bank-security/components/namespaces repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/prod-bank-security/gitops/secrets.application.gen.yaml b/deploy/clusters/workload/projects/bank-security/gitops/prod-secrets.application.gen.yaml similarity index 63% rename from deploy/clusters/workload/projects/prod-bank-security/gitops/secrets.application.gen.yaml rename to deploy/clusters/workload/projects/bank-security/gitops/prod-secrets.application.gen.yaml index ee4773a0..eb24d86d 100644 --- a/deploy/clusters/workload/projects/prod-bank-security/gitops/secrets.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-security/gitops/prod-secrets.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: prod-secrets app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - name: prod-bank-security-secrets + name: bank-security-prod-secrets namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: prod-bank-security + project: bank-security source: - path: deploy/clusters/workload/projects/prod-bank-security/components/secrets + path: deploy/clusters/workload/projects/bank-security/components/prod-secrets repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-security/gitops/projects.application.gen.yaml b/deploy/clusters/workload/projects/bank-security/gitops/projects.application.gen.yaml new file mode 100644 index 00000000..b9d87367 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-security/gitops/projects.application.gen.yaml @@ -0,0 +1,19 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: projects + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + name: bank-security-projects + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-security + source: + path: deploy/clusters/workload/projects/bank-security/components/projects + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/stage-bank-security/gitops/secrets.application.gen.yaml b/deploy/clusters/workload/projects/bank-security/gitops/stage-secrets.application.gen.yaml similarity index 63% rename from deploy/clusters/workload/projects/stage-bank-security/gitops/secrets.application.gen.yaml rename to deploy/clusters/workload/projects/bank-security/gitops/stage-secrets.application.gen.yaml index 82dc6346..ea01f01f 100644 --- a/deploy/clusters/workload/projects/stage-bank-security/gitops/secrets.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-security/gitops/stage-secrets.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: stage-secrets app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - name: stage-bank-security-secrets + name: bank-security-stage-secrets namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: stage-bank-security + project: bank-security source: - path: deploy/clusters/workload/projects/stage-bank-security/components/secrets + path: deploy/clusters/workload/projects/bank-security/components/stage-secrets repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/bank-security/gitops/stages.application.gen.yaml b/deploy/clusters/workload/projects/bank-security/gitops/stages.application.gen.yaml new file mode 100644 index 00000000..2124f600 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-security/gitops/stages.application.gen.yaml @@ -0,0 +1,19 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + labels: + app.holos.run/cluster.name: workload + app.holos.run/component.name: stages + app.holos.run/project.name: bank-security + app.holos.run/stack.name: bank-of-holos + app.holos.run/team.name: security + name: bank-security-stages + namespace: argocd +spec: + destination: + server: https://kubernetes.default.svc + project: bank-security + source: + path: deploy/clusters/workload/projects/bank-security/components/stages + repoURL: https://github.com/holos-run/bank-of-holos.git + targetRevision: main diff --git a/deploy/clusters/workload/projects/test-bank-security/gitops/secrets.application.gen.yaml b/deploy/clusters/workload/projects/bank-security/gitops/test-secrets.application.gen.yaml similarity index 63% rename from deploy/clusters/workload/projects/test-bank-security/gitops/secrets.application.gen.yaml rename to deploy/clusters/workload/projects/bank-security/gitops/test-secrets.application.gen.yaml index 315aca55..71153d4c 100644 --- a/deploy/clusters/workload/projects/test-bank-security/gitops/secrets.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-security/gitops/test-secrets.application.gen.yaml @@ -3,18 +3,18 @@ kind: Application metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: secrets + app.holos.run/component.name: test-secrets app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security + app.holos.run/project.name: bank-security app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: security - name: test-bank-security-secrets + name: bank-security-test-secrets namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: test-bank-security + project: bank-security source: - path: deploy/clusters/workload/projects/test-bank-security/components/secrets + path: deploy/clusters/workload/projects/bank-security/components/test-secrets repoURL: https://github.com/holos-run/bank-of-holos.git targetRevision: main diff --git a/deploy/clusters/workload/projects/dev-bank-web/components/frontend/frontend.gen.yaml b/deploy/clusters/workload/projects/bank-web/components/dev-frontend/dev-frontend.gen.yaml similarity index 84% rename from deploy/clusters/workload/projects/dev-bank-web/components/frontend/frontend.gen.yaml rename to deploy/clusters/workload/projects/bank-web/components/dev-frontend/dev-frontend.gen.yaml index 5d2b04fa..0a97faba 100644 --- a/deploy/clusters/workload/projects/dev-bank-web/components/frontend/frontend.gen.yaml +++ b/deploy/clusters/workload/projects/bank-web/components/dev-frontend/dev-frontend.gen.yaml @@ -3,12 +3,12 @@ kind: ServiceAccount metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: dev-frontend app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend + argocd.argoproj.io/instance: bank-web-dev-frontend name: bank-of-holos namespace: dev-bank-frontend --- @@ -21,12 +21,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: dev-frontend app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend + argocd.argoproj.io/instance: bank-web-dev-frontend name: demo-data-config namespace: dev-bank-frontend --- @@ -38,12 +38,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: dev-frontend app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend + argocd.argoproj.io/instance: bank-web-dev-frontend name: environment-config namespace: dev-bank-frontend --- @@ -58,12 +58,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: dev-frontend app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend + argocd.argoproj.io/instance: bank-web-dev-frontend name: service-api-config namespace: dev-bank-frontend --- @@ -72,13 +72,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: dev-frontend app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-web-frontend + argocd.argoproj.io/instance: bank-web-dev-frontend environment: dev team: frontend tier: web @@ -101,13 +101,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: dev-frontend app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend application: bank-of-holos - argocd.argoproj.io/instance: dev-bank-web-frontend + argocd.argoproj.io/instance: bank-web-dev-frontend environment: dev team: frontend tier: web @@ -231,12 +231,12 @@ kind: ExternalSecret metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: dev-frontend app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend + argocd.argoproj.io/instance: bank-web-dev-frontend name: jwt-key namespace: dev-bank-frontend spec: @@ -255,12 +255,12 @@ kind: SecretStore metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: dev-frontend app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend + argocd.argoproj.io/instance: bank-web-dev-frontend name: dev-bank-security namespace: dev-bank-frontend spec: @@ -282,12 +282,12 @@ kind: ReferenceGrant metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: dev-frontend app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: dev-bank-web-frontend + argocd.argoproj.io/instance: bank-web-dev-frontend name: istio-ingress namespace: dev-bank-frontend spec: diff --git a/deploy/clusters/workload/projects/bank-web/components/dev-frontend/kustomization.yaml b/deploy/clusters/workload/projects/bank-web/components/dev-frontend/kustomization.yaml new file mode 100644 index 00000000..6c361ba2 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-web/components/dev-frontend/kustomization.yaml @@ -0,0 +1,2 @@ +resources: + - dev-frontend.gen.yaml diff --git a/deploy/clusters/workload/projects/bank-web/components/prod-frontend/kustomization.yaml b/deploy/clusters/workload/projects/bank-web/components/prod-frontend/kustomization.yaml new file mode 100644 index 00000000..7aae36ae --- /dev/null +++ b/deploy/clusters/workload/projects/bank-web/components/prod-frontend/kustomization.yaml @@ -0,0 +1,2 @@ +resources: + - prod-frontend.gen.yaml diff --git a/deploy/clusters/workload/projects/prod-bank-web/components/frontend/frontend.gen.yaml b/deploy/clusters/workload/projects/bank-web/components/prod-frontend/prod-frontend.gen.yaml similarity index 84% rename from deploy/clusters/workload/projects/prod-bank-web/components/frontend/frontend.gen.yaml rename to deploy/clusters/workload/projects/bank-web/components/prod-frontend/prod-frontend.gen.yaml index 14b3280d..bb3a1b8f 100644 --- a/deploy/clusters/workload/projects/prod-bank-web/components/frontend/frontend.gen.yaml +++ b/deploy/clusters/workload/projects/bank-web/components/prod-frontend/prod-frontend.gen.yaml @@ -3,12 +3,12 @@ kind: ServiceAccount metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: prod-frontend app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend + argocd.argoproj.io/instance: bank-web-prod-frontend name: bank-of-holos namespace: prod-bank-frontend --- @@ -21,12 +21,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: prod-frontend app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend + argocd.argoproj.io/instance: bank-web-prod-frontend name: demo-data-config namespace: prod-bank-frontend --- @@ -38,12 +38,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: prod-frontend app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend + argocd.argoproj.io/instance: bank-web-prod-frontend name: environment-config namespace: prod-bank-frontend --- @@ -58,12 +58,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: prod-frontend app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend + argocd.argoproj.io/instance: bank-web-prod-frontend name: service-api-config namespace: prod-bank-frontend --- @@ -72,13 +72,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: prod-frontend app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-web-frontend + argocd.argoproj.io/instance: bank-web-prod-frontend environment: prod team: frontend tier: web @@ -101,13 +101,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: prod-frontend app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend application: bank-of-holos - argocd.argoproj.io/instance: prod-bank-web-frontend + argocd.argoproj.io/instance: bank-web-prod-frontend environment: prod team: frontend tier: web @@ -231,12 +231,12 @@ kind: ExternalSecret metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: prod-frontend app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend + argocd.argoproj.io/instance: bank-web-prod-frontend name: jwt-key namespace: prod-bank-frontend spec: @@ -255,12 +255,12 @@ kind: SecretStore metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: prod-frontend app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend + argocd.argoproj.io/instance: bank-web-prod-frontend name: prod-bank-security namespace: prod-bank-frontend spec: @@ -282,12 +282,12 @@ kind: ReferenceGrant metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: prod-frontend app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: prod-bank-web-frontend + argocd.argoproj.io/instance: bank-web-prod-frontend name: istio-ingress namespace: prod-bank-frontend spec: diff --git a/deploy/clusters/workload/projects/bank-web/components/stage-frontend/kustomization.yaml b/deploy/clusters/workload/projects/bank-web/components/stage-frontend/kustomization.yaml new file mode 100644 index 00000000..4411b94a --- /dev/null +++ b/deploy/clusters/workload/projects/bank-web/components/stage-frontend/kustomization.yaml @@ -0,0 +1,2 @@ +resources: + - stage-frontend.gen.yaml diff --git a/deploy/clusters/workload/projects/stage-bank-web/components/frontend/frontend.gen.yaml b/deploy/clusters/workload/projects/bank-web/components/stage-frontend/stage-frontend.gen.yaml similarity index 84% rename from deploy/clusters/workload/projects/stage-bank-web/components/frontend/frontend.gen.yaml rename to deploy/clusters/workload/projects/bank-web/components/stage-frontend/stage-frontend.gen.yaml index e75d1889..83c61d4b 100644 --- a/deploy/clusters/workload/projects/stage-bank-web/components/frontend/frontend.gen.yaml +++ b/deploy/clusters/workload/projects/bank-web/components/stage-frontend/stage-frontend.gen.yaml @@ -3,12 +3,12 @@ kind: ServiceAccount metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: stage-frontend app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend + argocd.argoproj.io/instance: bank-web-stage-frontend name: bank-of-holos namespace: stage-bank-frontend --- @@ -21,12 +21,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: stage-frontend app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend + argocd.argoproj.io/instance: bank-web-stage-frontend name: demo-data-config namespace: stage-bank-frontend --- @@ -38,12 +38,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: stage-frontend app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend + argocd.argoproj.io/instance: bank-web-stage-frontend name: environment-config namespace: stage-bank-frontend --- @@ -58,12 +58,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: stage-frontend app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend + argocd.argoproj.io/instance: bank-web-stage-frontend name: service-api-config namespace: stage-bank-frontend --- @@ -72,13 +72,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: stage-frontend app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-web-frontend + argocd.argoproj.io/instance: bank-web-stage-frontend environment: stage team: frontend tier: web @@ -101,13 +101,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: stage-frontend app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend application: bank-of-holos - argocd.argoproj.io/instance: stage-bank-web-frontend + argocd.argoproj.io/instance: bank-web-stage-frontend environment: stage team: frontend tier: web @@ -231,12 +231,12 @@ kind: ExternalSecret metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: stage-frontend app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend + argocd.argoproj.io/instance: bank-web-stage-frontend name: jwt-key namespace: stage-bank-frontend spec: @@ -255,12 +255,12 @@ kind: SecretStore metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: stage-frontend app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend + argocd.argoproj.io/instance: bank-web-stage-frontend name: stage-bank-security namespace: stage-bank-frontend spec: @@ -282,12 +282,12 @@ kind: ReferenceGrant metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: stage-frontend app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: stage-bank-web-frontend + argocd.argoproj.io/instance: bank-web-stage-frontend name: istio-ingress namespace: stage-bank-frontend spec: diff --git a/deploy/clusters/workload/projects/bank-web/components/test-frontend/kustomization.yaml b/deploy/clusters/workload/projects/bank-web/components/test-frontend/kustomization.yaml new file mode 100644 index 00000000..85348da9 --- /dev/null +++ b/deploy/clusters/workload/projects/bank-web/components/test-frontend/kustomization.yaml @@ -0,0 +1,2 @@ +resources: + - test-frontend.gen.yaml diff --git a/deploy/clusters/workload/projects/test-bank-web/components/frontend/frontend.gen.yaml b/deploy/clusters/workload/projects/bank-web/components/test-frontend/test-frontend.gen.yaml similarity index 84% rename from deploy/clusters/workload/projects/test-bank-web/components/frontend/frontend.gen.yaml rename to deploy/clusters/workload/projects/bank-web/components/test-frontend/test-frontend.gen.yaml index 7ec38b81..0acacd05 100644 --- a/deploy/clusters/workload/projects/test-bank-web/components/frontend/frontend.gen.yaml +++ b/deploy/clusters/workload/projects/bank-web/components/test-frontend/test-frontend.gen.yaml @@ -3,12 +3,12 @@ kind: ServiceAccount metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: test-frontend app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend + argocd.argoproj.io/instance: bank-web-test-frontend name: bank-of-holos namespace: test-bank-frontend --- @@ -21,12 +21,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: test-frontend app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend + argocd.argoproj.io/instance: bank-web-test-frontend name: demo-data-config namespace: test-bank-frontend --- @@ -38,12 +38,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: test-frontend app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend + argocd.argoproj.io/instance: bank-web-test-frontend name: environment-config namespace: test-bank-frontend --- @@ -58,12 +58,12 @@ kind: ConfigMap metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: test-frontend app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend + argocd.argoproj.io/instance: bank-web-test-frontend name: service-api-config namespace: test-bank-frontend --- @@ -72,13 +72,13 @@ kind: Service metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: test-frontend app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-web-frontend + argocd.argoproj.io/instance: bank-web-test-frontend environment: test team: frontend tier: web @@ -101,13 +101,13 @@ kind: Deployment metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: test-frontend app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend application: bank-of-holos - argocd.argoproj.io/instance: test-bank-web-frontend + argocd.argoproj.io/instance: bank-web-test-frontend environment: test team: frontend tier: web @@ -231,12 +231,12 @@ kind: ExternalSecret metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: test-frontend app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend + argocd.argoproj.io/instance: bank-web-test-frontend name: jwt-key namespace: test-bank-frontend spec: @@ -255,12 +255,12 @@ kind: SecretStore metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: test-frontend app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend + argocd.argoproj.io/instance: bank-web-test-frontend name: test-bank-security namespace: test-bank-frontend spec: @@ -282,12 +282,12 @@ kind: ReferenceGrant metadata: labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: test-frontend app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - argocd.argoproj.io/instance: test-bank-web-frontend + argocd.argoproj.io/instance: bank-web-test-frontend name: istio-ingress namespace: test-bank-frontend spec: diff --git a/deploy/clusters/workload/projects/dev-bank-web/gitops/frontend.application.gen.yaml b/deploy/clusters/workload/projects/bank-web/gitops/dev-frontend.application.gen.yaml similarity index 54% rename from deploy/clusters/workload/projects/dev-bank-web/gitops/frontend.application.gen.yaml rename to deploy/clusters/workload/projects/bank-web/gitops/dev-frontend.application.gen.yaml index 35b52c0a..adf64970 100644 --- a/deploy/clusters/workload/projects/dev-bank-web/gitops/frontend.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-web/gitops/dev-frontend.application.gen.yaml @@ -1,20 +1,22 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: + annotations: + kargo.akuity.io/authorized-stage: bank-security:dev-frontend labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: dev-frontend app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - name: dev-bank-web-frontend + name: bank-web-dev-frontend namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: dev-bank-web + project: bank-web source: - path: deploy/clusters/workload/projects/dev-bank-web/components/frontend + path: deploy/clusters/workload/projects/bank-web/components/dev-frontend repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main + targetRevision: stage/dev diff --git a/deploy/clusters/workload/projects/prod-bank-web/gitops/frontend.application.gen.yaml b/deploy/clusters/workload/projects/bank-web/gitops/prod-frontend.application.gen.yaml similarity index 54% rename from deploy/clusters/workload/projects/prod-bank-web/gitops/frontend.application.gen.yaml rename to deploy/clusters/workload/projects/bank-web/gitops/prod-frontend.application.gen.yaml index f01aba41..85197e4a 100644 --- a/deploy/clusters/workload/projects/prod-bank-web/gitops/frontend.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-web/gitops/prod-frontend.application.gen.yaml @@ -1,20 +1,22 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: + annotations: + kargo.akuity.io/authorized-stage: bank-security:prod-frontend labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: prod-frontend app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - name: prod-bank-web-frontend + name: bank-web-prod-frontend namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: prod-bank-web + project: bank-web source: - path: deploy/clusters/workload/projects/prod-bank-web/components/frontend + path: deploy/clusters/workload/projects/bank-web/components/prod-frontend repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main + targetRevision: stage/prod diff --git a/deploy/clusters/workload/projects/stage-bank-web/gitops/frontend.application.gen.yaml b/deploy/clusters/workload/projects/bank-web/gitops/stage-frontend.application.gen.yaml similarity index 53% rename from deploy/clusters/workload/projects/stage-bank-web/gitops/frontend.application.gen.yaml rename to deploy/clusters/workload/projects/bank-web/gitops/stage-frontend.application.gen.yaml index 8cb59703..2352c8b2 100644 --- a/deploy/clusters/workload/projects/stage-bank-web/gitops/frontend.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-web/gitops/stage-frontend.application.gen.yaml @@ -1,20 +1,22 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: + annotations: + kargo.akuity.io/authorized-stage: bank-security:stage-frontend labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: stage-frontend app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - name: stage-bank-web-frontend + name: bank-web-stage-frontend namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: stage-bank-web + project: bank-web source: - path: deploy/clusters/workload/projects/stage-bank-web/components/frontend + path: deploy/clusters/workload/projects/bank-web/components/stage-frontend repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main + targetRevision: stage/stage diff --git a/deploy/clusters/workload/projects/test-bank-web/gitops/frontend.application.gen.yaml b/deploy/clusters/workload/projects/bank-web/gitops/test-frontend.application.gen.yaml similarity index 54% rename from deploy/clusters/workload/projects/test-bank-web/gitops/frontend.application.gen.yaml rename to deploy/clusters/workload/projects/bank-web/gitops/test-frontend.application.gen.yaml index 47089c76..23c0e13b 100644 --- a/deploy/clusters/workload/projects/test-bank-web/gitops/frontend.application.gen.yaml +++ b/deploy/clusters/workload/projects/bank-web/gitops/test-frontend.application.gen.yaml @@ -1,20 +1,22 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: + annotations: + kargo.akuity.io/authorized-stage: bank-security:test-frontend labels: app.holos.run/cluster.name: workload - app.holos.run/component.name: frontend + app.holos.run/component.name: test-frontend app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-web + app.holos.run/project.name: bank-web app.holos.run/stack.name: bank-of-holos app.holos.run/team.name: frontend - name: test-bank-web-frontend + name: bank-web-test-frontend namespace: argocd spec: destination: server: https://kubernetes.default.svc - project: test-bank-web + project: bank-web source: - path: deploy/clusters/workload/projects/test-bank-web/components/frontend + path: deploy/clusters/workload/projects/bank-web/components/test-frontend repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main + targetRevision: stage/test diff --git a/deploy/clusters/workload/projects/dev-bank-backend/gitops/ledger-writer.application.gen.yaml b/deploy/clusters/workload/projects/dev-bank-backend/gitops/ledger-writer.application.gen.yaml deleted file mode 100644 index 4d9a0e16..00000000 --- a/deploy/clusters/workload/projects/dev-bank-backend/gitops/ledger-writer.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: dev-bank-backend-ledger-writer - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-backend - source: - path: deploy/clusters/workload/projects/dev-bank-backend/components/ledger-writer - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/dev-bank-backend/gitops/transaction-history.application.gen.yaml b/deploy/clusters/workload/projects/dev-bank-backend/gitops/transaction-history.application.gen.yaml deleted file mode 100644 index 78d33f58..00000000 --- a/deploy/clusters/workload/projects/dev-bank-backend/gitops/transaction-history.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: dev-bank-backend-transaction-history - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-backend - source: - path: deploy/clusters/workload/projects/dev-bank-backend/components/transaction-history - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/dev-bank-backend/gitops/userservice.application.gen.yaml b/deploy/clusters/workload/projects/dev-bank-backend/gitops/userservice.application.gen.yaml deleted file mode 100644 index 17e5e7a4..00000000 --- a/deploy/clusters/workload/projects/dev-bank-backend/gitops/userservice.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: userservice - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: dev-bank-backend-userservice - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: dev-bank-backend - source: - path: deploy/clusters/workload/projects/dev-bank-backend/components/userservice - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/dev-bank-security/components/namespaces/namespaces.gen.yaml b/deploy/clusters/workload/projects/dev-bank-security/components/namespaces/namespaces.gen.yaml deleted file mode 100644 index 1aa6c7e4..00000000 --- a/deploy/clusters/workload/projects/dev-bank-security/components/namespaces/namespaces.gen.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-namespaces - kubernetes.io/metadata.name: dev-bank-backend - name: dev-bank-backend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-namespaces - kubernetes.io/metadata.name: dev-bank-frontend - name: dev-bank-frontend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: dev - app.holos.run/project.name: dev-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: dev-bank-security-namespaces - kubernetes.io/metadata.name: dev-bank-security - name: dev-bank-security diff --git a/deploy/clusters/workload/projects/network/components/httproutes/httproutes.gen.yaml b/deploy/clusters/workload/projects/network/components/httproutes/httproutes.gen.yaml index 4aff9256..7dfe98cb 100644 --- a/deploy/clusters/workload/projects/network/components/httproutes/httproutes.gen.yaml +++ b/deploy/clusters/workload/projects/network/components/httproutes/httproutes.gen.yaml @@ -131,7 +131,7 @@ spec: rules: - backendRefs: - name: frontend - namespace: stage-bank-frontend + namespace: test-bank-frontend port: 80 matches: - path: diff --git a/deploy/clusters/workload/projects/prod-bank-backend/gitops/ledger-writer.application.gen.yaml b/deploy/clusters/workload/projects/prod-bank-backend/gitops/ledger-writer.application.gen.yaml deleted file mode 100644 index 617258f1..00000000 --- a/deploy/clusters/workload/projects/prod-bank-backend/gitops/ledger-writer.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: prod-bank-backend-ledger-writer - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-backend - source: - path: deploy/clusters/workload/projects/prod-bank-backend/components/ledger-writer - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/prod-bank-backend/gitops/transaction-history.application.gen.yaml b/deploy/clusters/workload/projects/prod-bank-backend/gitops/transaction-history.application.gen.yaml deleted file mode 100644 index c4e11556..00000000 --- a/deploy/clusters/workload/projects/prod-bank-backend/gitops/transaction-history.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: prod-bank-backend-transaction-history - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-backend - source: - path: deploy/clusters/workload/projects/prod-bank-backend/components/transaction-history - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/prod-bank-backend/gitops/userservice.application.gen.yaml b/deploy/clusters/workload/projects/prod-bank-backend/gitops/userservice.application.gen.yaml deleted file mode 100644 index f7f50c13..00000000 --- a/deploy/clusters/workload/projects/prod-bank-backend/gitops/userservice.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: userservice - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: prod-bank-backend-userservice - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-backend - source: - path: deploy/clusters/workload/projects/prod-bank-backend/components/userservice - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/prod-bank-security/components/namespaces/namespaces.gen.yaml b/deploy/clusters/workload/projects/prod-bank-security/components/namespaces/namespaces.gen.yaml deleted file mode 100644 index 7241fccf..00000000 --- a/deploy/clusters/workload/projects/prod-bank-security/components/namespaces/namespaces.gen.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-namespaces - kubernetes.io/metadata.name: prod-bank-backend - name: prod-bank-backend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-namespaces - kubernetes.io/metadata.name: prod-bank-frontend - name: prod-bank-frontend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: prod-bank-security-namespaces - kubernetes.io/metadata.name: prod-bank-security - name: prod-bank-security diff --git a/deploy/clusters/workload/projects/prod-bank-security/gitops/namespaces.application.gen.yaml b/deploy/clusters/workload/projects/prod-bank-security/gitops/namespaces.application.gen.yaml deleted file mode 100644 index 8df21e9b..00000000 --- a/deploy/clusters/workload/projects/prod-bank-security/gitops/namespaces.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: prod - app.holos.run/project.name: prod-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - name: prod-bank-security-namespaces - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: prod-bank-security - source: - path: deploy/clusters/workload/projects/prod-bank-security/components/namespaces - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/stage-bank-backend/gitops/ledger-writer.application.gen.yaml b/deploy/clusters/workload/projects/stage-bank-backend/gitops/ledger-writer.application.gen.yaml deleted file mode 100644 index 8b61949a..00000000 --- a/deploy/clusters/workload/projects/stage-bank-backend/gitops/ledger-writer.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: stage-bank-backend-ledger-writer - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-backend - source: - path: deploy/clusters/workload/projects/stage-bank-backend/components/ledger-writer - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/stage-bank-backend/gitops/transaction-history.application.gen.yaml b/deploy/clusters/workload/projects/stage-bank-backend/gitops/transaction-history.application.gen.yaml deleted file mode 100644 index 20b86155..00000000 --- a/deploy/clusters/workload/projects/stage-bank-backend/gitops/transaction-history.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: stage-bank-backend-transaction-history - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-backend - source: - path: deploy/clusters/workload/projects/stage-bank-backend/components/transaction-history - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/stage-bank-backend/gitops/userservice.application.gen.yaml b/deploy/clusters/workload/projects/stage-bank-backend/gitops/userservice.application.gen.yaml deleted file mode 100644 index 08b6bfd3..00000000 --- a/deploy/clusters/workload/projects/stage-bank-backend/gitops/userservice.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: userservice - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: stage-bank-backend-userservice - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-backend - source: - path: deploy/clusters/workload/projects/stage-bank-backend/components/userservice - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/stage-bank-security/components/namespaces/namespaces.gen.yaml b/deploy/clusters/workload/projects/stage-bank-security/components/namespaces/namespaces.gen.yaml deleted file mode 100644 index 162ce1b9..00000000 --- a/deploy/clusters/workload/projects/stage-bank-security/components/namespaces/namespaces.gen.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-namespaces - kubernetes.io/metadata.name: stage-bank-backend - name: stage-bank-backend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-namespaces - kubernetes.io/metadata.name: stage-bank-frontend - name: stage-bank-frontend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: stage-bank-security-namespaces - kubernetes.io/metadata.name: stage-bank-security - name: stage-bank-security diff --git a/deploy/clusters/workload/projects/stage-bank-security/gitops/namespaces.application.gen.yaml b/deploy/clusters/workload/projects/stage-bank-security/gitops/namespaces.application.gen.yaml deleted file mode 100644 index 268ff05e..00000000 --- a/deploy/clusters/workload/projects/stage-bank-security/gitops/namespaces.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: stage - app.holos.run/project.name: stage-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - name: stage-bank-security-namespaces - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: stage-bank-security - source: - path: deploy/clusters/workload/projects/stage-bank-security/components/namespaces - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/test-bank-backend/gitops/ledger-writer.application.gen.yaml b/deploy/clusters/workload/projects/test-bank-backend/gitops/ledger-writer.application.gen.yaml deleted file mode 100644 index 5050464a..00000000 --- a/deploy/clusters/workload/projects/test-bank-backend/gitops/ledger-writer.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: ledger-writer - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: test-bank-backend-ledger-writer - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-backend - source: - path: deploy/clusters/workload/projects/test-bank-backend/components/ledger-writer - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/test-bank-backend/gitops/transaction-history.application.gen.yaml b/deploy/clusters/workload/projects/test-bank-backend/gitops/transaction-history.application.gen.yaml deleted file mode 100644 index 54cd9b05..00000000 --- a/deploy/clusters/workload/projects/test-bank-backend/gitops/transaction-history.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: transaction-history - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: test-bank-backend-transaction-history - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-backend - source: - path: deploy/clusters/workload/projects/test-bank-backend/components/transaction-history - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/test-bank-backend/gitops/userservice.application.gen.yaml b/deploy/clusters/workload/projects/test-bank-backend/gitops/userservice.application.gen.yaml deleted file mode 100644 index 05605b0f..00000000 --- a/deploy/clusters/workload/projects/test-bank-backend/gitops/userservice.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: userservice - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-backend - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: backend - name: test-bank-backend-userservice - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-backend - source: - path: deploy/clusters/workload/projects/test-bank-backend/components/userservice - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/deploy/clusters/workload/projects/test-bank-security/components/namespaces/namespaces.gen.yaml b/deploy/clusters/workload/projects/test-bank-security/components/namespaces/namespaces.gen.yaml deleted file mode 100644 index 22484e00..00000000 --- a/deploy/clusters/workload/projects/test-bank-security/components/namespaces/namespaces.gen.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-namespaces - kubernetes.io/metadata.name: test-bank-backend - name: test-bank-backend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-namespaces - kubernetes.io/metadata.name: test-bank-frontend - name: test-bank-frontend ---- -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - argocd.argoproj.io/instance: test-bank-security-namespaces - kubernetes.io/metadata.name: test-bank-security - name: test-bank-security diff --git a/deploy/clusters/workload/projects/test-bank-security/gitops/namespaces.application.gen.yaml b/deploy/clusters/workload/projects/test-bank-security/gitops/namespaces.application.gen.yaml deleted file mode 100644 index 18a78513..00000000 --- a/deploy/clusters/workload/projects/test-bank-security/gitops/namespaces.application.gen.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - labels: - app.holos.run/cluster.name: workload - app.holos.run/component.name: namespaces - app.holos.run/environment.name: test - app.holos.run/project.name: test-bank-security - app.holos.run/stack.name: bank-of-holos - app.holos.run/team.name: security - name: test-bank-security-namespaces - namespace: argocd -spec: - destination: - server: https://kubernetes.default.svc - project: test-bank-security - source: - path: deploy/clusters/workload/projects/test-bank-security/components/namespaces - repoURL: https://github.com/holos-run/bank-of-holos.git - targetRevision: main diff --git a/environments.schema.cue b/environments.schema.cue index a3264768..d17567a7 100644 --- a/environments.schema.cue +++ b/environments.schema.cue @@ -2,9 +2,9 @@ package holos #Environment: { name: string - tier: "prod" | "nonprod" - jurisdiction: "us" | "eu" | "uk" | "global" - state: "oregon" | "ohio" | "germany" | "netherlands" | "england" | "global" + tier: string | "prod" | *"nonprod" + jurisdiction: string | *"us" | "eu" | "uk" | "global" + state: string | *"oregon" | "ohio" | "germany" | "netherlands" | "england" | "global" // Prod environment names must be prefixed with prod for clarity. if tier == "prod" { diff --git a/kargo-values.cue b/kargo-values.cue index bf990011..5ede57e2 100644 --- a/kargo-values.cue +++ b/kargo-values.cue @@ -379,13 +379,14 @@ package holos //# @param controller.serviceAccount.iamRole Specifies the ARN of an AWS IAM role to be used by the controller in an IRSA-enabled EKS cluster. iamRole: "" //# @param controller.serviceAccount.clusterWideSecretReadingEnabled Specifies whether the controller's ServiceAccount should be granted read permissions to Secrets CLUSTER-WIDE in the Kargo control plane's cluster. Enabling this is highly discouraged and you do so at your own peril. When this is NOT enabled, the Kargo management controller will dynamically expand and contract the controller's permissions to read Secrets on a Project-by-Project basis. - clusterWideSecretReadingEnabled: false + clusterWideSecretReadingEnabled: true | *false } //# All settings relating to shared credentials (used across multiple kargo projects) globalCredentials: { //# @param controller.globalCredentials.namespaces List of namespaces to look for shared credentials. Note that as of v1.0.0, the Kargo controller does not have cluster-wide access to Secrets. The controller receives read-only permission for Secrets on a per-Project basis as Projects are created. If you designate some namespaces as homes for "global" credentials, you will need to manually grant the controller permission to read Secrets in those namespaces. - namespaces: []} + namespaces: [...string] + } gitClient: { //# @param controller.gitClient.name Specifies the name of the Kargo controller (used when authoring Git commits). name: "Kargo" diff --git a/kargo.cue b/kargo.cue index c7788f20..cb683813 100644 --- a/kargo.cue +++ b/kargo.cue @@ -1,6 +1,22 @@ @if(!NoKargo && !NoArgoRollouts && !NoArgoCD) package holos +import ( + project "kargo.akuity.io/project/v1alpha1" + warehouse "kargo.akuity.io/warehouse/v1alpha1" + stage "kargo.akuity.io/stage/v1alpha1" +) + +// Custom resource definitions. +#Resources: { + Project?: [_]: project.#Project & { + spec: {...} + } + Warehouse?: [_]: warehouse.#Warehouse + Stage?: [_]: stage.#Stage +} + +// Kargo config definition. #Kargo: { Namespace: string Values: {...} @@ -16,6 +32,13 @@ Kargo: #Kargo & { // Secret generated by the kargo-secrets holos component. api: secret: name: "admin-credentials" } + + // These values are specific to the k3d local demo environment and should be + // changed for production. + Values: { + controller: serviceAccount: clusterWideSecretReadingEnabled: true + controller: globalCredentials: namespaces: [Namespace] + } } // Register namespaces and components with the project. @@ -31,3 +54,45 @@ Projects: { // Register the HTTPRoute to the backend Service HTTPRoutes: kargo: _backendRefs: "kargo-api": namespace: Kargo.Namespace + +#KargoProjectBuilder: #ProjectBuilder & { + name: _ + namespaces: _ + team: _ + environment?: _ + stack?: _ + let NAME = name + + clusters: _ + + _kargo_cluster_projects: {[CLUSTER=string]: [NAME=string]: metadata: name: NAME} + + for CLUSTER in clusters { + if len(_kargo_cluster_projects[CLUSTER.name]) > 0 { + let PROJECT_COMPONENT = #SharedComponent & { + _project: NAME + _cluster: CLUSTER.name + _component: "projects" + _team: team + if stack != _|_ { + _stack: stack + } + if environment != _|_ { + _environment: environment + } + } + components: (PROJECT_COMPONENT.name): PROJECT_COMPONENT.component + } + + if len(namespaces) > 0 { + for NS in namespaces { + if NS.metadata.labels["kargo.akuity.io/project"] != _|_ { + if NS.metadata.labels["kargo.akuity.io/project"] == "true" { + _kargo_cluster_projects: (CLUSTER.name): (NS.metadata.name): metadata: name: NS.metadata.name + } + } + } + } + } +} +projects: {[CLUSTER=string]: [NAME=string]: metadata: name: NAME} diff --git a/projects.schema.cue b/projects.schema.cue index 5068da1d..b5f669b1 100644 --- a/projects.schema.cue +++ b/projects.schema.cue @@ -6,10 +6,12 @@ import "github.com/holos-run/holos/api/core/v1alpha5:core" // #Project represents a security boundary. #Project: { - name: string - team: string + name: string + team: string + // TODO: deprecate the singular environment, use environments instead. environment?: string stack?: string + environments: #Environments namespaces: #Namespaces components: #Components clusters: #Clusters diff --git a/projects/bank-backend/components/bank-accounts-db/bank-accounts-db.cue b/projects/bank-backend/components/bank-accounts-db/bank-accounts-db.cue index b89af43d..9dd6a395 100644 --- a/projects/bank-backend/components/bank-accounts-db/bank-accounts-db.cue +++ b/projects/bank-backend/components/bank-accounts-db/bank-accounts-db.cue @@ -8,7 +8,7 @@ let BackendNamespace = BankOfHolos.configuration.environments[EnvironmentName].b let CommonLabels = { application: BankName - environment: "development" + environment: EnvironmentName team: "accounts" tier: "db" } diff --git a/projects/bank-frontend/components/bank-frontend/dev/kustomization.yaml b/projects/bank-frontend/components/bank-frontend/dev/kustomization.yaml new file mode 100644 index 00000000..61d1386d --- /dev/null +++ b/projects/bank-frontend/components/bank-frontend/dev/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +images: +- name: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend + newTag: v0.6.5 diff --git a/projects/bank-frontend/components/bank-frontend/kargo.cue b/projects/bank-frontend/components/bank-frontend/kargo.cue new file mode 100644 index 00000000..13f8237c --- /dev/null +++ b/projects/bank-frontend/components/bank-frontend/kargo.cue @@ -0,0 +1,28 @@ +@if(!NoKargo && !NoArgoRollouts && !NoArgoCD) +package holos + +import ks "sigs.k8s.io/kustomize/api/types" + +Component: { + Name: _ + OutputBaseDir: _ + _OutPath: "\(OutputBaseDir)/components/\(Name)" + + _ArgoApplication: { + // metadata: annotations: "kargo.akuity.io/authorized-stage": "\(ProjectName):\(Name)" + metadata: annotations: "kargo.akuity.io/authorized-stage": "bank-security:\(Name)" + spec: source: targetRevision: "stage/\(EnvironmentName)" + } + + // Write a kustomization.yaml to the deploy directory for Kargo to edit. + Artifacts: kargoKustomization: { + artifact: "\(_OutPath)/kustomization.yaml" + generators: [{ + kind: "Resources" + output: artifact + resources: Kustomization: kargo: ks.#Kustomization & { + resources: ["\(Name).gen.yaml"] + } + }] + } +} diff --git a/projects/bank-frontend/components/bank-frontend/prod/kustomization.yaml b/projects/bank-frontend/components/bank-frontend/prod/kustomization.yaml new file mode 100644 index 00000000..61d1386d --- /dev/null +++ b/projects/bank-frontend/components/bank-frontend/prod/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +images: +- name: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend + newTag: v0.6.5 diff --git a/projects/bank-frontend/components/bank-frontend/stage/kustomization.yaml b/projects/bank-frontend/components/bank-frontend/stage/kustomization.yaml new file mode 100644 index 00000000..61d1386d --- /dev/null +++ b/projects/bank-frontend/components/bank-frontend/stage/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +images: +- name: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend + newTag: v0.6.5 diff --git a/projects/bank-frontend/components/bank-frontend/test/kustomization.yaml b/projects/bank-frontend/components/bank-frontend/test/kustomization.yaml new file mode 100644 index 00000000..61d1386d --- /dev/null +++ b/projects/bank-frontend/components/bank-frontend/test/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +images: +- name: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend + newTag: v0.6.5 diff --git a/projects/bank-security/components/stages/stages.cue b/projects/bank-security/components/stages/stages.cue new file mode 100644 index 00000000..cc543904 --- /dev/null +++ b/projects/bank-security/components/stages/stages.cue @@ -0,0 +1,117 @@ +@if(!NoKargo && !NoArgoRollouts && !NoArgoCD) +package holos + +let IMAGE = "us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend" + +holos: Component.BuildPlan + +Component: #Kubernetes & { + Name: _ + OutputBaseDir: _ + _OutPath: "\(OutputBaseDir)/components/\(Name)" + + Resources: { + [_]: [_]: metadata: namespace: ProjectName + + Warehouse: frontend: { + spec: { + subscriptions: [{ + image: { + repoURL: IMAGE + semverConstraint: "^v0.6.5" + discoveryLimit: 5 + } + }] + } + } + + for ENV in BankOfHolos.Environments { + // TODO: Ideally this would be unified with the bank-frontend component + // parameters. + let FrontendName = "\(ENV.name)-frontend" + let OutPath = "deploy/clusters/\(ClusterName)/projects/bank-web/components/\(FrontendName)" + + Stage: (FrontendName): { + spec: { + requestedFreight: [{ + origin: { + kind: "Warehouse" + name: Warehouse.frontend.metadata.name + } + sources: direct: true + }] + promotionTemplate: spec: { + let SRC = "./src" + let OUT = "./out" + steps: [ + { + uses: "git-clone" + config: { + repoURL: Organization.RepoURL + checkout: [ + { + branch: "main" + path: SRC + }, + { + branch: "stage/\(ENV.name)" + path: OUT + }, + ] + } + }, + { + uses: "git-clear" + config: path: OUT + }, + { + uses: "kustomize-set-image" + as: "update-image" + config: { + // TODO: Pick up replacing component name in the path with the + // path to the frontend artifact. + path: "\(SRC)/\(OutPath)" + images: [{image: IMAGE}] + } + }, + { + uses: "kustomize-build" + config: { + path: "\(SRC)/\(OutPath)" + outPath: "\(OUT)/\(OutPath)/\(FrontendName).gen.yaml" + } + }, + { + uses: "git-commit" + as: "commit" + config: { + path: OUT + messageFromSteps: ["update-image"] + } + }, + { + uses: "git-push" + config: { + path: OUT + targetBranch: "stage/\(ENV.name)" + } + }, + { + uses: "argocd-update" + config: { + apps: [{ + name: "bank-web-\(FrontendName)" + sources: [{ + repoURL: Organization.RepoURL + desiredCommitFromStep: "commit" + }] + }] + } + }, + ] + } + } + } + } + } +} diff --git a/scripts/apply b/scripts/apply index b6204d30..8ddd6163 100755 --- a/scripts/apply +++ b/scripts/apply @@ -12,7 +12,7 @@ apply() { find "deploy/clusters/${cluster}" -name "${file}" \ | xargs -S1024 -I% -n1 bash -c 'test -s % && echo % || true' \ - | xargs -S1024 -I% -n1 kubectl apply --server-side=true -f % + | xargs -S1024 -I% -n1 kubectl apply --force-conflicts --server-side=true -f % } applyDir() { @@ -20,7 +20,7 @@ applyDir() { local cluster="${2:-workload}" find "deploy/clusters/${cluster}" -type d -name "${dir}" \ - | xargs -I% -n1 kubectl apply --server-side=true -f % + | xargs -I% -n1 kubectl apply --force-conflicts --server-side=true -f % } # Namespaces first @@ -51,21 +51,23 @@ fi apply argocd apply app-projects apply rollouts + # Kargo kubectl wait --for=condition=Available deployment/external-secrets-webhook -n external-secrets --timeout=300s apply kargo-secrets -apply kargo +apply kargo # includes crds # Istio apply istio-base apply istiod apply istio-cni +apply istio-ztunnel +apply istio-gateway + if ! kubectl wait --for=condition=Ready pod -l k8s-app=istio-cni-node --timeout=300s -n istio-system; then echo 'istio-cni-node not ready' >&2 exit 1 fi -apply istio-ztunnel -apply istio-gateway # Routes should be accepted, but all backends aren't valid yet. apply httproutes @@ -74,24 +76,47 @@ applyDir gitops ## Bank of Holos # Generate the private-key in-cluster. -apply "secrets" +for env in dev test stage prod; do + apply "${env}-secrets" +done for env in dev test stage prod; do kubectl wait --for=condition=complete job.batch/jwt-key-writer -n "${env}-bank-security" --timeout=300s done -# Bank Config -apply config -# Bank Databases -apply accounts-db -apply ledger-db - -# Bank Backend Services -apply contacts -apply balance-reader -apply userservice -apply ledger-writer -apply transaction-history - -# Bank Web Frontend -apply frontend + +for env in dev test stage prod; do + # Bank Config + apply "${env}-bank-backend-config" + + # Bank Databases + apply "${env}-accounts-db" + apply "${env}-ledger-db" + + # Bank Backend Services + apply "${env}-contacts" + apply "${env}-balance-reader" + apply "${env}-userservice" + apply "${env}-ledger-writer" + apply "${env}-transaction-history" + + # Bank Web Frontend + apply "${env}-frontend" +done + +# Kargo Projects. They need the webhook but we don't need them until later. +kubectl wait --for=condition=Available deployment/kargo-webhooks-server -n kargo --timeout=300s +apply projects +apply stages + +set +x +echo +echo "httproutes:" +echo " - https://kargo.holos.localhost" +echo " - https://argocd.holos.localhost" +echo " - https://bank.holos.localhost" +echo +echo "Kargo admin password:" +echo " run: kubectl get secret -n kargo admin-credentials -o json | jq --exit-status -r '.data.password | @base64d'" +echo +set -x exit 0 diff --git a/scripts/full-reset b/scripts/full-reset new file mode 100755 index 00000000..bb8efc87 --- /dev/null +++ b/scripts/full-reset @@ -0,0 +1,17 @@ +#! /bin/bash + +# Reset the cluster as described at +# https://holos.run/docs/guides/local-cluster/#reset-the-cluster + +# cd to the repository root +TOPLEVEL="$(cd $(dirname "$0") && git rev-parse --show-toplevel)" +cd "$TOPLEVEL" + +set -xeuo pipefail + +git rm -rf deploy +rm -rf deploy +time holos render platform -t $USER +git add deploy +./scripts/reset-cluster +./scripts/apply diff --git a/scripts/reset-cluster b/scripts/reset-cluster index 1086a294..bc36ebc0 100755 --- a/scripts/reset-cluster +++ b/scripts/reset-cluster @@ -16,5 +16,10 @@ k3d cluster create workload \ --port "443:443@loadbalancer" \ --k3s-arg "--disable=traefik@server:0" -kubectl apply --server-side=true -f "$(mkcert -CAROOT)/namespace.yaml" -kubectl apply --server-side=true -n cert-manager -f "$(mkcert -CAROOT)/local-ca.yaml" +CAROOT="$(mkcert -CAROOT)" +kubectl apply --server-side=true -f "${CAROOT}/namespace.yaml" +kubectl apply --server-side=true -n cert-manager -f "${CAROOT}/local-ca.yaml" +# Kargo secret +if [[ -f "${CAROOT}/kargo.yaml" ]]; then + kubectl apply --server-side=true -f "${CAROOT}/kargo.yaml" --force-conflicts +fi