@@ -56,91 +56,88 @@ Follow these steps to install a minimal working configuration of Burrito on a Ki
56
56
- A datastore running with mock storage (in-memory)
57
57
- A ` TerraformRepository ` and an associated ` TerraformLayer ` resource in the ` burrito-project ` namespace, pointing to the [ padok-team/burrito-examples] ( https://github.com/padok-team/burrito-examples ) repository
58
58
59
- ** Before starting, check that your local Kind cluster is running and that your context is set to target this cluster* *
59
+ * Before starting, check that your local Kind cluster is running and that your context is set to target this cluster*
60
60
61
61
1 . ** Install cert-manager on your cluster:**
62
-
63
- ``` bash
64
- helm repo add bitnami https://charts.bitnami.com/bitnami
65
- helm upgrade --install -n cert-manager --create-namespace cert-manager bitnami/cert-manager --set installCRDs=true
66
- ```
67
-
62
+ ``` bash
63
+ helm repo add bitnami https://charts.bitnami.com/bitnami
64
+ helm upgrade --install -n cert-manager --create-namespace cert-manager bitnami/cert-manager --set installCRDs=true
65
+ ```
68
66
2 . ** Fork and clone this repository.**
69
67
70
68
3 . ** Run the following command to build a local image of Burrito, load it into your Kind cluster, and install Burrito with development Helm values:**
71
-
72
- ``` bash
73
- make upgrade-dev-kind
74
- ```
69
+
70
+ ``` bash
71
+ make upgrade-dev-kind
72
+ ```
75
73
76
74
4. ** Check that Burrito is running in the ` burrito-system` namespace:**
75
+ ` ` ` bash
76
+ kubectl get pods -n burrito-system
77
+ ` ` `
77
78
78
- ``` bash
79
- kubectl get pods -n burrito-system
80
- ```
81
-
82
- The output should be similar to:
79
+ The output should be similar to:
83
80
84
- ```
85
- NAME READY STATUS RESTARTS AGE
86
- burrito-controllers-7657b7455-2ldtd 1/1 Running 0 5m32s
87
- burrito-datastore-5967f46497-tfzgg 1/1 Running 0 5m32s
88
- burrito-server-5b6fb78949-ngcnt 1/1 Running 0 5m32s
89
- ```
81
+ ` ` ` bash
82
+ NAME READY STATUS RESTARTS AGE
83
+ burrito-controllers-7657b7455-2ldtd 1/1 Running 0 5m32s
84
+ burrito-datastore-5967f46497-tfzgg 1/1 Running 0 5m32s
85
+ burrito-server-5b6fb78949-ngcnt 1/1 Running 0 5m32s
86
+ ` ` `
90
87
91
88
5. ** Create layers and repository resources:**
92
89
93
- Create a ` dev ` directory in ` deploy/charts/burrito/templates/ ` and add a ` dev.yaml ` manifest with development resources:
94
-
95
- ``` yaml
96
- apiVersion : config.terraform.padok.cloud/v1alpha1
97
- kind : TerraformLayer
98
- metadata :
99
- name : my-layer
100
- namespace : burrito-project
101
- spec :
102
- branch : main
103
- path : terraform/
104
- repository :
105
- name : my-repository
106
- namespace : burrito-project
107
- ---
108
- apiVersion : config.terraform.padok.cloud/v1alpha1
109
- kind : TerraformRepository
110
- metadata :
111
- name : my-repository
112
- namespace : burrito-project
113
- spec :
114
- repository :
115
- url : https://github.com/padok-team/burrito-examples
116
- remediationStrategy :
117
- autoApply : true
118
- terraform :
119
- enabled : true
120
- opentofu :
121
- enabled : false
122
- terragrunt :
123
- enabled : false
124
- ` ` `
90
+ Create a ` dev` directory in ` deploy/charts/burrito/templates/` and add a ` dev.yaml` manifest with development resources:
91
+
92
+ ` ` ` yaml
93
+ apiVersion: config.terraform.padok.cloud/v1alpha1
94
+ kind: TerraformLayer
95
+ metadata:
96
+ name: my-layer
97
+ namespace: burrito-project
98
+ spec:
99
+ branch: main
100
+ path: terraform/
101
+ repository:
102
+ name: my-repository
103
+ namespace: burrito-project
104
+ ---
105
+ apiVersion: config.terraform.padok.cloud/v1alpha1
106
+ kind: TerraformRepository
107
+ metadata:
108
+ name: my-repository
109
+ namespace: burrito-project
110
+ spec:
111
+ repository:
112
+ url: https://github.com/padok-team/burrito-examples
113
+ remediationStrategy:
114
+ autoApply: true
115
+ terraform:
116
+ enabled: true
117
+ opentofu:
118
+ enabled: false
119
+ terragrunt:
120
+ enabled: false
121
+ ` ` `
125
122
126
123
6. ** Refresh your Helm configuration:**
127
124
128
- ` ` ` bash
129
- make upgrade-dev-helm
130
- ```
125
+ ` ` ` bash
126
+ make upgrade-dev-helm
127
+ ` ` `
131
128
132
129
7. ** Check that a runner pod is created for the newly created layer:**
133
130
134
- ``` bash
135
- kubectl get pods -n burrito-project
136
- ```
131
+ ` ` ` bash
132
+ kubectl get pods -n burrito-project
133
+ ` ` `
137
134
138
- The output should be similar to:
135
+ The output should be similar to:
139
136
140
- ```
141
- NAME READY STATUS RESTARTS AGE
142
- my-layer-apply-gxjhd 0/1 Completed 0 2m36s
143
- ```
137
+ ```
138
+ NAME READY STATUS RESTARTS AGE
139
+ my-layer-apply-gxjhd 0/1 Completed 0 2m36s
140
+ ```
144
141
145
142
# ## Refresh Commands
146
143
0 commit comments