mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
Added ability to specify annotations to ServiceAccount
This commit is contained in:
17
README.md
17
README.md
@@ -28,6 +28,7 @@ An [Ansible AWX](https://github.com/ansible/awx) operator for Kubernetes built w
|
|||||||
* [Persisting Projects Directory](#persisting-projects-directory)
|
* [Persisting Projects Directory](#persisting-projects-directory)
|
||||||
* [Custom Volume and Volume Mount Options](#custom-volume-and-volume-mount-options)
|
* [Custom Volume and Volume Mount Options](#custom-volume-and-volume-mount-options)
|
||||||
* [Exporting Environment Variables to Containers](#exporting-environment-variables-to-containers)
|
* [Exporting Environment Variables to Containers](#exporting-environment-variables-to-containers)
|
||||||
|
* [Service Account](#service-account)
|
||||||
* [Upgrading](#upgrading)
|
* [Upgrading](#upgrading)
|
||||||
* [Contributing](#contributing)
|
* [Contributing](#contributing)
|
||||||
* [Release Process](#release-process)
|
* [Release Process](#release-process)
|
||||||
@@ -535,6 +536,22 @@ Example configuration of environment variables
|
|||||||
value: foo
|
value: foo
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Service Account
|
||||||
|
|
||||||
|
If you need to modify some `ServiceAccount` proprieties
|
||||||
|
|
||||||
|
| Name | Description | Default |
|
||||||
|
| ----------------------------- | -------------------------------------------------------- | ------- |
|
||||||
|
| service_account_annotations | Annotations to the ServiceAccount | '' |
|
||||||
|
|
||||||
|
Example configuration of environment variables
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
spec:
|
||||||
|
service_account_annotations: |
|
||||||
|
eks.amazonaws.com/role-arn: arn:aws:iam::<ACCOUNT_ID>:role/<IAM_ROLE_NAME>
|
||||||
|
```
|
||||||
|
|
||||||
### Upgrading
|
### Upgrading
|
||||||
|
|
||||||
To upgrade AWX, it is recommended to upgrade the awx-operator to the version that maps to the desired version of AWX. To find the version of AWX that will be installed by the awx-operator by default, check the version specified in the `image_version` variable in `roles/installer/defaults/main.yml` for that particular release.
|
To upgrade AWX, it is recommended to upgrade the awx-operator to the version that maps to the desired version of AWX. To find the version of AWX that will be installed by the awx-operator by default, check the version specified in the `image_version` variable in `roles/installer/defaults/main.yml` for that particular release.
|
||||||
|
|||||||
@@ -201,6 +201,9 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
service_account_annotations:
|
||||||
|
description: ServiceAccount annotations
|
||||||
|
type: string
|
||||||
replicas:
|
replicas:
|
||||||
description: Number of instance replicas
|
description: Number of instance replicas
|
||||||
type: integer
|
type: integer
|
||||||
|
|||||||
@@ -203,6 +203,9 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
service_account_annotations:
|
||||||
|
description: ServiceAccount annotations
|
||||||
|
type: string
|
||||||
replicas:
|
replicas:
|
||||||
description: Number of instance replicas
|
description: Number of instance replicas
|
||||||
type: integer
|
type: integer
|
||||||
|
|||||||
@@ -201,6 +201,9 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
service_account_annotations:
|
||||||
|
description: ServiceAccount annotations
|
||||||
|
type: string
|
||||||
replicas:
|
replicas:
|
||||||
description: Number of instance replicas
|
description: Number of instance replicas
|
||||||
type: integer
|
type: integer
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ metadata:
|
|||||||
name: example-awx
|
name: example-awx
|
||||||
namespace: example-awx
|
namespace: example-awx
|
||||||
spec:
|
spec:
|
||||||
|
service_account_annotations: |
|
||||||
|
foo: bar
|
||||||
deployment_type: awx
|
deployment_type: awx
|
||||||
ingress_type: ingress
|
ingress_type: ingress
|
||||||
web_resource_requirements:
|
web_resource_requirements:
|
||||||
|
|||||||
@@ -173,6 +173,11 @@ spec:
|
|||||||
x-descriptors:
|
x-descriptors:
|
||||||
- urn:alm:descriptor:com.tectonic.ui:advanced
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
- urn:alm:descriptor:io.kubernetes:Secret
|
- urn:alm:descriptor:io.kubernetes:Secret
|
||||||
|
- displayName: Service Account Annotations
|
||||||
|
path: service_account_annotations
|
||||||
|
x-descriptors:
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:text
|
||||||
- displayName: Ingress Type
|
- displayName: Ingress Type
|
||||||
path: ingress_type
|
path: ingress_type
|
||||||
x-descriptors:
|
x-descriptors:
|
||||||
|
|||||||
@@ -226,6 +226,9 @@ spec:
|
|||||||
redis_image_version:
|
redis_image_version:
|
||||||
description: Redis container image version to use
|
description: Redis container image version to use
|
||||||
type: string
|
type: string
|
||||||
|
service_account_annotations:
|
||||||
|
description: ServiceAccount annotations
|
||||||
|
type: string
|
||||||
replicas:
|
replicas:
|
||||||
default: 1
|
default: 1
|
||||||
description: Number of instance replicas
|
description: Number of instance replicas
|
||||||
|
|||||||
@@ -9,6 +9,11 @@ database_username: "{{ deployment_type }}"
|
|||||||
task_privileged: false
|
task_privileged: false
|
||||||
ingress_type: none
|
ingress_type: none
|
||||||
|
|
||||||
|
# Add annotations to the service account. Specify as literal block. E.g.:
|
||||||
|
# service_account_annotations: |
|
||||||
|
# eks.amazonaws.com/role-arn: arn:aws:iam::<ACCOUNT_ID>:role/<IAM_ROLE_NAME>
|
||||||
|
service_account_annotations: ''
|
||||||
|
|
||||||
# Custom labels for the tower service. Specify as literal block. E.g.:
|
# Custom labels for the tower service. Specify as literal block. E.g.:
|
||||||
# service_labels: |
|
# service_labels: |
|
||||||
# environment: non-production
|
# environment: non-production
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
|
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
|
||||||
app.kubernetes.io/component: '{{ deployment_type }}'
|
app.kubernetes.io/component: '{{ deployment_type }}'
|
||||||
app.kubernetes.io/operator-version: '{{ lookup("env", "OPERATOR_VERSION") }}'
|
app.kubernetes.io/operator-version: '{{ lookup("env", "OPERATOR_VERSION") }}'
|
||||||
|
{% if service_account_annotations %}
|
||||||
|
annotations:
|
||||||
|
{{ service_account_annotations | indent(width=4) }}
|
||||||
|
{% endif %}
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
|
|||||||
Reference in New Issue
Block a user