Skip to content
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

Updates for 0.8.0 #2047

Merged
merged 5 commits into from
Apr 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ It is based on [CNCF Flux](https://fluxcd.io), a leading GitOps engine.
Mac / Linux

```console
curl --silent --location "https://github.com/weaveworks/weave-gitops/releases/download/v0.7.0/gitops-$(uname)-$(uname -m).tar.gz" | tar xz -C /tmp
curl --silent --location "https://github.com/weaveworks/weave-gitops/releases/download/v0.8.0/gitops-$(uname)-$(uname -m).tar.gz" | tar xz -C /tmp
sudo mv /tmp/gitops /usr/local/bin
gitops version
```
Expand Down
7 changes: 2 additions & 5 deletions charts/gitops-server/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apiVersion: v2
name: weave-gitops
description: Weave Gitops is a set of tools and services to aid your interactions with Flux

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
Expand All @@ -11,14 +10,12 @@ description: Weave Gitops is a set of tools and services to aid your interaction
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.0.1

version: 2.0.2
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v0.7.0"
appVersion: "v0.8.0"
55 changes: 21 additions & 34 deletions charts/gitops-server/values.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
# Default values for chart.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

image:
# FIXME check the app name
repository: ghcr.io/weaveworks/wego-app
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "v0.7.0"

tag: "v0.8.0"
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# Sets the WEAVE_GITOPS_AUTH_ENABLED environment variable to enable auth systems
enableLogin: true
# valid levels are 'debug', 'info', 'warn' and 'error'
Expand All @@ -32,19 +28,17 @@ serviceAccount:
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""

rbac:
# Specifies whether the clusterRole & binding to the service account should be created
create: true
# List of resources that the service account can impersonate. It is strongly
# recommended that you configure groups that can be used to populate this.
impersonationResourceNames: []
# Limit the type of principal that can be impersonated
impersonationResources: [ "users", "groups" ]
impersonationResources: ["users", "groups"]
# Specify whether additional permissions should be granted to the service account
# in order to work with weave-gitops enterprise
viewSecrets: []

# This should not be used in production
adminUser:
# Whether the wego-admin user should be created.
Expand All @@ -56,32 +50,29 @@ adminUser:
# This needs to have been hashed using the bcrypt algorithm.
# e.g. go install github.com/bitnami/bcrypt-cli@v1.0.2 2> /dev/null && echo -n '$PASSWORD' | bcrypt-cli
# passwordHash:

podAnnotations: {}

podSecurityContext: {}
# fsGroup: 2000
# fsGroup: 2000

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

service:
create: true
type: ClusterIP
port: 9001
annotations: {}

ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
Expand All @@ -91,25 +82,21 @@ ingress:
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

nodeSelector: {}

tolerations: []

affinity: {}

serverTLS:
enable: false
# secretName: "my-secret-tls" # Specify the tls secret name. This type of secrets have a key called `tls.crt` and `tls.key` containing their corresponding values in base64 format.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@weaveworks/weave-gitops",
"version": "0.8.0-rc.2",
"version": "0.8.0",
"description": "Weave GitOps core",
"targets": {
"default": {
Expand Down
4 changes: 0 additions & 4 deletions website/docs/cli-reference/_category_.json

This file was deleted.

2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ Command line utility for managing Kubernetes applications via GitOps.
* [gitops upgrade](gitops_upgrade.md) - Upgrade to Weave GitOps Enterprise
* [gitops version](gitops_version.md) - Display gitops version

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_add.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ gitops add cluster
* [gitops add cluster](gitops_add_cluster.md) - Add a new cluster using a CAPI template
* [gitops add profile](gitops_add_profile.md) - Add a profile to a cluster

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_add_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ gitops add cluster --from-template <template-name> \

* [gitops add](gitops_add.md) - Add a new Weave GitOps resource

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_add_profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ gitops add profile [flags]

* [gitops add](gitops_add.md) - Add a new Weave GitOps resource

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_check.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ gitops check --pre

* [gitops](gitops.md) - Weave GitOps

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ See each sub-command's help for details on how to use the generated script.
* [gitops completion powershell](gitops_completion_powershell.md) - Generate the autocompletion script for powershell
* [gitops completion zsh](gitops_completion_zsh.md) - Generate the autocompletion script for zsh

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_completion_bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ gitops completion bash

* [gitops completion](gitops_completion.md) - Generate the autocompletion script for the specified shell

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_completion_fish.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ gitops completion fish [flags]

* [gitops completion](gitops_completion.md) - Generate the autocompletion script for the specified shell

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_completion_powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ gitops completion powershell [flags]

* [gitops completion](gitops_completion.md) - Generate the autocompletion script for the specified shell

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_completion_zsh.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ gitops completion zsh [flags]

* [gitops completion](gitops_completion.md) - Generate the autocompletion script for the specified shell

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ gitops delete cluster <cluster-name>
* [gitops](gitops.md) - Weave GitOps
* [gitops delete cluster](gitops_delete_cluster.md) - Delete a cluster given its name

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_delete_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ gitops delete cluster <cluster-name>

* [gitops delete](gitops_delete.md) - Delete one or many Weave GitOps resources

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ gitops get clusters
* [gitops get profile](gitops_get_profile.md) - Show information about available profiles
* [gitops get template](gitops_get_template.md) - Display one or many CAPI templates

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_get_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ gitops get cluster <cluster-name> --kubeconfig

* [gitops get](gitops_get.md) - Display one or many Weave GitOps resources

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_get_credential.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ gitops get credentials

* [gitops get](gitops_get.md) - Display one or many Weave GitOps resources

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_get_profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ gitops get profiles

* [gitops get](gitops_get.md) - Display one or many Weave GitOps resources

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_get_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ gitops get template <template-name> --list-parameters

* [gitops get](gitops_get.md) - Display one or many Weave GitOps resources

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ Update a Weave GitOps resource
* [gitops](gitops.md) - Weave GitOps
* [gitops update profile](gitops_update_profile.md) - Update a profile installation

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_update_profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ gitops update profile [flags]

* [gitops update](gitops_update.md) - Update a Weave GitOps resource

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ gitops upgrade [flags]

* [gitops](gitops.md) - Weave GitOps

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
2 changes: 1 addition & 1 deletion website/docs/cli-reference/gitops_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ gitops version [flags]

* [gitops](gitops.md) - Weave GitOps

###### Auto generated by spf13/cobra on 12-Apr-2022
###### Auto generated by spf13/cobra on 29-Apr-2022
30 changes: 17 additions & 13 deletions website/docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,22 @@ This section details the steps required to install Weave GitOps on a Kubernetes
### Pre-requisites

#### Kubernetes Cluster
Weave GitOps is compatible with conformant Kubernetes distributions which match the minimum required version level of [Flux](https://fluxcd.io/docs/installation/#prerequisites).
This version of Weave Gitops is tested against the following Kubernetes releases:
* 1.20
* 1.21
* 1.22
* 1.23

#### Install Flux
Weave GitOps is an extension to Flux and therefore requires that Flux has already been installed on your Kubernetes cluster. Full documentation is avilable at: [https://fluxcd.io/docs/installation/](https://fluxcd.io/docs/installation/).
Note that the version of [Flux](https://fluxcd.io/docs/installation/#prerequisites) that you use might impose further minimum version requirements.

#### Configure access to the GitOps Dashboard web UI
Weave GitOps includes a web UI which runs on your Kubernetes cluster. In order to allow users to access this, you must first configure an appropriate login mechanism. We support integration with OIDC providers, as well as an admin cluster user for getting started and emergencies. This cluster user can be disabled if preferred.
#### Install Flux
Weave GitOps is an extension to Flux and therefore requires that Flux 0.29 or later has already been installed on your Kubernetes cluster. Full documentation is avilable at: [https://fluxcd.io/docs/installation/](https://fluxcd.io/docs/installation/).

Follow the guide here to appropriately configure access : [Securing access to the dashboard](configuration/securing-access-to-the-dashboard.mdx).
This version of Weave Gitops is tested against the following Flux releases:
* 0.29

### Install the Helm Chart
Weave GitOps is provided through a Helm Chart and installed as a Flux resource through a `HelmRepository` and `HelmRelease`. To install on your cluster, adjust the following where marked `<UPDATE>` based on the previous step, and commit the file to the location bootstrapped with Flux so that it is synchronized to your Cluster.
Weave GitOps is provided through a Helm Chart and installed as a Flux resource through a `HelmRepository` and `HelmRelease`. To install on your cluster, adjust the following so that `username` is the username you want and `passwordHash` is a bcrypt hash of your password, and commit the file to the location bootstrapped with Flux so that it is synchronized to your Cluster.

```
apiVersion: helm.toolkit.fluxcd.io/v2beta1
Expand Down Expand Up @@ -68,18 +72,18 @@ Windows support is a [planned enhancement](https://github.com/weaveworks/weave-g
To install the `gitops` CLI, please follow the following steps:

```console
curl --silent --location "https://github.com/weaveworks/weave-gitops/releases/download/v0.7.0/gitops-$(uname)-$(uname -m).tar.gz" | tar xz -C /tmp
curl --silent --location "https://github.com/weaveworks/weave-gitops/releases/download/0.8.0/gitops-$(uname)-$(uname -m).tar.gz" | tar xz -C /tmp
sudo mv /tmp/gitops /usr/local/bin
gitops version
```

You should see:

```console
Current Version: v0.7.0
GitCommit: 3d246fd0
BuildTime: 2022-04-14_14:32:54
Branch: HEAD
Current Version: v0.8.0
GitCommit: 79fc7cc8
BuildTime: 2022-04-29_13:53:43
Branch: releases/v0.8.0
```

## Weave GitOps Enterprise<TierLabel tiers="enterprise" />
Expand All @@ -99,7 +103,7 @@ import TabItem from "@theme/TabItem";

Make sure the following software is installed before continuing with these instructions:

- `gitops` >= 0.6.2 download a newer version of Weave GitOps from the [releases page](https://github.com/weaveworks/weave-gitops/releases).
- `gitops` 0.6.2 download a newer version of Weave GitOps from the [releases page](https://github.com/weaveworks/weave-gitops/releases).

Also `GITHUB_TOKEN` or `GITLAB_TOKEN` should be set as an environment variable in the current shell. It should have permissions to create Pull Requests against the cluster config repo.
:::
Expand Down
Loading