Skip to content

Commit

Permalink
Remove leftovers from twitter and create properly quay secret
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Stejskal <[email protected]>
  • Loading branch information
Frawless committed Aug 14, 2023
1 parent bbe7345 commit 437265b
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
all: install_infra install_strimzi twitter_app
all: install_infra install_strimzi

install_infra:
ansible-playbook install/tealc-play.yaml --tags=infra
Expand All @@ -9,4 +9,4 @@ install_strimzi:
remove_infra:
ansible-playbook install/tealc-play.yaml --tags=teardown

.PHONY: install_infra install_strimzi twitter_app remove_infra
.PHONY: install_infra install_strimzi remove_infra
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ansible-playbook tealc-play.yaml --tags=infra,strimzi-infra
makefile
```
ansible-galaxy collection install -r install/collections/requirements.yml
make install_infra install_strimzi twitter_app
make install_infra install_strimzi
```

ansible-navigator
Expand Down
1 change: 0 additions & 1 deletion install/examples/clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ infra_token: zdepa
kubeconfig_path: configpath
github_secret_path: configpath/install/examples/github-secret.yaml
grafana_docker_secret_path: configpath/install/examples/docker-secret.yaml
twitter_secret_path: configpath/install/examples/twitter

# Workers
workers:
Expand Down
1 change: 0 additions & 1 deletion install/roles/tealc/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ infra_argo_namespace: tealc-gitops

openshift_pipelines_namespace: openshift-pipelines
openshift_operators_namespace: openshift-operators
strimzi_twitter_connector_namespace: strimzi-kafka

route: empty
access_token: empty
7 changes: 1 addition & 6 deletions install/roles/tealc/tasks/common/check_parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
msg: "Variable 'github_secret_path' is not defined"
when: github_secret_path is not defined

- name: Check that 'twitter_secret_path' is not defined
fail:
msg: "Variable 'twitter_secret_path' is not defined"
when: twitter_secret_path is not defined

- name: Check that 'workers' is not defined
fail:
msg: "Variable 'workers' is not defined"
Expand All @@ -27,4 +22,4 @@
- name: Check that 'grafana_docker_secret_path' is not defined
fail:
msg: "Variable 'grafana_docker_secret_path' is not defined"
when: grafana_docker_secret_path is not defined
when: grafana_docker_secret_path is not defined
9 changes: 9 additions & 0 deletions install/roles/tealc/tasks/infra-setup/prepare_access.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,12 @@
template: templates/cluster-secret.yaml.j2
verify_ssl: no
apply: true

- name: Create Quay access secret
kubernetes.core.k8s:
kubeconfig: "{{ kubeconfig_path }}/{{ worker.value.name }}"
namespace: "default"
state: present
verify_ssl: no
apply: true
src: "{{ quay_io_secret_path }}"
Binary file modified install/secrets/clusters.yaml
Binary file not shown.
File renamed without changes.
Binary file removed install/secrets/twitter/twitter.yaml
Binary file not shown.

0 comments on commit 437265b

Please sign in to comment.