Skip to content

Commit 0c944b1

Browse files
committed
*: rename sa.yaml to service_account.yaml
1 parent 120ec75 commit 0c944b1

File tree

12 files changed

+17
-17
lines changed

12 files changed

+17
-17
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ $ docker push quay.io/example/app-operator
7777
$ sed -i 's|REPLACE_IMAGE|quay.io/example/app-operator|g' deploy/operator.yaml
7878

7979
# Setup Service Account
80-
$ kubectl create -f deploy/sa.yaml
80+
$ kubectl create -f deploy/service_account.yaml
8181
# Setup RBAC
8282
$ kubectl create -f deploy/role.yaml
8383
$ kubectl create -f deploy/role_binding.yaml
@@ -100,7 +100,7 @@ $ kubectl delete -f deploy/app_v1alpha1_appservice_cr.yaml
100100
$ kubectl delete -f deploy/operator.yaml
101101
$ kubectl delete -f deploy/role.yaml
102102
$ kubectl delete -f deploy/role_binding.yaml
103-
$ kubectl delete -f deploy/sa.yaml
103+
$ kubectl delete -f deploy/service_account.yaml
104104
$ kubectl delete -f deploy/crds/app_v1alpha1_appservice_crd.yaml
105105
```
106106

commands/operator-sdk/cmd/test/local.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ func testLocalFunc(cmd *cobra.Command, args []string) {
6363
if len(args) != 1 {
6464
log.Fatalf("operator-sdk test local requires exactly 1 argument")
6565
}
66-
// if no namespaced manifest path is given, combine deploy/sa.yaml, deploy/role.yaml, deploy/role_binding.yaml and deploy/operator.yaml
66+
// if no namespaced manifest path is given, combine deploy/service_account.yaml, deploy/role.yaml, deploy/role_binding.yaml and deploy/operator.yaml
6767
if tlConfig.namespacedManPath == "" {
6868
err := os.MkdirAll("deploy/test", os.FileMode(cmdutil.DefaultDirFileMode))
6969
if err != nil {
7070
log.Fatalf("could not create deploy/test: %v", err)
7171
}
7272
tlConfig.namespacedManPath = "deploy/test/namespace-manifests.yaml"
7373

74-
sa, err := ioutil.ReadFile("deploy/sa.yaml")
74+
sa, err := ioutil.ReadFile("deploy/service_account.yaml")
7575
if err != nil {
7676
log.Fatalf("could not find sa manifest: %v", err)
7777
}

doc/ansible/user-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ $ sed -i 's|REPLACE_IMAGE|quay.io/example/memcached-operator:v0.0.1|g' deploy/op
207207
Deploy the memcached-operator:
208208

209209
```sh
210-
$ kubectl create -f deploy/sa.yaml
210+
$ kubectl create -f deploy/service_account.yaml
211211
$ kubectl create -f deploy/role.yaml
212212
$ kubectl create -f deploy/role_binding.yaml
213213
$ kubectl create -f deploy/operator.yaml
@@ -327,7 +327,7 @@ $ kubectl delete -f deploy/crds/cache_v1alpha1_memcached_cr.yaml
327327
$ kubectl delete -f deploy/operator.yaml
328328
$ kubectl delete -f deploy/role_binding.yaml
329329
$ kubectl delete -f deploy/role.yaml
330-
$ kubectl delete -f deploy/sa.yaml
330+
$ kubectl delete -f deploy/service_account.yaml
331331
$ kubectl delete -f deploy/crds/cache_v1alpha1_memcached_cr.yaml
332332
```
333333

doc/sdk-cli-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Runs the tests locally
199199
##### Flags
200200
* `--kubeconfig` string - location of kubeconfig for kubernetes cluster (default "~/.kube/config")
201201
* `--global-manifest` string - path to manifest for global resources (default "deploy/crd.yaml)
202-
* `--namespaced-manifest` string - path to manifest for per-test, namespaced resources (default: combines deploy/sa.yaml, deploy/rbac.yaml, and deploy/operator.yaml)
202+
* `--namespaced-manifest` string - path to manifest for per-test, namespaced resources (default: combines deploy/service_account.yaml, deploy/rbac.yaml, and deploy/operator.yaml)
203203
* `--namespace` string - if non-empty, single namespace to run tests in (e.g. "operator-test") (default: "")
204204
* `--go-test-flags` string - extra arguments to pass to `go test` (e.g. -f "-v -parallel=2")
205205
* `-h, --help` - help for local

doc/test-framework/writing-e2e-tests.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ functions will automatically be run since they were deferred when the TestCtx wa
224224

225225
To make running the tests simpler, the `operator-sdk` CLI tool has a `test` subcommand that can configure
226226
default test settings, such as locations of your global resource manifest file (by default
227-
`deploy/crd.yaml`) and your namespaced resource manifest file (by default `deploy/sa.yaml` concatenated with
227+
`deploy/crd.yaml`) and your namespaced resource manifest file (by default `deploy/service_account.yaml` concatenated with
228228
`deploy/rbac.yaml` and `deploy/operator.yaml`), and allows the user to configure runtime options. There are 2 ways to use the
229229
subcommand: local and cluster.
230230
### Local
@@ -249,8 +249,8 @@ in [MainEntry][main-entry-link] are declared, the tests will run correctly. Runn
249249
will result in undefined behavior. This is an example `go test` equivalent to the `operator-sdk test local` example above:
250250

251251
```shell
252-
# Combine sa, rbac, operator manifest into namespaced manifest
253-
$ cp deploy/sa.yaml deploy/namespace-init.yaml
252+
# Combine service_account, rbac, operator manifest into namespaced manifest
253+
$ cp deploy/service_account.yaml deploy/namespace-init.yaml
254254
$ echo -e "\n---\n" >> deploy/namespace-init.yaml
255255
$ cat deploy/rbac.yaml >> deploy/namespace-init.yaml
256256
$ echo -e "\n---\n" >> deploy/namespace-init.yaml
@@ -279,7 +279,7 @@ and a namespace with proper rbac configured:
279279
```shell
280280
$ kubectl create -f deploy/crds/cache_v1alpha1_memcached_crd.yaml
281281
$ kubectl create namespace memcached-test
282-
$ kubectl create -f deploy/sa.yaml -n memcached-test
282+
$ kubectl create -f deploy/service_account.yaml -n memcached-test
283283
$ kubectl create -f deploy/role.yaml -n memcached-test
284284
$ kubectl create -f deploy/role_binding.yaml -n memcached-test
285285
```

doc/user-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ The Deployment manifest is generated at `deploy/operator.yaml`. Be sure to updat
185185
Setup RBAC and deploy the memcached-operator:
186186

187187
```sh
188-
$ kubectl create -f deploy/sa.yaml
188+
$ kubectl create -f deploy/service_account.yaml
189189
$ kubectl create -f deploy/role.yaml
190190
$ kubectl create -f deploy/role_binding.yaml
191191
$ kubectl create -f deploy/operator.yaml
@@ -313,7 +313,7 @@ $ kubectl delete -f deploy/crds/cache_v1alpha1_memcached_cr.yaml
313313
$ kubectl delete -f deploy/operator.yaml
314314
$ kubectl delete -f deploy/role_binding.yaml
315315
$ kubectl delete -f deploy/role.yaml
316-
$ kubectl delete -f deploy/sa.yaml
316+
$ kubectl delete -f deploy/service_account.yaml
317317
```
318318

319319
## Advanced Topics

pkg/scaffold/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const (
4848
versionFile = "version.go"
4949
docFile = "doc.go"
5050
registerFile = "register.go"
51-
serviceAccountYamlFile = "sa.yaml"
51+
serviceAccountYamlFile = "service_account.yaml"
5252
roleYamlFile = "role.yaml"
5353
roleBindingYamlFile = "role_binding.yaml"
5454
operatorYamlFile = "operator.yaml"
File renamed without changes.
File renamed without changes.

test/e2e/memcached_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ func MemcachedCluster(t *testing.T) {
320320
}
321321

322322
// create sa
323-
saYAML, err := ioutil.ReadFile("deploy/sa.yaml")
323+
saYAML, err := ioutil.ReadFile("deploy/service_account.yaml")
324324
if err != nil {
325325
t.Fatal(err)
326326
}
@@ -383,7 +383,7 @@ func MemcachedClusterTest(t *testing.T) {
383383
defer ctx.Cleanup(t)
384384

385385
// create sa
386-
saYAML, err := ioutil.ReadFile("deploy/sa.yaml")
386+
saYAML, err := ioutil.ReadFile("deploy/service_account.yaml")
387387
if err != nil {
388388
t.Fatal(err)
389389
}

test/test-ansible.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ sed -i "s|REPLACE_IMAGE|$DEST_IMAGE|g" deploy/operator.yaml
2727
sed -i 's|Always|Never|g' deploy/operator.yaml
2828

2929
# deploy the operator
30-
kubectl create -f deploy/sa.yaml
30+
kubectl create -f deploy/service_account.yaml
3131
kubectl create -f deploy/role.yaml
3232
kubectl create -f deploy/role_binding.yaml
3333
kubectl create -f deploy/crds/ansible_v1alpha1_memcached_crd.yaml

0 commit comments

Comments
 (0)