Skip to content

Ensure the presence of specific entries in the spec.plugins section of the OpenShift console object

License

Notifications You must be signed in to change notification settings

validatedpatterns/ensure-openshift-console-plugins-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ensure-openshift-console-plugins

Version: 0.1.1

A Helm chart to ensure openshift console plugins

This chart is used to activate OpenShift console plugins

Values

Key Type Default Description
configJob.activeDeadlineSeconds int 3600
configJob.configTimeout int 1800
configJob.image string "quay.io/hybridcloudpatterns/imperative-container:v1"
configJob.imagePullPolicy string "Always"
configJob.schedule string "*/5 * * * *"
ensureConsolePlugins list []
ensurePluginsPlaybook string `"---\n- name: Ensure plugins for OpenShift console\n become: false\n connection: local\n hosts: localhost\n gather_facts: false\n vars:\n kubeconfig: "{{ lookup('env', 'KUBECONFIG') }}"\n ensure_plugins: []\n tasks:\n - name: Retrieve current console object\n kubernetes.core.k8s_info:\n api_version: operator.openshift.io/v1\n kind: Console\n register: console_obj\n until: console_obj.resources length == 1\n retries: 20\n delay: 5\n\n - name: Retrieve current plugins\n ansible.builtin.set_fact:\n current_plugins: "{{ console_obj.resources[0].spec.plugins }}"\n\n - name: Calculate new plugins\n ansible.builtin.set_fact:\n new_plugins: "{{ (current_plugins + ensure_plugins)
rbac.roleBindings[0].createBinding bool true
rbac.roleBindings[0].name string "manage-console-plugins"
rbac.roleBindings[0].roleRef.kind string "ClusterRole"
rbac.roleBindings[0].roleRef.name string "manage-console-plugins"
rbac.roleBindings[0].scope.cluster bool true
rbac.roleBindings[0].subjects.apiGroup string ""
rbac.roleBindings[0].subjects.kind string "ServiceAccount"
rbac.roleBindings[0].subjects.name string "console-activate-sa"
rbac.roleBindings[0].subjects.namespace string "openshift-console"
rbac.roles[0].apiGroups[0] string "operator.openshift.io"
rbac.roles[0].createRole bool true
rbac.roles[0].name string "manage-console-plugins"
rbac.roles[0].resources[0] string "consoles"
rbac.roles[0].scope.cluster bool true
rbac.roles[0].verbs[0] string "get"
rbac.roles[0].verbs[1] string "list"
rbac.roles[0].verbs[2] string "update"
rbac.roles[0].verbs[3] string "patch"
rbac.roles[0].verbs[4] string "watch"
serviceAccountName string "console-activate-sa"
serviceAccountNamespace string "openshift-console"

Autogenerated from chart metadata using helm-docs v1.14.2

About

Ensure the presence of specific entries in the spec.plugins section of the OpenShift console object

Resources

License

Stars

Watchers

Forks

Packages

No packages published