Add Jenkins scheme doc

This commit is contained in:
Tomasz Sęk
2019-06-19 18:00:30 +02:00
parent 0af2235603
commit be4d6b471d
9 changed files with 1794 additions and 87 deletions
+7 -9
View File
@@ -280,10 +280,7 @@ spec:
and create Kubernetes Secret(name of secret should be the same from `credentialID` field):
#### Create PVC
Save to file pvc.yaml:
```yaml
```
apiVersion: v1
kind: Secret
metadata:
@@ -332,12 +329,13 @@ data:
Jenkins jenkins = Jenkins.getInstance()
Run command:
```bash
$ kubectl -n <namesapce> create -f pvc.yaml
```
def decorator = Jenkins.instance.getDescriptorByType(org.codefirst.SimpleThemeDecorator.class)
#### Configure Jenkins CR
List<ThemeElement> configElements = new ArrayList<>();
configElements.add(new CssTextThemeElement("DEFAULT"));
configElements.add(new CssUrlThemeElement("https://cdn.rawgit.com/afonsof/jenkins-material-theme/gh-pages/dist/material-light-green.css"));
decorator.setElements(configElements);
decorator.save();
jenkins.save()
1-system-message.yaml: |2
File diff suppressed because it is too large Load Diff
@@ -85,7 +85,7 @@ spec:
```
See also the examples bellow for more details. For even more details please look at the source code.
Code that defines the data structures can be found here [pkg/apis/jenkins/v1alpha2/jenkins_types.go](https://github.com/jenkinsci/kubernetes-operator/blob/master/pkg/apis/jenkins/v1alpha2/jenkins_types.go)
Code that defines the data structures can be found [here](jenkins-v1alpha2-scheme.md)
### Examples