-
Couldn't load subscription status.
- Fork 103
Adding support for openshift installation #439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
djkormo
wants to merge
19
commits into
litmuschaos:master
Choose a base branch
from
djkormo:litmus-helm-for-openshift
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
67db917
initial version with openshift support
djkormo 8fea021
Added support for proxy envs in `litmus` chart (#390)
Jonsy13 08be017
Updated helm version to 3.18.x (#436)
Jonsy13 4f9e81d
adding version 3.18.0
djkormo 0781ce4
removing annotations
djkormo c87fd10
corrrecting serviceaccunt name and user ids
djkormo ed034d6
correcting local values for 3.18.0 version
djkormo c50300f
adding pvc for scc
djkormo a6c1608
fixing scc permissions
djkormo 15435c6
adding route host
djkormo f3d6540
adding default account to scc
djkormo 1b228c2
chore(3.19.0): Adding the helm charts for 3.19.0 version (#437)
ispeakc0de 3be0e32
Added changes for helm-litmus-3.19.x (#438)
Jonsy13 aedf6d0
Refactoring and adding 3.19.0 version
djkormo ae75d11
resolving conflicts for 3.19.0 version
djkormo 0f470e1
resolving conflicts
djkormo d34dac5
resolving conflict
djkormo 52ff664
resolving conflicts
djkormo 92b5f39
resolving conflicts for 3.21.0 version
djkormo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
|
|
||
|
|
||
| helm template litmus charts/litmus --namespace litmus-system --version 3.16 --values charts/litmus/values.yaml | ||
| helm template litmus charts/litmus --namespace litmus-system --values charts/litmus/values.yaml | grep "image: " | ||
|
|
||
|
|
||
| helm template litmus charts/litmus --namespace litmus-system --version 3.16 --values values-local-3-16-0.yaml | ||
| helm template litmus charts/litmus --namespace litmus-system --version 3.16 --values values-local-3-16-0.yaml > all-litmus-3-16-0-manifests.yaml.out | ||
| helm template litmus charts/litmus --namespace litmus-system --version 3.16 --values values-local-3-16-0.yaml | grep "image: " | ||
| helm template litmus charts/litmus --namespace litmus-system --version 3.16 --values values-local-3-16-0.yaml | grep "runAsUser: " -C 10 | ||
| helm template litmus charts/litmus --namespace litmus-system --version 3.16 --values values-local-3-16-0.yaml | grep "ServiceAccount: " | ||
|
|
||
|
|
||
|
|
||
| yq -s '"split-3-16-0"+(.kind | downcase) + "-" + .metadata.name +"-"+ $index' all-litmus-3-16-0-manifests.yaml.out | ||
|
|
||
| # checking values file | ||
| yq eval . values-local-3-16-0.yaml | ||
|
|
||
| # checking template files | ||
| yq eval . all-litmus-3-16-0-manifests.yaml.out | ||
|
|
||
|
|
||
| kubectl apply -f all-litmus-manifests.yaml.out -n litmus-system --dry-run=client | ||
| kubectl apply -f all-litmus-manifests.yaml.out -n litmus-system --dry-run=server | ||
|
|
||
|
|
||
| helm template litmus charts/litmus --namespace litmus-system --version 3.18 --values charts/litmus/values.yaml | ||
| helm template litmus charts/litmus --namespace litmus-system --values charts/litmus/values.yaml | grep "image: " | ||
|
|
||
|
|
||
| helm template litmus charts/litmus --namespace litmus-system --version 3.18 --values values-local-3-18-0.yaml | ||
| helm template litmus charts/litmus --namespace litmus-system --version 3.18 --values values-local-3-18-0.yaml > all-litmus-3-18-0-manifests.yaml.out | ||
| helm template litmus charts/litmus --namespace litmus-system --version 3.18 --values values-local-3-18-0.yaml | grep "image: " | ||
| helm template litmus charts/litmus --namespace litmus-system --version 3.18 --values values-local-3-18-0.yaml | grep "runAsUser: " -C 10 | ||
| helm template litmus charts/litmus --namespace litmus-system --version 3.18 --values values-local-3-18-0.yaml | grep "ServiceAccount: " | ||
|
|
||
|
|
||
| yq -s '"split-3-18-0"+(.kind | downcase) + "-" + .metadata.name +"-"+ $index' all-litmus-3-18-0-manifests.yaml.out | ||
|
|
||
| # checking values file | ||
| yq eval . values-local-3-18-0.yaml | ||
|
|
||
| # checking template files | ||
| yq eval . all-litmus-3-18-0-manifests.yaml.out | ||
|
|
||
|
|
||
| rm all-litmus-*-manifests.yaml.out | ||
|
|
||
| rm split*.y*ml | ||
|
|
||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| {{- if and .Values.openshift.enabled (not .Values.openshift.anyuid) }} | ||
| apiVersion: security.openshift.io/v1 | ||
| kind: SecurityContextConstraints | ||
| metadata: | ||
| name: {{ .Values.openshift.sccName }} | ||
| labels: | ||
| app.kubernetes.io/name: {{ .Values.openshift.sccName }} | ||
|
|
||
| allowHostIPC: false | ||
| allowHostNetwork: false | ||
| allowHostPID: false | ||
| allowHostPorts: false | ||
| allowHostDirVolumePlugin: false | ||
| allowPrivilegeEscalation: true | ||
| requiredDropCapabilities: null | ||
| allowedCapabilities: null | ||
| defaultAddCapabilities: null | ||
| seccompProfiles: | ||
| - '*' | ||
| runAsUser: | ||
| type: MustRunAsRange # Valid value for runAsUser.type | ||
| uidRangeMin: 0 # TODO | ||
| uidRangeMax: 2000 # TODO | ||
| seLinuxContext: | ||
| type: RunAsAny # Valid value for seLinuxContext.type | ||
| fsGroup: | ||
| type: RunAsAny | ||
| supplementalGroups: | ||
| type: RunAsAny | ||
| readOnlyRootFilesystem: false | ||
| volumes: | ||
| - configMap | ||
| - emptyDir | ||
| - projected | ||
| - secret | ||
| - downwardAPI | ||
| - persistentVolumeClaim | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRole | ||
| metadata: | ||
| name: {{ .Values.openshift.sccName }}-clusterrole | ||
| labels: | ||
| app.kubernetes.io/name: {{ .Values.openshift.sccName }}-clusterrole | ||
| rules: | ||
| - apiGroups: | ||
| - security.openshift.io | ||
| resourceNames: | ||
| - {{ .Values.openshift.sccName }} | ||
| resources: | ||
| - securitycontextconstraints | ||
| verbs: | ||
| - use | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: RoleBinding | ||
| metadata: | ||
| name: {{ .Values.openshift.sccName }}-binding | ||
| namespace: {{ .Release.Namespace }} | ||
| labels: | ||
| app.kubernetes.io/name: {{ .Values.openshift.sccName }}-binding | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: ClusterRole | ||
| name: {{ .Values.openshift.sccName }}-clusterrole | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: {{ .Chart.Name }}-mongodb # For mongodb subchart | ||
| namespace: {{ .Release.Namespace }} | ||
| - kind: ServiceAccount | ||
| name: default # Default ServiceAccount | ||
| namespace: {{ .Release.Namespace }} | ||
| {{- end }} | ||
| --- | ||
| {{- if and .Values.openshift.enabled .Values.openshift.anyuid }} | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: RoleBinding | ||
| metadata: | ||
| name: {{ .Values.openshift.sccName }}-scc-anyuid-binding | ||
| namespace: {{ .Release.Namespace }} | ||
| labels: | ||
| app.kubernetes.io/name: {{ .Values.openshift.sccName }}-scc-anyuid-binding | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: ClusterRole | ||
| name: system:openshift:scc:anyuid | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: {{ .Chart.Name }}-mongodb | ||
| namespace: {{ .Release.Namespace }} | ||
| - kind: ServiceAccount | ||
| name: default # Default ServiceAccount | ||
| namespace: {{ .Release.Namespace }} | ||
|
|
||
| {{- end }} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @djkormo Still seeing some conflicts here, can you check, I think the changes themselves are not required in this PR for agent.