Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions demo/environment_promotion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# notes on environment promotion

```yaml
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: example-app-set
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "4"
spec:
# enable go templating
goTemplate: true

# this generator allows us to values from an external k8s secret
generators:

# local environment
- clusters:
selector:
matchLabels:
environment: "jesse-local"
# values to be templated into the Argo CD application
values:
# gets updated on push to main
version: 0.2.0
namespace: test

# dev environment
- clusters:
selector:
matchLabels:
environment: "dev"
# values to be templated into the Argo CD application
values:
# gets updated on push to main
version: 0.1.0
namespace: main

# prod environment
- clusters:
selector:
matchLabels:
environment: "prod"
# values to be templated into the Argo CD application
values:
# gets updated after user clicks approve button after main is successfully rolled out
version: 0.1.0
namespace: main

template:
metadata:
name: example-web-app

spec:
project: example

# where the app is going
destination:
server: "{{ .server }}"
namespace: example

# reconciliation policy
syncPolicy:
syncOptions:
- ApplyOutOfSyncOnly=true
automated:
prune: true
selfHeal: true
# where the is coming from
source:
repoURL: https://small-hack.github.io/example-chart
targetRevision: "{{ .values.version }}"
chart: example
helm:
releaseName: "my-app-{{ .metadata.labels.environment }}"
```
23 changes: 17 additions & 6 deletions mastodon/small-hack/spacechalk_theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
--textPageBold: #7aa2f7;
--textPageMuted: #f6f76a;

--bgHead: #323232;
--bgHead: #292938;
--textHead: #5cc9fd;
--accent: #fdcd36;
--accentText: #ffd147;
Expand Down Expand Up @@ -91,6 +91,7 @@
transform: scale(2);
transition: all 0.2s ease;
position: absolute;
background-color: var(--bg);
}

/*------------------------------------------------------------------------------
Expand Down Expand Up @@ -132,6 +133,16 @@
color: var(--textBold) !important;
}

/*------------------------------------------
* profile headers should be purple
--------------------------------------------*/

.account__header__bio .account__header__fields dt {
color: #927bff !important;
text-transform: uppercase;
width: auto;
}

/*------------------------------------------
*  followers icon should always be yellow
--------------------------------------------*/
Expand All @@ -148,9 +159,9 @@
color: #f289f9 !important;
}

/*-----------------------------------------
* 󰗊 translate icon should always be white
------------------------------------------*/
/*------------------------------------
* 󰗊 translate should always be white
--------------------------------------*/
.dropdown-button .icon-undefined {
color: var(--text) !important;
}
Expand All @@ -170,7 +181,7 @@
}

/*---------------------------------------------
* compose new toot form and search bar
* compose form for new toot and search bar
-----------------------------------------------*/
.autosuggest-textarea__textarea::placeholder, .search__input::placeholder {
color: var(--textPageBold) !important;
Expand All @@ -180,7 +191,7 @@
* make the profile banner a decent size
* -----------------------------------------*/
.account__header__image {
height: 250px;
height: 225px;
}

.account__header__bar {
Expand Down